NPC walk range limit
Posted: Tue Jul 03, 2012 11:49 am
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 :
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)); }