private void specialNightBoss(int mode) {
    try {
      L2RaidBossInstance boss;
      for (L2Spawn spawn : _bosses.keySet()) {
        boss = _bosses.get(spawn);
        if ((boss == null) && (mode == 1)) {
          boss = (L2RaidBossInstance) spawn.doSpawn();
          RaidBossSpawnManager.getInstance().notifySpawnNightBoss(boss);
          _bosses.remove(spawn);
          _bosses.put(spawn, boss);
          continue;
        }

        if ((boss == null) && (mode == 0)) {
          continue;
        }

        if ((boss != null)
            && (boss.getNpcId() == 25328)
            && boss.getRaidStatus().equals(RaidBossSpawnManager.StatusEnum.ALIVE))
          handleHellmans(boss, mode);
        return;
      }
    } catch (Exception e) {
      _log.log(Level.WARNING, "Error while specialNoghtBoss(): " + e.getMessage(), e);
    }
  }
 private void handleHellmans(L2RaidBossInstance boss, int mode) {
   switch (mode) {
     case 0:
       boss.deleteMe();
       _log.info("DayNightSpawnManager: Deleting Hellman raidboss");
       break;
     case 1:
       boss.spawnMe();
       _log.info("DayNightSpawnManager: Spawning Hellman raidboss");
       break;
   }
 }
Exemplo n.º 3
0
 private void handleHellmans(L2RaidBossInstance boss, int mode) {
   switch (mode) {
     case 0:
       boss.deleteMe();
       _log.info(getClass().getSimpleName() + ": Deleting Hellman raidboss");
       break;
     case 1:
       if (!boss.isVisible()) {
         boss.spawnMe();
       }
       _log.info(getClass().getSimpleName() + ": Spawning Hellman raidboss");
       break;
   }
 }