Package l2p.util

Examples of l2p.util.Location


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


      {
        L2Spawn sp = new L2Spawn(NpcTable.getTemplate(run[0]));
        sp.setLoc(guard_spawn_loc);
        sp.setReflection(actor.getReflection().getId());
        L2NpcInstance guard = sp.doSpawn(true);
        Location runLoc = new Location(run[1], run[2], run[3]);
        guard.setRunning();
        guard.getAI().addTaskMove(runLoc, true);
        guard.getAI().setGlobalAggro(0);
        // Выбираем случайную цель
        L2Character hated = actor.getRandomHated();
View Full Code Here

          activeChar.sendMessage("USAGE: //walk x y z");
          return false;
        }
        try
        {
          activeChar.moveToLocation(new Location(Util.joinStrings(" ", wordList, 1)), 0, true);
        }
        catch(IllegalArgumentException e)
        {
          activeChar.sendMessage("USAGE: //walk x y z");
          return false;
View Full Code Here

  private void teleportTo(L2Player activeChar, L2Player target, String Cords)
  {
    try
    {
      teleportTo(activeChar, target, new Location(Cords));
    }
    catch(IllegalArgumentException e)
    {
      activeChar.sendMessage("You must define 3 coordinates required to teleport");
      return;
View Full Code Here

    {
      if(count <= 10)
      {
        int i = Rnd.get(locs.length);
        L2MonsterInstance mob = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(18493));
        mob.setSpawnedLoc(new Location(locs[i]));
        mob.onSpawn();
        mob.spawnMe(new Location(locs[i]));
        count++;
      }
    }
View Full Code Here

    {
      return false;
    }
    for(int i = 0; i < points.length; i++)
    {
      Location loc = points[Rnd.get(points.length)];
      if(actor.getLoc().equals(loc))
      {
        continue;
      }
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 4671, 1, 1000, 0));
View Full Code Here

      {
        for(int i = 0; i < 2; i++)
        {
          try
          {
            Location pos = GeoEngine.findPointToStay(actor.getX(), actor.getY(), actor.getZ(), 100, 120, actor.getReflection().getGeoIndex());
            L2Spawn sp = new L2Spawn(NpcTable.getTemplate(22620));
            sp.setLoc(pos);
            L2NpcInstance npc = sp.doSpawn(true);
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, killer, Rnd.get(1, 100));
          }
View Full Code Here

    {
      removeItem(player, 14832, 1);
      object.deleteMe();
      try
      {
        Location pos = GeoEngine.findPointToStay(player.getX(), player.getY(), player.getZ(), 100, 120, player.getReflection().getGeoIndex());
        L2Spawn sp = new L2Spawn(NpcTable.getTemplate(25667));
        sp.setLoc(pos);
        L2NpcInstance npc = sp.doSpawn(true);
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
      }
View Full Code Here

    Log.add("Baylor died", "bosses");
    for(Location loc : _baylorChestLocation)
    {
      spawn(loc, 29116 + Rnd.get(2));
    }
    spawn(new Location(153570, 142067, -9727, 55500), Parme);
    spawn(new Location(153569, 142075, -12732, 55500), Oracle);
    startCollapse();
  }
View Full Code Here

            ThreadPoolManager.getInstance().scheduleGeneral(new Social(_crystaline[i], 2), 15000);
          }
          break;
        case Baylor:
          Dying = false;
          _baylor = spawn(new Location(153569, 142075, -12732, 59864), Baylor);
          _state.setRespawnDate(getRespawnInterval() + FWBA_ACTIVITYTIMEOFMOBS);
          _state.setState(EpicBossState.State.ALIVE);
          _state.update();
          if(_socialTask != null)
          {
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.