Package lineage2.gameserver.utils

Examples of lineage2.gameserver.utils.Location


    if (!checkIfInZone(player))
    {
      return null;
    }
    SiegeClanObject attackerClan = getSiegeClan(ATTACKERS, player.getClan());
    Location loc = null;
    switch (type)
    {
      case TO_VILLAGE:
        if ((attackerClan != null) && checkIfInZone(player))
        {
View Full Code Here


    super(set);
    int shuttleId = set.getInteger("shuttle_id", -1);
    if (shuttleId > 0)
    {
      _shuttle = BoatHolder.getInstance().initShuttle(getName(), shuttleId);
      Location loc = Location.parseLoc(set.getString("spawn_point"));
      _shuttle.setLoc(loc, true);
      _shuttle.setHeading(loc.h);
    }
    else
    {
View Full Code Here

    int npcId2 = Integer.parseInt(player.getVar("sel2")); // second chosen
    int npcId3 = Avanguard_camptain; // adolf
    int npcId4 = Van_Archer; // 3 archers
    int npcId5 = Van_Infantry; // 3 infantry soldiers
    // spawn npc helpers
    NpcInstance sel1 = player.getReflection().addSpawnWithoutRespawn(npcId1, new Location(55976, -175672, -7980, 49151), 0);
    NpcInstance sel2 = player.getReflection().addSpawnWithoutRespawn(npcId2, new Location(56328, -175672, -7980, 49151), 0);
    NpcInstance adolf = player.getReflection().addSpawnWithoutRespawn(npcId3, new Location(56168, -175576, -7974, 49151), 0);
    // archers
    NpcInstance archer1 = player.getReflection().addSpawnWithoutRespawn(npcId4, new Location(56392, -176232, -7980, 49151), 0);
    NpcInstance archer2 = player.getReflection().addSpawnWithoutRespawn(npcId4, new Location(56184, -176168, -7974, 49151), 0);
    NpcInstance archer3 = player.getReflection().addSpawnWithoutRespawn(npcId4, new Location(55976, -176136, -7980, 49151), 0);
    // infantry
    NpcInstance infantry1 = player.getReflection().addSpawnWithoutRespawn(npcId5, new Location(56168, -176712, -7973, 49151), 0);
    NpcInstance infantry2 = player.getReflection().addSpawnWithoutRespawn(npcId5, new Location(55960, -176696, -7973, 49151), 0);
    NpcInstance infantry3 = player.getReflection().addSpawnWithoutRespawn(npcId5, new Location(56376, -176712, -7973, 49151), 0);

    switch(npcId1)
    {
      case 33171:
        sel1.setAI(new NpcHealerAI(sel1));
View Full Code Here

  }

  private void initWave13(Player player)
  {
    // _npcWaves
    player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(55976, -177544, -7980, 16383), 0);
    player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(55864, -177544, -8320, 16383), 0);
    player.getReflection().addSpawnWithoutRespawn(Pursuer, new Location(55768, -177544, -8320, 16383), 0);
    player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56376, -177544, -8320, 16383), 0);
    player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56336, -177544, -8320, 16383), 0);
    NpcInstance boss = player.getReflection().addSpawnWithoutRespawn(Death_wound, new Location(56168, -177544, -7974, 16383), 0);
    boss.broadcastPacket(new Earthquake(boss.getLoc(), 40, 10));
    boss.addListener(deathListener);

  }
View Full Code Here

  }

  private void initWave12(Player player)
  {
    // _npcWaves
    NpcInstance npc1 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(56872, -176648, -7975, 16383), 0);
    NpcInstance npc2 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(56904, -176744, -7974, 16383), 0);
    NpcInstance npc3 = player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(56824, -176728, -7974, 16383), 0);
    NpcInstance npc4 = player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(56728, -176664, -7974, 16383), 0);
    NpcInstance npc5 = player.getReflection().addSpawnWithoutRespawn(Pursuer, new Location(56680, -176776, -7974, 16383), 0);
    NpcInstance npc6 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56664, -176712, -7974, 16383), 0);
    NpcInstance npc7 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56696, -176632, -7974, 16383), 0);
    _npcWaves.add(npc1);
    _npcWaves.add(npc2);
    _npcWaves.add(npc3);
    _npcWaves.add(npc4);
    _npcWaves.add(npc5);
