Jump to content
  • 0

Team vs Team mapflag


Question

Posted (edited)

Hey this is not really a support and not really a request topic. Let me explain.

In my server there exist 2 Team -> "good" and "evil"

I added to the char -> database the table [team] value's: 1 = good and 2 = evil

So I want create a mapflag which is similiar like pvp mapflag, the players can hit each other, but in mine is one thing different, i want to disable the pvp timing and i want add that good can't hit good, good can only hit evil and evil can only hit good.

I am not sure, do i add the database SELECT/(read) here?

char/char.c

(p->fame != cp->fame)

in my situation it woud be

(p->team!= cp->team)

is that correctly?

Now the main problem:

I have seen in different other mapflag coding that i have to add something like this:


+ WBUFW(buf, 0) = 0x2dd;
+ WBUFL(buf,2) = sd->bl.id;

what does it mean? Is this the packetreading?

Maybe it would be easier if somebody coud help me a lilbit with the teammapflag.

Edited by bimbi

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...