One question, please answer

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
shmel
Posts: 4
Joined: Mon Jan 09, 2012 7:36 pm

One question, please answer

Post 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.
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: One question, please answer

Post 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 :P
Image
"There are three kinds of people in this world, those who can count and those who can't"
shmel
Posts: 4
Joined: Mon Jan 09, 2012 7:36 pm

Re: One question, please answer

Post by shmel »

I want block all actions when char loggin into game, but i dont know how((
Post Reply