Package l2p.util

Examples of l2p.util.Location


    if(System.currentTimeMillis() - _lastTeleport < TELEPORT_PERIOD)
    {
      return false;
    }
    L2NpcInstance _thisActor = getActor();
    Location loc = _points[Rnd.get(_points.length)];
    if(_thisActor.getLoc().equals(loc))
    {
      return false;
    }
    _thisActor.broadcastPacketToOthers(new MagicSkillUse(_thisActor, _thisActor, 4671, 1, 1000, 0));
View Full Code Here


  public static void entryToSailrenLair(L2Player pc)
  {
    if(pc.getParty() == null)
    {
      pc.teleToLocation(new Location(27734, -6938, -1982).rnd(0, 80, true));
    }
    else
    {
      GArray<L2Player> members = new GArray<L2Player>();
      for(L2Player mem : pc.getParty().getPartyMembers())
      {
        if(mem != null && !mem.isDead() && mem.isInRange(pc, 1000))
        {
          members.add(mem);
        }
      }
      for(L2Player mem : members)
      {
        mem.teleToLocation(new Location(27734, -6938, -1982).rnd(0, 80, true));
      }
    }
    _isAlreadyEnteredOtherParty = true;
  }
View Full Code Here

  private static class CubeSpawn implements Runnable
  {
    public void run()
    {
      _teleportCube = spawn(new Location(27734, -6838, -1982, 0), TeleportCubeId);
    }
View Full Code Here

        _socialTask = null;
      }
      switch(_npcId)
      {
        case Velociraptor:
          _velociraptor = spawn(new Location(27852, -5536, -1983, 44732), Velociraptor);
          _velociraptor.getAI().addTaskMove(_pos, false);
          if(_socialTask != null)
          {
            _socialTask.cancel(true);
            _socialTask = null;
          }
          _socialTask = ThreadPoolManager.getInstance().scheduleGeneral(new Social(_velociraptor, 2), 6000);
          if(_activityTimeEndTask != null)
          {
            _activityTimeEndTask.cancel(true);
            _activityTimeEndTask = null;
          }
          _activityTimeEndTask = ThreadPoolManager.getInstance().scheduleGeneral(new ActivityTimeEnd(), FWS_ACTIVITYTIMEOFMOBS);
          break;
        case Pterosaur:
          _pterosaur = spawn(new Location(27852, -5536, -1983, 44732), Pterosaur);
          _pterosaur.getAI().addTaskMove(_pos, false);
          if(_socialTask != null)
          {
            _socialTask.cancel(true);
            _socialTask = null;
          }
          _socialTask = ThreadPoolManager.getInstance().scheduleGeneral(new Social(_pterosaur, 2), 6000);
          if(_activityTimeEndTask != null)
          {
            _activityTimeEndTask.cancel(true);
            _activityTimeEndTask = null;
          }
          _activityTimeEndTask = ThreadPoolManager.getInstance().scheduleGeneral(new ActivityTimeEnd(), FWS_ACTIVITYTIMEOFMOBS);
          break;
        case Tyrannosaurus:
          _tyranno = spawn(new Location(27852, -5536, -1983, 44732), Tyrannosaurus);
          _tyranno.getAI().addTaskMove(_pos, false);
          if(_socialTask != null)
          {
            _socialTask.cancel(true);
            _socialTask = null;
          }
          _socialTask = ThreadPoolManager.getInstance().scheduleGeneral(new Social(_tyranno, 2), 6000);
          if(_activityTimeEndTask != null)
          {
            _activityTimeEndTask.cancel(true);
            _activityTimeEndTask = null;
          }
          _activityTimeEndTask = ThreadPoolManager.getInstance().scheduleGeneral(new ActivityTimeEnd(), FWS_ACTIVITYTIMEOFMOBS);
          break;
        case Sailren:
          _sailren = spawn(new Location(27810, -5655, -1983, 44732), Sailren);
          _state.setRespawnDate(getRespawnInterval() + FWS_ACTIVITYTIMEOFMOBS);
          _state.setState(EpicBossState.State.ALIVE);
          _state.update();
          _sailren.setRunning();
          _sailren.getAI().addTaskMove(_pos, false);
View Full Code Here

    if(Config.SERVICES_GIRAN_HARBOR_ENABLED)
    {
      try
      {
        // init reflection
        ReflectionTable.getInstance().get(-2, true).setCoreLoc(new Location(47416, 186568, -3480));
        // spawn wh keeper
        L2Spawn sp1 = new L2Spawn(NpcTable.getTemplate(30086));
        sp1.setLocx(48059);
        sp1.setLocy(186791);
        sp1.setLocz(-3512);
View Full Code Here

    if(var == null || var.equals(""))
    {
      teleOut();
      return;
    }
    player.teleToLocation(new Location(var), 0);
  }
View Full Code Here

          }
          _mobiliseTask = ThreadPoolManager.getInstance().scheduleGeneral(new SetMobilised(_valakas), 16);
          // Move at random.
          if(FWV_MOVEATRANDOM)
          {
            Location pos = new Location(Rnd.get(211080, 214909), Rnd.get(-115841, -112822), -1662, 0);
            _moveAtRandomTask = ThreadPoolManager.getInstance().scheduleGeneral(new MoveAtRandom(_valakas, pos), 32);
          }
          _sleepCheckTask = ThreadPoolManager.getInstance().scheduleGeneral(new CheckLastAttack(), 600000);
          break;
      }
View Full Code Here

            path.add(npc.getLoc());
            path.add(pl.getLoc());
          }
          else
          {
            path = GeoMove.findPath(npc.getX(), npc.getY(), npc.getZ(), new Location(pl), player, false, npc.getReflection().getGeoIndex());
          }
          if(!path.isEmpty())
          {
            TreeMap<String, TreeMap<Long, Item>> items;
            ConcurrentLinkedQueue<TradeItem> tradeList;
View Full Code Here

  }

  public static ExShowTrace Points2Trace(L2Player player, ArrayList<Location> points, int step, int time)
  {
    ExShowTrace result = new ExShowTrace();
    Location _prev = null;
    for(Location p : points)
    {
      if(player.isGM())
      {
        player.sendMessage(p.toString());
View Full Code Here

    }
    if(args.length != 1)
    {
      return;
    }
    Location loc = teleports[Integer.parseInt(args[0]) - 1];
    L2Party party = player.getParty();
    if(party == null)
    {
      player.teleToLocation(loc);
    }
View Full Code Here

TOP

Related Classes of l2p.util.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.