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.
One question, please answer
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- nonom
- L2j Veteran
- Posts: 649
- Joined: Wed Mar 11, 2009 10:34 pm
- Location: Magmeld
Re: One question, please answer
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
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
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);
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

-
- Posts: 4
- Joined: Mon Jan 09, 2012 7:36 pm
Re: One question, please answer
I want block all actions when char loggin into game, but i dont know how((