Jump to content
  • 0

[question]about state


Question

4 answers to this question

Recommended Posts

  • 0
Posted

1) Edit your topic title to any which makes more sense

 

2) If you mean to restrict attack any player with a spcified state (in this case, isCoyote == true)

just edit the server core to forbid them in the right places (i'd recommend in the clientpackets where this actions comes from, so you avoid all kind of operations from the begin)

  • 0
Posted

1) Edit your topic title to any which makes more sense

 

2) If you mean to restrict attack any player with a spcified state (in this case, isCoyote == true)

just edit the server core to forbid them in the right places (i'd recommend in the clientpackets where this actions comes from, so you avoid all kind of operations from the begin)

1.edited.

2.i can't understand, this will works?

if (activeChar.isCoyote && activeChar.isAttacking)

    return false;

 

if yes where add?

Jeez leki start with the programming basics, not this quite specific example from Coyote. And remove the terrible piece of code from your sig

i just want to know what method i need

 

  • 0
Posted

isnt the method you need

is to stop the current pc action whenever you need it.

For that, you need to know how the server core works, where the actions performing by players starts and where they end.

To prevent them from attack, you may edit AttackRequest packet (client -> server packet), a packet the server recives from clients where a player try to attack something.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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