Examples of moveToLocation()


Examples of l2p.gameserver.model.instances.L2NpcInstance.moveToLocation()

    {
      return false;
    }
    actor.setWalking();
    // Телепортируемся домой, только если далеко от дома
    if(!actor.moveToLocation(x, y, z, 0, false) && !isInRange)
    {
      teleportHome(true);
    }
    return true;
  }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.moveToLocation()

        }
        if(actor.isMoving)
        {
          return false;
        }
        if(!actor.moveToLocation(currentTask.loc, 0, currentTask.pathfind))
        {
          clientStopMoving();
          _pathfind_fails = 0;
          actor.teleToLocation(currentTask.loc);
          //actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 2036, 1, 500, 600000));
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.moveToLocation()

    if(obj != null && obj.isNpc())
    {
      L2NpcInstance temp = (L2NpcInstance) obj;
      L2Player activeChar = client.getActiveChar();
      temp.setTarget(activeChar);
      temp.moveToLocation(activeChar.getLoc(), 0, true);
    }
  }

  private void playerHelp(int objectId, String path)
  {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.moveToLocation()

    if(actor == null)
    {
      return;
    }
    actor.setRunning();
    if(actor.moveToLocation(loc, 0, true))
    {
      return;
    }
    clientStopMoving();
    _pathfind_fails = 0;
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.moveToLocation()

    int spawnZ = sloc.z;
    int x = spawnX + Rnd.get(2 * range) - range;
    int y = spawnY + Rnd.get(2 * range) - range;
    int z = GeoEngine.getHeight(x, y, spawnZ, actor.getReflection().getGeoIndex());
    actor.setRunning();
    actor.moveToLocation(x, y, z, 0, true);
    addTaskMove(spawnX, spawnY, spawnZ, false);
    if(System.currentTimeMillis() - _lastAction > voicetime)
    {
      Functions.npcSay(actor, _retreatText[Rnd.get(_retreatText.length)]);
      _lastAction = System.currentTimeMillis();
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.moveToLocation()

    Location sloc = actor.getSpawnedLoc();
    int x = sloc.x + Rnd.get(2 * PET_WALK_RANGE) - PET_WALK_RANGE;
    int y = sloc.y + Rnd.get(2 * PET_WALK_RANGE) - PET_WALK_RANGE;
    int z = GeoEngine.getHeight(x, y, sloc.z, actor.getReflection().getGeoIndex());
    actor.setRunning();
    actor.moveToLocation(x, y, z, 0, true);
    return true;
  }

  @Override
  protected void onEvtAttacked(L2Character attacker, int damage)
View Full Code Here

Examples of lineage2.gameserver.model.Playable.moveToLocation()

          return false;
        }
        Location loc = (Location) nextAction_arg0;
        Integer offset = (Integer) nextAction_arg1;
        clearNextAction();
        actor.moveToLocation(loc, offset, nextAction_arg2);
        break;
      case REST:
        actor.sitDown(null);
        break;
      case INTERACT:
View Full Code Here

Examples of lineage2.gameserver.model.Playable.moveToLocation()

      }
      setIntention(AI_INTENTION_ACTIVE);
    }
    else
    {
      actor.moveToLocation(target.getLoc(), 40, true);
      setNextAction(nextAction.INTERACT, target, null, false, false);
    }
  }
 
  /**
 
View Full Code Here

Examples of lineage2.gameserver.model.Playable.moveToLocation()

      ThreadPoolManager.getInstance().execute(new RunnableImpl()
      {
        @Override
        public void runImpl()
        {
          actor.moveToLocation(target.getLoc(), 10, true);
          setNextAction(nextAction.PICKUP, target, null, false, false);
        }
      });
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.Player.moveToLocation()

          {
            return;
          }
          Location loc = requestor.applyOffset(activeChar.getLoc(), 25);
          loc = GeoEngine.moveCheck(requestor.getX(), requestor.getY(), requestor.getZ(), loc.x, loc.y, requestor.getGeoIndex());
          requestor.moveToLocation(loc, 0, false);
          requestor.getAI().setNextAction(PlayableAI.nextAction.COUPLE_ACTION, activeChar, _actionId, true, false);
        }
        finally
        {
          request.done();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.