* @param killer Creature
*/
@Override
protected void onEvtDead(Creature killer)
{
final NpcInstance actor = getActor();
actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, 0, actor.getLoc()));
Functions.npcSay(actor, "A fatal error has occurred");
Functions.npcSay(actor, "System is being shut down...");
Functions.npcSay(actor, "......");
try
{
final NpcInstance cubic1 = NpcHolder.getInstance().getTemplate(TELEPORTATION_CUBIC_ID).getNewInstance();
cubic1.setReflection(actor.getReflection());
cubic1.setCurrentHpMp(cubic1.getMaxHp(), cubic1.getMaxMp(), true);
cubic1.spawnMe(CUBIC_1_POSITION);
final NpcInstance cubic2 = NpcHolder.getInstance().getTemplate(TELEPORTATION_CUBIC_ID).getNewInstance();
cubic2.setReflection(actor.getReflection());
cubic2.setCurrentHpMp(cubic1.getMaxHp(), cubic1.getMaxMp(), true);
cubic2.spawnMe(CUBIC_2_POSITION);
ThreadPoolManager.getInstance().schedule(new DeSpawnScheduleTimerTask(cubic1, cubic2), CUBIC_DESPAWN_TIME);
}
catch (Exception e)
{
e.printStackTrace();