if (getNpcId() == 10035 || getNpcId() == 10054 || getNpcId() == 10126 || getNpcId() == 10220) { int boxId = 0; switch(getNpcId()) { case 10035: // Shilen?s Messenger Cabrio boxId = 8027; break; case 10054: // Demon Kernon boxId = 8028; break; case 10126: // Golkonda, the Longhorn General boxId = 8029; break; case 10220: // Death Lord Hallate boxId = 8030; break; } L2NpcTemplate boxTemplate = NpcTable.getInstance().getTemplate(boxId); final L2NpcInstance box = new L2NpcInstance(IdFactory.getInstance().getNextId(), boxTemplate); box.spawnMe(this.getX(), this.getY(), this.getZ()); ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { public void run() { box.deleteMe(); } }, 60000); }