/** * Method onEvtScriptEvent. * * @param event String * @param arg1 Object * @param arg2 Object */ @Override protected void onEvtScriptEvent(String event, Object arg1, Object arg2) { super.onEvtScriptEvent(event, arg1, arg2); switch (event) { case "SHOUT_ALL_1": Functions.npcSayInRange( getActor(), 1500, NpcString.valueOf(MESSAGES_1[Rnd.get(MESSAGES_1.length)])); startBattle = true; break; case "SHOUT_ALL_2": Functions.npcSayInRange( getActor(), 1500, NpcString.valueOf(MESSAGES_2[Rnd.get(MESSAGES_2.length)])); break; case "TENTACLE_DIE": diedTentacle++; break; } }
/** * Method htmlNpcString. * * @param id NpcString * @param params Object[] * @return String */ public static String htmlNpcString(NpcString id, Object... params) { return htmlNpcString(id.getId(), params); }