Package lineage2.gameserver.model.instances

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


      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


   */
  @Override
  public NpcInstance addSpawnWithoutRespawn(int npcId, Location loc, int randomOffset)
  {
    NpcInstance npc = super.addSpawnWithoutRespawn(npcId, loc, randomOffset);
    npc.addListener(_deathListener);
    return npc;
  }

  /**
   * Handles any Teleport action of any player inside
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(-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

      Location Loc2 = Golem2Loc;
      Location Loc3 = Golem3Loc;
      Location Loc4 = Golem4Loc;
            Location Loc = vullockspawn;
      NpcInstance VullockStay = addSpawnWithoutRespawn(Vullock, Loc, 0);
      VullockStay.addListener(_deathListener);
      VullockStay.addListener(_currentHpListener);
      _r.addSpawnWithoutRespawn(Golem1, Loc1, 0);
      _r.addSpawnWithoutRespawn(Golem2, Loc2, 0);
      _r.addSpawnWithoutRespawn(Golem3, Loc3, 0);
      _r.addSpawnWithoutRespawn(Golem4, Loc4, 0);
View Full Code Here

      Location Loc3 = Golem3Loc;
      Location Loc4 = Golem4Loc;
            Location Loc = vullockspawn;
      NpcInstance VullockStay = addSpawnWithoutRespawn(Vullock, Loc, 0);
      VullockStay.addListener(_deathListener);
      VullockStay.addListener(_currentHpListener);
      _r.addSpawnWithoutRespawn(Golem1, Loc1, 0);
      _r.addSpawnWithoutRespawn(Golem2, Loc2, 0);
      _r.addSpawnWithoutRespawn(Golem3, Loc3, 0);
      _r.addSpawnWithoutRespawn(Golem4, Loc4, 0);
        }
View Full Code Here

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

   
    @Override
    public void runImpl()
    {
      NpcInstance krovopiycaSpecial = addSpawnWithoutRespawn(52003, new Location(42104, -176344, -7974, 15956), 0);
      krovopiycaSpecial.addListener(_deathListener);
    }
  }
 
  private class BonusStageMainMob5SubStage 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.