/** @param npcAI */ public static void thinkIdle(NpcAI2 npcAI) { if (WalkManager.isWalking(npcAI)) { boolean startedWalking = WalkManager.startWalking(npcAI); if (!startedWalking) { npcAI.setStateIfNot(AIState.IDLE); } } }
private void moveToDead() { ((AbstractAI) getOwner().getAi2()).setStateIfNot(AIState.WALKING); WalkManager.startWalking((NpcAI2) getOwner().getAi2()); getOwner().setState(1); getOwner().getMoveController().moveToPoint(455.93f, 537.2f, 132.55f); PacketSendUtility.broadcastPacket( getOwner(), new SM_EMOTION(getOwner(), EmotionType.START_EMOTE2, 0, getOwner().getObjectId())); dead(); }
/** @param npcAI */ public static void thinkWalking(NpcAI2 npcAI) { WalkManager.startWalking(npcAI); }