Package lineage2.gameserver.model

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


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

      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

          {
            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

    }
    if (activeChar.isInFlyingTransform())
    {
      _targetLoc.z = Math.min(5950, Math.max(50, _targetLoc.z));
    }
    activeChar.moveToLocation(_targetLoc, 0, (_moveMovement != 0) && !activeChar.getVarB("no_pf"));
  }
}
View Full Code Here

            break;
          case 53:
            if ((target != null) && (servitor != target) && !servitor.isMovementDisabled())
            {
              servitor.setFollowMode(false);
              servitor.moveToLocation(target.getLoc(), 100, true);
            }
            break;
          case 1000:
            if ((target != null) && !target.isDoor())
            {
View Full Code Here

        case 0:
          if (!airship.isCustomMove())
          {
            break;
          }
          airship.moveToLocation(airship.getLoc().setX(_param1).setY(_param2), 0, false);
          break;
        case 2:
          if (!airship.isCustomMove())
          {
            break;
View Full Code Here

        case 2:
          if (!airship.isCustomMove())
          {
            break;
          }
          airship.moveToLocation(airship.getLoc().changeZ(100), 0, false);
          break;
        case 3:
          if (!airship.isCustomMove())
          {
            break;
View Full Code Here

        case 3:
          if (!airship.isCustomMove())
          {
            break;
          }
          airship.moveToLocation(airship.getLoc().changeZ(-100), 0, false);
          break;
      }
    }
  }
}
View Full Code Here

    actor.setRunning();
    if ((actor.getDistance(target) < 100) || (currentState == 0) || (currentState >= coords.length))
    {
      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

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.