Package l2p.util

Examples of l2p.util.Location


 
  @Override
  protected boolean maybeMoveToHome()
  {
    L2NpcInstance actor = getActor();
    Location loc = actor.getSpawnedLoc();
    if (actor.isInRange(loc, 10000))
    {
      return true;
    }
    return true;
View Full Code Here


  protected void onEvtAttacked(L2Character attacker, int damage)
  {
    L2NpcInstance actor = getActor();
    if (actor.getCurrentHpPercents() < 50 && !_teleported)
    {
      Location loc = (new Location(84968, -208728, -3367));
      actor.setSpawnedLoc(loc);
      actor.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null, null);
      actor.teleToLocation(loc);
      _teleported = true;
      try
      {
        for (int i = 0; i < SPAWN_POINTS.length; i++)
        {
          Location oldPos = SPAWN_POINTS[i];
          L2Spawn s = new L2Spawn(NpcTable.getTemplate(LEMATANS_FOLLOWER));
          Location newPos = GeoEngine.findPointToStay(oldPos.x, oldPos.y, oldPos.z, 0, 0, actor.getReflection().getGeoIndex());
          s.setReflection(actor.getReflection().getId());
          s.setLoc(newPos);
          s.doSpawn(true);
        }
      }
View Full Code Here

      {
        String playerName = data[1];
        L2Player player = L2World.getPlayer(playerName);
        if(player != null)
        {
          teleportCharacter(player, new Location(Integer.parseInt(data[2]), Integer.parseInt(data[3]), Integer.parseInt(data[4])), activeChar);
        }
      }
    }
    else if(fullString.startsWith("admin_recall_char_menu"))
    {
View Full Code Here

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

          case 1: // spawn.
            LastImperialTombManager.cleanUpTomb(false);
            _state.setRespawnDate(Rnd.get(FWF_FIXINTERVALOFFRINTEZZA, FWF_FIXINTERVALOFFRINTEZZA + FWF_RANDOMINTERVALOFFRINTEZZA));
            _state.setState(EpicBossState.State.ALIVE);
            _state.update();
            _frintezzaDummy = spawn(new Location(174240, -89805, -5080, 16048, 29059));
            _overheadDummy = spawn(new Location(174232, -88020, -4000, 16384, 29059));
            _overheadDummy.setCollisionHeight(800);
            _overheadDummy.broadcastPacket(new NpcInfo(_overheadDummy, null));
            ThreadPoolManager.getInstance().scheduleGeneral(new Spawn(2), 1000);
            break;
          case 2:
View Full Code Here

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

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

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

    if(!enter || !object.isPlayer() || !object.isInZone(zone))
    {
      return;
    }
    L2Player p = object.getPlayer();
    Location TullyFloor2LocationPoint = new Location(-14180, 273060, -13600);
    final int MASTER_ZELOS_ID = 22377;
    boolean teleport = true;
    for(L2NpcInstance npc : p.getAroundNpc(3000, 256))
    {
      if(npc.getNpcId() == MASTER_ZELOS_ID && !npc.isDead())
View Full Code Here

    if(!enter || !object.isPlayer() || !object.isInZone(zone))
    {
      return;
    }
    L2Player p = object.getPlayer();
    Location TullyFloor4LocationPoint = new Location(-14238, 273002, -10496);
    final int MASTER_FESTINA_ID = 22380;
    boolean teleport = true;
    for(L2NpcInstance npc : p.getAroundNpc(3000, 500))
    {
      if(npc.getNpcId() == MASTER_FESTINA_ID && !npc.isDead())
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.