Package lineage2.gameserver.model.instances

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


    NpcInstance can7 = addSpawnWithoutRespawn(Cannon7, Cannon7Loc, 0);
    can7.addListener(_deathListener);
    NpcInstance RB1N = addSpawnWithoutRespawn(RB1, RB1Loc, 0);
    RB1N.addListener(_deathListener);
    NpcInstance RB2N = addSpawnWithoutRespawn(RB2, RB2Loc, 0);
    RB2N.addListener(_deathListener);
    }
 
 
  private class DeathListener implements OnDeathListener {
        @Override
View Full Code Here


      for (Player player : getPlayers())
      {
        player.sendPacket(new ExShowScreenMessage(NpcString.YOTEMAK, 6000, ExShowScreenMessage.ScreenMessageAlign.BOTTOM_RIGHT, true, 1, -1, true, new String[0]));
      }
      NpcInstance hornapiraid = addSpawnWithoutRespawn(25846, new Location(42104, -175320, -7974, 15956), 0);
      hornapiraid.addListener(_deathListener);
      ThreadPoolManager.getInstance().schedule(new FortunaInstance.FinalStageMainMob2SubStage(), 11500L);
    }
  }
 
  private class FinalStageMainMob1SubStage extends RunnableImpl
View Full Code Here

      {
        player.sendPacket(new ExShowScreenMessage(NpcString.MUKSHUANDHOPNAP, 6000, ExShowScreenMessage.ScreenMessageAlign.BOTTOM_RIGHT, true, 1, -1, true, new String[0]));
      }
      addSpawnWithoutRespawn(25838, new Location(42102, -175325, -7974), 0);
      NpcInstance hornapiraid = addSpawnWithoutRespawn(25839, new Location(42104, -175320, -7974, 15956), 0);
      hornapiraid.addListener(_deathListener);
    }
  }
 
  private class SevenStageMainMob6SubStage extends RunnableImpl
  {
View Full Code Here

      for (Player player : getPlayers())
      {
        player.sendPacket(new ExShowScreenMessage(NpcString.KINEN, 6000, ExShowScreenMessage.ScreenMessageAlign.BOTTOM_RIGHT, true, 1, -1, true, new String[0]));
      }
      NpcInstance plaksaraid = addSpawnWithoutRespawn(25840, new Location(42104, -175320, -7974, 15956), 0);
      plaksaraid.addListener(_deathListener);
    }
  }
 
  private class FourStageMainMob7SubStage extends RunnableImpl
  {
View Full Code Here

          player.getInventory().removeItemByItemId(30429, 1);
          sayScreenMessage(player);
          if(getNpcState() == 0)
            ThreadPoolManager.getInstance().schedule(new runNpcStateChangeSecond(), 1000L);
          NpcInstance Noktum = NpcUtils.spawnSingle(NOKTUM, player.getLoc().getX() + 15, player.getLoc().getY(), player.getLoc().getZ(), 1800000L);
          Noktum.addListener(_deathListener);
        }
        else if(player.isInParty() && player.getParty().isLeader(player))
        {
          sayScreenMessage(player);
          NpcInstance Noktum = NpcUtils.spawnSingle(NOKTUM, player.getLoc().getX() + 15, player.getLoc().getY(), player.getLoc().getZ(), 1800000L);
View Full Code Here

        }
        else if(player.isInParty() && player.getParty().isLeader(player))
        {
          sayScreenMessage(player);
          NpcInstance Noktum = NpcUtils.spawnSingle(NOKTUM, player.getLoc().getX() + 15, player.getLoc().getY(), player.getLoc().getZ(), 1800000L);
          Noktum.addListener(_deathListener);
        }
        else
          showChatWindow(player, "default/altar-no.htm");
      }
      else
View Full Code Here

          player.getInventory().removeItemByItemId(30430, 1);
          sayScreenMessage(player);
          if(getNpcState() == 0)
            ThreadPoolManager.getInstance().schedule(new runNpcStateChangeThird(), 1000L);
          NpcInstance demonikNoktum = NpcUtils.spawnSingle(DEMONIC_NOKTUM, player.getLoc().getX() + 15, player.getLoc().getY(), player.getLoc().getZ(), 1800000L);
          demonikNoktum.addListener(_deathListener);
        }
        else if(player.isInParty() && player.getParty().isLeader(player))
        {
          sayScreenMessage(player);
          NpcInstance demonikNoktum = NpcUtils.spawnSingle(DEMONIC_NOKTUM, player.getLoc().getX() + 15, player.getLoc().getY(), player.getLoc().getZ(), 1800000L);
View Full Code Here

        }
        else if(player.isInParty() && player.getParty().isLeader(player))
        {
          sayScreenMessage(player);
          NpcInstance demonikNoktum = NpcUtils.spawnSingle(DEMONIC_NOKTUM, player.getLoc().getX() + 15, player.getLoc().getY(), player.getLoc().getZ(), 1800000L);
          demonikNoktum.addListener(_deathListener);
        }
        else
          showChatWindow(player, "default/prison-no.htm");
      }
      else
View Full Code Here

      for (Player player : getPlayers())
      {
        player.sendPacket(new ExShowScreenMessage(NpcString.PLAKSA, 6000, ExShowScreenMessage.ScreenMessageAlign.BOTTOM_RIGHT, true, 1, -1, true, new String[0]));
      }
      NpcInstance plaksaraid = addSpawnWithoutRespawn(25837, new Location(42104, -175320, -7974, 15956), 0);
      plaksaraid.addListener(_deathListener);
    }
  }
 
  private class FreeStageMainMob7SubStage 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

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.