Jump to content
  • 0

ADDING PROPERLY A NEW CASE IN CLIF.C


Jhedzkie

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

hi.

i would like to ask first what does (_WOS) [without self] mean? or its significance, or what are its usage?

and then

i would like to ask how to properly add a new _wos to the source (clif.c/.h)? like i would like to have a custom wos for the faction, and use it for a src-based

faction vs faction system.

for example:

case FVF: // faction vs faction
case FVF_WOS: // somewhere around line 500, near the DUEL and DUEL_WOS case,

specially in the part regarding packets

  if( sd->fvf_group == tsd->fvf_group && packet_db[tsd->packet_ver][RBUFW(buf,0)].len )
  { // packet must exist for the client version
WFIFOHEAD(tsd->fd, len);
memcpy(WFIFOP(tsd->fd,0), buf, len);
WFIFOSET(tsd->fd,len);
  }

because everytime i add my own WOS, when i try to make them be members in the same faction, there would be a packet error popping up and my map server eventually crashes. any help?

Edited by Jhedzkie
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×
×
  • Create New...