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)); }