Jump to content
  • 0

Custom send_target type


Mathew

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.02
  • Content Count:  5
  • Reputation:   2
  • Joined:  02/27/24
  • Last Seen:  

Hello,

I'm going to describe what I'd like to accomplish.

I have a party with 2 users, player1 enables a command that will display a hateffect on himself, and on the party members as well.

Player 2, has disabled that command, so he won't see any hateffect, neither on him or the other party members.

Once player2 enables the command, he will see the hateffect on him and his party members.

I've tried with the function clif_hat_effect_single and different target type, but none of them seems to fit my previous requirements.

That's why i was thinking about create a custom target type, however I don't quite understand that logic with these:

WFIFOHEAD( fd, len );
 memcpy( WFIFOP( fd, 0 ), buf, len );
 WFIFOSET( tsd->fd, len );

So, after several hours trying, I'd like to ask for some help on this..

 

Thank you for your time!

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...