Package lineage2.gameserver.model.instances

Examples of lineage2.gameserver.model.instances.NpcInstance.addListener()


    npc3.addListener(deathListener);
    npc4.addListener(deathListener);
    npc5.addListener(deathListener);
    npc6.addListener(deathListener);
    npc7.addListener(deathListener);
    npc8.addListener(deathListener);
  }

  private void initWave3(Player player)
  {
    // _npcWaves
View Full Code Here


    _npcWaves.add(npc3);
    _npcWaves.add(npc4);
    npc1.addListener(deathListener);
    npc2.addListener(deathListener);
    npc3.addListener(deathListener);
    npc4.addListener(deathListener);
  }

  private void initWave2(Player player)
  {
    // _npcWaves
View Full Code Here

    _npcWaves.add(npc3);
    _npcWaves.add(npc4);
    npc1.addListener(deathListener);
    npc2.addListener(deathListener);
    npc3.addListener(deathListener);
    npc4.addListener(deathListener);
  }

  private void initWave1(Player player)
  {
    // _npcWaves
View Full Code Here

    _npcWaves.add(npc3);
    _npcWaves.add(npc4);
    npc1.addListener(deathListener);
    npc2.addListener(deathListener);
    npc3.addListener(deathListener);
    npc4.addListener(deathListener);
    player.setVar("wave", 1, -1);
  }

  private class DeathListener implements OnDeathListener
  {
View Full Code Here

    {
      manageDamageZone(6, false);
      for(NpcInstance n : getNpcs())
        n.unblock();
      NpcInstance knightLeader = addSpawnWithoutRespawn(IceKnightLeaderHard, 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(4), 2000L, 50000L);
      NpcInstance freyaStand = addSpawnWithoutRespawn(FreyaStandHard, 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(4), 2000L, 50000L);
      NpcInstance freyaStand = addSpawnWithoutRespawn(FreyaStandHard, new Location(114720, -117085, -11088, 15956), 0);
      freyaStand.addListener(_currentHpListener);
      freyaStand.addListener(_deathListener);
    }
  }

  private class PreForthStage extends RunnableImpl
  {
View Full Code Here

      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

      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

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.