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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock