public static void OnAssessTarget(NPCProto npc, NPCProto target) { NPCAI ai = npc.getAI(); //Check if target is Enemy and call AssessEnemy: if (npc.getAttitudeToGuild(target.getGuild()) == Enumeration.GuildsAttitude.HOSTILE && target.HP != 0 && !target.isUnconscious && ai.AssessEnemyRoutine != null) { if (ai.AssessWarnRoutine != null) { } else { ai.AssessEnemyRoutine(npc, target); } } if (target.HP == 0 && ai.AssessBodyRoutine != null) { ai.AssessBodyRoutine(npc, target); } }