Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Zone.addListener()


      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111432, -15496, -11443), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-111192, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110968, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-110792, -15592, -11444), 0);
      NpcInstance kaliospawner = addSpawnWithoutRespawn(LordOfKartia, new Location(-111288, -15784, -11428), 0);
      kaliospawner.addListener(_deathListener);
    }
  }
 
  private class TwoCycleStageSix extends RunnableImpl
  {
View Full Code Here


      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110648, -10424, -11891), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110664, -10520, -11888), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110664, -10472, -11883), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110664, -10360, -11883), 0);
      NpcInstance sixstagestagemobv = addSpawnWithoutRespawn(DimensionalWatchman, new Location(-110664, -10360, -11883), 0);
      sixstagestagemobv.addListener(_deathListener);
    }
  }

  private class SecondSevenStage extends RunnableImpl
  {
View Full Code Here

      ThreadPoolManager.getInstance().schedule(new Runnable(){
        @Override
        public void run()
        {
          NpcInstance octavisFirstStage = addSpawnWithoutRespawn(Octavis1, new Location(207192, 120568, -10032, 49151), 0);
          octavisFirstStage.addListener(_currentHpListenerFistsStage);
          octavisFirstStage.setLockedTarget(true);
          octavisMassive = octavisFirstStage;

          NpcInstance octavisRider = addSpawnWithoutRespawn(OctavisRider, new Location(207192, 120588, -10032, 49151), 0);
          octavisRider.addListener(_currentHpListenerOctavisRide);
View Full Code Here

          octavisFirstStage.addListener(_currentHpListenerFistsStage);
          octavisFirstStage.setLockedTarget(true);
          octavisMassive = octavisFirstStage;

          NpcInstance octavisRider = addSpawnWithoutRespawn(OctavisRider, new Location(207192, 120588, -10032, 49151), 0);
          octavisRider.addListener(_currentHpListenerOctavisRide);
        }
      }, 26700);
    }
  }
View Full Code Here

        player.showQuestMovie(ExStartScenePlayer.SCENE_BOSS_OCTABIS_PHASECH_A);

      twoStageGuardSpawn = ThreadPoolManager.getInstance().scheduleAtFixedRate(new SpawnGuardForStage(1), 10000L, 120000L); // 10 secs for movie

      NpcInstance octavisTwoStage = addSpawnWithoutRespawn(Octavis2, new Location(207192, 120568, -10032, 49151), 0);
      octavisTwoStage.addListener(_currentHpListenerTwoStage);
      _lockedTurn = false;
    }
  }

  private class SpawnGuardForStage extends RunnableImpl
View Full Code Here

        player.showQuestMovie(ExStartScenePlayer.SCENE_BOSS_OCTABIS_PHASECH_B);

      threeStageGuardSpawn = ThreadPoolManager.getInstance().scheduleAtFixedRate(new SpawnGuardForStage(2), 14000L, 120000L); // 14 secs for movie

      NpcInstance octavisThreeStage = addSpawnWithoutRespawn(Octavis3, new Location(207192, 120568, -10032, 49151), 0);
      octavisThreeStage.addListener(_deathListener);
    }
  }

  private class DeathListener implements OnDeathListener
  {
View Full Code Here

      manageDamageZone(2, false);
      for(Player player : getPlayers())
        player.sendPacket(new ExShowScreenMessage(NpcString.FREYA_HAS_STARTED_TO_MOVE, 4000, ScreenMessageAlign.MIDDLE_CENTER, true));
      //Spawning Freya Throne
      NpcInstance freyaTrhone = addSpawnWithoutRespawn(FreyaThrone, new Location(114720, -117085, -11088, 15956), 0);
      freyaTrhone.addListener(_deathListener);
      firstStageGuardSpawn = ThreadPoolManager.getInstance().scheduleAtFixedRate(new GuardSpawnTask(1), 2000L, 30000L);
    }
  }

  private class GuardSpawnTask extends RunnableImpl
View Full Code Here

    {
      manageDamageZone(4, false);
      for(NpcInstance n : getNpcs())
        n.unblock();
      NpcInstance knightLeader = addSpawnWithoutRespawn(IceKnightLeaderNormal, new Location(114707, -114799, -11199, 15956), 0);
      knightLeader.addListener(_deathListener);
    }
  }

  private class PreThirdStage extends RunnableImpl
  {
View Full Code Here

        p.sendPacket(new ExShowScreenMessage(NpcString.BEGIN_STAGE_3_FREYA, 6000, ScreenMessageAlign.TOP_CENTER, true, 1, -1, true));
        p.sendPacket(new ExChangeClientEffectInfo(2));
      }
      thirdStageGuardSpawn = ThreadPoolManager.getInstance().scheduleAtFixedRate(new GuardSpawnTask(3), 2000L, 30000L);
      NpcInstance freyaStand = addSpawnWithoutRespawn(FreyaStandNormal, new Location(114720, -117085, -11088, 15956), 0);
      freyaStand.addListener(_currentHpListener);
      freyaStand.addListener(_deathListener);
    }
  }

  private class PreForthStage extends RunnableImpl
View Full Code Here

        p.sendPacket(new ExChangeClientEffectInfo(2));
      }
      thirdStageGuardSpawn = ThreadPoolManager.getInstance().scheduleAtFixedRate(new GuardSpawnTask(3), 2000L, 30000L);
      NpcInstance freyaStand = addSpawnWithoutRespawn(FreyaStandNormal, new Location(114720, -117085, -11088, 15956), 0);
      freyaStand.addListener(_currentHpListener);
      freyaStand.addListener(_deathListener);
    }
  }

  private class PreForthStage extends RunnableImpl
  {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.