Package lineage2.gameserver.model.instances

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


        return "31541-05.htm";
      }
      st.takeItems(S_SUMMON, 1);
      isQuest = st.addSpawn(DAIMON, 186320, -43904, -3175);
      Functions.npcSay(isQuest, "Who called me?");
      isQuest.addListener(new DeathListener());
      st.playSound(SOUND_MIDDLE);
      st.setCond(2);
      st.setState(STARTED);
      st.getPlayer().sendMessage("Daimon the White-Eyed has spawned in 186320, -43904, -3175");
      st.startQuestTimer("DAIMON_Fail", 12000000);
View Full Code Here


          isQuest = st.addSpawn(DAIMON, 186320, -43904, -3175);
          Functions.npcSay(isQuest, "Who called me?");
          st.playSound(SOUND_MIDDLE);
          st.setState(STARTED);
          st.getPlayer().sendMessage("Daimon the White-Eyed has spawned in 186320, -43904, -3175");
          isQuest.addListener(new DeathListener());
          st.startQuestTimer("DAIMON_Fail", 12000000);
        }
      }
    }
    else if (cond == 3)
View Full Code Here

   
    @Override
    public void runImpl()
    {
      /* 21 */NpcInstance voitelSpecial = addSpawnWithoutRespawn(52001, new Location(42104, -176344, -7974, 15956), 0);
      /* 22 */voitelSpecial.addListener(_deathListener);
    }
  }
 
  private class TwoStageMainMob6SubStage extends RunnableImpl
  {
View Full Code Here

   
    @Override
    public void runImpl()
    {
      /* 88 */NpcInstance yarostSpecial = addSpawnWithoutRespawn(52000, new Location(42104, -176344, -7974, 15956), 0);
      /* 89 */yarostSpecial.addListener(_deathListener);
    }
  }
 
  private class OneStageMainMob7SubStage extends RunnableImpl
  {
View Full Code Here

  protected void onCreate()
  {
    super.onCreate();
    addSpawnWithoutRespawn(Anchor, zakenTp[Rnd.get(zakenTp.length)], 0);
    NpcInstance zaken = addSpawnWithoutRespawn(UltraDayZaken, zakenSpawn, 0);
    zaken.addListener(_deathListener);
    zaken.setIsInvul(true);
    _savedTime = System.currentTimeMillis();
  }

  @Override
View Full Code Here

      closeDoor(14220100);
      closeDoor(14220101);

      NpcInstance isthinaNormal = addSpawnWithoutRespawn(Isthina, new Location(-177125, 147856, -11384, 49140), 0);
      isthinaNormal.addListener(_deathListener);

      NpcInstance camera = addSpawnWithoutRespawn(Camera, new Location(-177325, 147856, -11384, 49140), 0);
      camera.setTargetable(false);

      for(Player player : getPlayers())
View Full Code Here

    @Override
    public void runImpl() throws Exception
    {
      NpcInstance ballista = addSpawnWithoutRespawn(Ballista, new Location(-177125, 147856, -11384, 49140), 0);
      ballista.block();
      ballista.addListener(_currentHpListenerBallista);

      for(Player players : getPlayers())
        players.sendPacket(new ExShowScreenMessage(NpcString.AFTER_$s1_SECONDS_THE_CHARGING_MAGIC_BALLISTAS_STARTS, 5000, ScreenMessageAlign.TOP_CENTER, false, String.valueOf(1)));

      NpcInstance isthinaFinal = addSpawnWithoutRespawn(Isthina, new Location(-177128, 147224, -11414, 16383), 0);
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.