示例#1
0
 /**
  * Method onEvtDead.
  *
  * @param killer Creature
  */
 @Override
 protected void onEvtDead(Creature killer) {
   final NpcInstance actor = getActor();
   final int npcId = actor.getNpcId();
   switch (npcId) {
     case 25605:
       {
         epidosIndex.put(1, epidosIndex.get(1) + 1);
         break;
       }
     case 25606:
       {
         epidosIndex.put(2, epidosIndex.get(2) + 1);
         break;
       }
     case 25607:
       {
         epidosIndex.put(3, epidosIndex.get(3) + 1);
         break;
       }
     case 25608:
       {
         epidosIndex.put(4, epidosIndex.get(4) + 1);
         break;
       }
     default:
       break;
   }
   if ((isBossSpawnCondMet() != 0) && !NaiaCoreManager.isBossSpawned()) {
     NaiaCoreManager.spawnEpidos(isBossSpawnCondMet());
   }
   super.onEvtDead(killer);
 }
  /**
   * Method onEvtDead.
   *
   * @param killer Creature
   */
  @Override
  protected void onEvtDead(Creature killer) {
    if (checkAllDestroyed()) {
      try {
        final SimpleSpawner sp =
            new SimpleSpawner(NpcHolder.getInstance().getTemplate(TeleportCube));
        sp.setLoc(new Location(-12527, 279714, -11622, 16384));
        sp.doSpawn(true);
        sp.stopRespawn();
        ThreadPoolManager.getInstance().schedule(new Unspawn(), 600 * 1000L);
      } catch (Exception e) {
        e.printStackTrace();
      }
    }

    super.onEvtDead(killer);
  }
示例#3
0
 /**
  * Method onEvtDead.
  *
  * @param killer Creature
  */
 @Override
 protected void onEvtDead(Creature killer) {
   _mobsNotSpawned = true;
   super.onEvtDead(killer);
 }