Package lineage2.gameserver.model

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


    if ((obj != null) && obj.isNpc())
    {
      NpcInstance temp = (NpcInstance) obj;
      Player activeChar = client.getActiveChar();
      temp.setTarget(activeChar);
      temp.moveToLocation(activeChar.getLoc(), 0, true);
    }
  }
 
  /**
   * Method playerHelp.
View Full Code Here


      if ((actor.getDistance(target) < 100) || (currentState >= coords.length) || (currentState == 0))
      {
        st.unset("saytimes");
        if (currentState < coords.length)
        {
          actor.moveToLocation(coords[currentState][0], coords[currentState][1], coords[currentState][2], Rnd.get(0, 50), true);
          if (actor.getDestination() == null)
          {
            ++currentState;
          }
        }
View Full Code Here

      if ((actor.getDistance(target) < 100) || (currentState1 >= coords.length))
      {
        if (currentState1 < coords.length)
        {
          st.unset("saytimes");
          actor.moveToLocation(coords[currentState1][0], coords[currentState1][1], coords[currentState1][2], Rnd.get(0, 50), true);
          if (actor.getDestination() == null)
          {
            ++currentState1;
          }
        }
View Full Code Here

          closestItem = (ItemInstance) obj;
        }
      }
      if (closestItem != null)
      {
        actor.moveToLocation(closestItem.getLoc(), 0, true);
      }
    }
    return false;
  }
 
View Full Code Here

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

    actor.setRunning();
    if ((actor.getTarget() == null) || (currentState >= coords.length) || (currentState == 0))
    {
      if (currentState < coords.length)
      {
        actor.moveToLocation(coords[currentState][0], coords[currentState][1], coords[currentState][2], Rnd.get(0, 50), true);
        if (actor.getDestination() == null)
        {
          ++currentState;
        }
      }
View Full Code Here

      int x = octavis.getX() + Rnd.get(2 * DRIFT_DISTANCE) - DRIFT_DISTANCE;
      int y = octavis.getY() + Rnd.get(2 * DRIFT_DISTANCE) - DRIFT_DISTANCE;
      int z = octavis.getZ();

      actor.setRunning();
      actor.moveToLocation(x, y, z, 0, true);

      startSkillAttackTask();

      return true;
    }
View Full Code Here

    actor.setRunning();
    if (isUnderState(State.AI_FOLLOW) && actor.getAggroList().isEmpty() && ((System.currentTimeMillis() - lastFollowPlayer) > 2000))
    {
      lastFollowPlayer = System.currentTimeMillis();
      actor.setFollowTarget(player);
      actor.moveToLocation(player.getLoc(), Rnd.get(200), true);
    }
    else if (isUnderState(State.AI_NEXT_STEP))
    {
      if (_step < POINTS.length)
      {
View Full Code Here

    else if (isUnderState(State.AI_NEXT_STEP))
    {
      if (_step < POINTS.length)
      {
        actor.setFollowTarget(player);
        actor.moveToLocation(new Location(POINTS[_step][0], POINTS[_step][1], POINTS[_step][2]), 0, true);
        ++_step;
      }
      setState(State.AI_IDLE);
    }
    else if (isUnderState(State.AI_ATTACK_GENERATOR))
View Full Code Here

        }
        if (actor.isMoving)
        {
          return false;
        }
        if (!actor.moveToLocation(currentTask.loc, 0, currentTask.pathfind))
        {
          clientStopMoving();
          _pathfindFails = 0;
          actor.teleToLocation(currentTask.loc);
          return maybeNextTask(currentTask);
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.