NPC walk range limit

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
l2gang
Posts: 9
Joined: Wed Aug 18, 2010 10:18 am

NPC walk range limit

Post by l2gang »

L2J Revision Number: 5463
L2JDP Revision Number: 8954

Is there a simple way to make 1 npc monster to stay in a specified range ?
Was done for the Ant Queen in AI script like this :

Code: Select all

if (_queen.getDistanceSq(QUEEN_X, QUEEN_Y, QUEEN_Z) > 2000.)                            {                                    _queen.clearAggroList();                                    _queen.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(QUEEN_X, QUEEN_Y, QUEEN_Z, 0));                            }
Post Reply