ServeSATAN Posted August 29, 2010 Posted August 29, 2010 hello. i'll tell about question.. i read coyote's guide about player type http://www.maxcheaters.com/forum/index.php?topic=123823.0 and for example player.isCoyote how to restrict to attack to players and npcs only for this player type?
0 B1ggBoss Posted August 29, 2010 Posted August 29, 2010 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 mogo Posted August 29, 2010 Posted August 29, 2010 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 ServeSATAN Posted August 30, 2010 Author Posted August 30, 2010 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 B1ggBoss Posted August 30, 2010 Posted August 30, 2010 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.
Question
ServeSATAN
hello. i'll tell about question..
i read coyote's guide about player type
http://www.maxcheaters.com/forum/index.php?topic=123823.0
and for example player.isCoyote
how to restrict to attack to players and npcs only for this player type?
4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now