Package lineage2.gameserver.utils

Examples of lineage2.gameserver.utils.Location


      {
        player.sendPacket(Msg.YOU_CANNOT_TELEPORT_TO_A_VILLAGE_THAT_IS_IN_A_SIEGE);
        return;
      }
    }
    final Location pos = Location.findPointToStay(x, y, z, 50, 100, player.getGeoIndex());
    if (price > 0)
    {
      player.reduceAdena(price, true);
    }
    player.teleToLocation(pos);
View Full Code Here


      player.sendPacket(SystemMessage2.removeItems(item, count));
    }
    final int x = Integer.parseInt(param[0]);
    final int y = Integer.parseInt(param[1]);
    final int z = Integer.parseInt(param[2]);
    final Location pos = Location.findPointToStay(x, y, z, 20, 70, player.getGeoIndex());
    player.teleToLocation(pos);
  }
View Full Code Here

      return;
    }
    final String var = player.getVar("DCBackCoords");
    if ((var == null) || var.isEmpty())
    {
      player.teleToLocation(new Location(43768, -48232, -800), 0);
      return;
    }
    player.teleToLocation(Location.parseLoc(var), 0);
    player.unsetVar("DCBackCoords");
  }
View Full Code Here

    }
    for (Player player : World.getAroundPlayers(actor, 200, 200))
    {
      if (player != null)
      {
        player.teleToLocation(new Location(207559, 86429, -1000));
      }
    }
    return true;
  }
View Full Code Here

   * @return StaticObjectInstance
   */
  public StaticObjectInstance newInstance()
  {
    StaticObjectInstance instance = new StaticObjectInstance(IdFactory.getInstance().getNextId(), this);
    instance.spawnMe(new Location(getX(), getY(), getZ()));
    return instance;
  }
View Full Code Here

    @Override
    public void onZoneLeave(Zone zone, Creature cha)
    {
      if(cha.isNpc() && (cha.getNpcId() == _weakScarletId || cha.getNpcId() == _strongScarletId))
      {
        cha.teleToLocation(new Location(-87784, -153304, -9176));
        ((NpcInstance) cha).getAggroList().clear(true);
        cha.setCurrentHpMp(cha.getMaxHp(), cha.getMaxMp());
        cha.broadcastCharInfo();
      }
    }
View Full Code Here

        {
          player.sendMessage("In order to enter the Anomic Foundry your party should be carrying all 5 medals of Tully");
          return;
        }
      }
      party.Teleport(new Location(25512, 247240, -2656));
    }
    else
    {
      super.onBypassFeedback(player, command);
    }
View Full Code Here

    {
      for (Player player : getPlayers())
      {
        player.sendPacket(new ExShowScreenMessage(NpcString.STAGE_7, 6000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, 1, -1, true, new String[0]));
      }
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111848, -15560, -11445), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-111656, -15528, -11444), 0);
      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);
    }
View Full Code Here

    {
      for (Player player : getPlayers())
      {
        player.sendPacket(new ExShowScreenMessage(NpcString.STAGE_6, 6000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, 1, -1, true, new String[0]));
      }
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111848, -15560, -11445), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-111848, -15560, -11445), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111656, -15528, -11444), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-111656, -15528, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111432, -15496, -11443), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-111432, -15496, -11443), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111192, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-111192, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110968, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-110968, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110792, -15592, -11444), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-110792, -15592, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110792, -15592, -11444), 0);
      ThreadPoolManager.getInstance().schedule(new TowCycleStageSeven(), 90000L);
    }
View Full Code Here

    {
      for (Player player : getPlayers())
      {
        player.sendPacket(new ExShowScreenMessage(NpcString.STAGE_5, 6000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, 1, -1, true, new String[0]));
      }
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111848, -15560, -11445), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111656, -15528, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111432, -15496, -11443), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111192, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110968, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110792, -15592, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110792, -15592, -11444), 0);
      ThreadPoolManager.getInstance().schedule(new TwoCycleStageSix(), 60000L);
    }
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.