@Override
 public void onEnterInstance(Player player) {
   if (isStartTimer) {
     long time = System.currentTimeMillis() - startTime;
     if (time < 900000) {
       PacketSendUtility.sendPacket(player, new SM_QUEST_ACTION(0, 900 - (int) time / 1000));
     }
   }
   player.getController().registerListener(this);
   entrance += 1;
   if (player.getRace() == Race.ELYOS) {
     PacketSendUtility.sendPacket(player, new SM_PLAY_MOVIE(0, 498));
     if (entrance == 1) {
       spawn(701646, 763.51685f, 533.11804f, 576.5853f, (byte) 59); // TANK ELYOS
       spawn(801763, 740.7189f, 536.31616f, 575.6878f, (byte) 1);
     }
   } else {
     PacketSendUtility.sendPacket(player, new SM_PLAY_MOVIE(0, 499));
     if (entrance == 1) {
       spawn(701647, 763.51685f, 533.11804f, 576.5853f, (byte) 59); // TANK ASMO
       spawn(801765, 740.7189f, 536.31616f, 575.6878f, (byte) 1);
     }
   }
 }
 @Override
 public void onDie(Npc npc) {
   final List<Player> playerList = instance.getPlayersInside();
   switch (npc.getNpcId()) {
     case 231050:
       spawn(730868, 317f, 489.04999f, 607.64343f, (byte) 0);
       break;
     case 230413:
       sendMsg(1401904);
       spawn(230417, 476.74689f, 523.6272f, 598.8186f, (byte) 13); // Disabled GENERATEUR POST
       despawnNpc(npc);
       Powerdevice++;
       if (Powerdevice == 4) {
         spawn(701644, 435.42862f, 496.41296f, 604.8871f, (byte) 1);
       }
       break;
     case 230417:
       spawn(230413, 476.74689f, 523.6272f, 598.8186f, (byte) 13); // Balaur GENERATEUR POST
       despawnNpc(npc);
       break;
     case 230414:
       sendMsg(1401905);
       spawn(230418, 524.53607f, 427.29379f, 621.82062f, (byte) 15); // Disabled GENERATEUR NORD
       despawnNpc(npc);
       Powerdevice++;
       if (Powerdevice == 4) {
         spawn(701644, 435.42862f, 496.41296f, 604.8871f, (byte) 1);
       }
       break;
     case 230418:
       spawn(230414, 524.53607f, 427.29379f, 621.82062f, (byte) 15); // balaur GENERATEUR NORD
       despawnNpc(npc);
       break;
     case 230415:
       sendMsg(1401906);
       spawn(230419, 602.40997f, 556.41998f, 592.16406f, (byte) 113); // Disabled GENERATEUR SUD
       despawnNpc(npc);
       Powerdevice++;
       if (Powerdevice == 4) {
         spawn(701644, 435.42862f, 496.41296f, 604.8871f, (byte) 1);
       }
       break;
     case 230419:
       spawn(230415, 602.40997f, 556.41998f, 592.16406f, (byte) 113); // balaur GENERATEUR SUD
       despawnNpc(npc);
       break;
     case 230416:
       sendMsg(1401907);
       spawn(230420, 666.76001f, 474.20999f, 601.1673f, (byte) 117); // Disabled GENERATEUR Defense
       despawnNpc(npc);
       Powerdevice++;
       if (Powerdevice == 4) {
         spawn(701644, 435.42862f, 496.41296f, 604.8871f, (byte) 1);
       }
       break;
     case 230420:
       echec += 1;
       doors.get(47).setOpen(false);
       spawn(230416, 666.76001f, 474.20999f, 601.1673f, (byte) 117); // balaur GENERATEUR Defense
       despawnNpc(npc);
       break;
     case 233320:
       startFinalTimer();
       despawnNpc(npc);
       if (npc.getX() == 751.5975f || npc.getY() == 518.4685f || npc.getZ() == 578.5f) {
         if (!isStartTimer) {
           isStartTimer = true;
           startTime = System.currentTimeMillis();
           ThreadPoolManager.getInstance()
               .schedule(
                   new Runnable() {
                     @Override
                     public void run() {
                       for (Player player : playerList) {
                         PacketSendUtility.sendPacket(player, new SM_SYSTEM_MESSAGE(1401884));
                       }
                       attackgenerator(
                           getNpc(230420),
                           (Npc) spawn(233319, 697.05707f, 467.85675f, 599.68396f, (byte) 55));
                       attackgenerator(
                           getNpc(230420),
                           (Npc) spawn(231189, 695.08307f, 471.75702f, 599.80f, (byte) 55));
                       attackgenerator(
                           getNpc(230420),
                           (Npc) spawn(231190, 693.59186f, 462.29324f, 599.875f, (byte) 55));
                     }
                   },
                   300000);
         }
       }
       break;
   }
 }