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? Quote
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) Quote
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 Quote
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 Quote
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. Quote
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
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.