Page 1 of 1
One question, please answer
Posted: Mon Jun 25, 2012 10:22 am
by shmel
Hi. Anyone can tell me please, exist or doesn't exist method or class that can block character. I mean block trade,actions,chat,inventory.
If exist please write it here.
ty.
Re: One question, please answer
Posted: Mon Jun 25, 2012 11:40 am
by nonom
Yes but it's relative what are you trying to do and under what conditions. Most part of these actions/intentions are finally serverpackets.
In example, a start point could be the CtrlIntention and L2CharacterAI classes.
http://trac.l2jserver.com/browser/branc ... eserver/ai
Code: Select all
player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
Is useful search the keywords around the
scripts datapack folder to see more implementations.
Also, I think the new listeners could help you dp side.
http://trac.l2jserver.com/browser/branc ... /listeners
http://trac.l2jdp.com/browser/branches/ ... eners.java
Probably there are much ways to handle that, the core/dp have many examples

Re: One question, please answer
Posted: Mon Jun 25, 2012 8:07 pm
by shmel
I want block all actions when char loggin into game, but i dont know how((