View Full Code Here

  }

  private void initWave11(Player player)
  {
    // _npcWaves
    NpcInstance npc1 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(55512, -176648, -7974, 16383), 0);
    NpcInstance npc2 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(55512, -176712, -7974, 16383), 0);
    NpcInstance npc3 = player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(55576, -176696, -7974, 16383), 0);
    NpcInstance npc4 = player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(55544, -176776, -7974, 16383), 0);
    NpcInstance npc5 = player.getReflection().addSpawnWithoutRespawn(Pursuer, new Location(55432, -176808, -7980, 16383), 0);
    NpcInstance npc6 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(55432, -176680, -7974, 16383), 0);
    NpcInstance npc7 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(55592, -176632, -7974, 16383), 0);
    NpcInstance npc8 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(55640, -176712, -7974, 16383), 0);
    _npcWaves.add(npc1);
    _npcWaves.add(npc2);
    _npcWaves.add(npc3);
    _npcWaves.add(npc4);
    _npcWaves.add(npc5);
View Full Code Here

        int y = rset.getInt("locy");
        int z = rset.getInt("locz");
        int h = rset.getInt("heading");
        template = new SpawnTemplate(PeriodOfDay.NONE, count, delay, delay_rnd);
        template.addNpc(new SpawnNpcInfo(npcId, 1, StatsSet.EMPTY));
        template.addSpawnRange(new Location(x, y, z, h));
        SpawnHolder.getInstance().addSpawn(PeriodOfDay.NONE.name(), template);
      }
    }
    catch (Exception e1)
    {
View Full Code Here

        int y = rset.getInt("locy");
        int z = rset.getInt("locz");
        int h = rset.getInt("heading");
        template = new SpawnTemplate(PeriodOfDay.NONE, count, delay, delay_rnd);
        template.addNpc(new SpawnNpcInfo(npcId, 1, StatsSet.EMPTY));
        template.addSpawnRange(new Location(x, y, z, h));
        SpawnHolder.getInstance().addSpawn(PeriodOfDay.NONE.name(), template);
      }
    }
    catch (Exception e1)
    {
View Full Code Here

  }

  private void initWave10(Player player)
  {
    // _npcWaves
    NpcInstance npc1 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(56184, -177672, -7974, 16383), 0);
    NpcInstance npc2 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(56088, -177704, -7974, 16383), 0);
    NpcInstance npc3 = player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(56152, -177592, -7974, 16383), 0);
    NpcInstance npc4 = player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(56264, -177496, -7978, 16383), 0);
    NpcInstance npc5 = player.getReflection().addSpawnWithoutRespawn(Pursuer, new Location(56184, -177464, -7974, 16383), 0);
    NpcInstance npc6 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56104, -177448, -7974, 16383), 0);
    NpcInstance npc7 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56024, -177448, -7980, 16383), 0);
    _npcWaves.add(npc1);
    _npcWaves.add(npc2);
    _npcWaves.add(npc3);
    _npcWaves.add(npc4);
    _npcWaves.add(npc5);
View Full Code Here

  }

  private void initWave9(Player player)
  {
    // _npcWaves
    NpcInstance npc1 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(56696, -176744, -7974, 16383), 0);
    NpcInstance npc2 = player.getReflection().addSpawnWithoutRespawn(Shaman, new Location(56712, -176664, -7974, 16383), 0);
    NpcInstance npc3 = player.getReflection().addSpawnWithoutRespawn(Slayer, new Location(56776, -176808, -7980, 16383), 0);
    NpcInstance npc4 = player.getReflection().addSpawnWithoutRespawn(Slayer, new Location(56696, -176808, -7980, 16383), 0);
    NpcInstance npc5 = player.getReflection().addSpawnWithoutRespawn(Pursuer, new Location(56616, -176728, -7974, 16383), 0);
    NpcInstance npc6 = player.getReflection().addSpawnWithoutRespawn(Pursuer, new Location(56600, -176648, -7974, 16383), 0);
    NpcInstance npc7 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56584, -176584, -7980, 16383), 0);
    NpcInstance npc8 = player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56712, -176552, -7980, 16383), 0);
    _npcWaves.add(npc1);
    _npcWaves.add(npc2);
    _npcWaves.add(npc3);
    _npcWaves.add(npc4);
    _npcWaves.add(npc5);
View Full Code Here

TOP

Related Classes of lineage2.gameserver.utils.Location

Copyright © 2018 www.massapicom. 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.