Example #1
0
 public void killNpcByObjectId(int _objId) {
   NpcInstance npc = GameObjectsStorage.getNpc(_objId);
   if (npc != null) {
     npc.doDie(null);
   } else {
     _log.warn("Attemp to kill object that is not npc in quest " + getQuest().getQuestIntId());
   }
 }