Package lineage2.gameserver.model

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


    {
      final int x = (edwin.getX() + Rnd.get(2 * DRIFT_DISTANCE)) - DRIFT_DISTANCE;
      final int y = (edwin.getY() + Rnd.get(2 * DRIFT_DISTANCE)) - DRIFT_DISTANCE;
      final int z = edwin.getZ();
      actor.setRunning();
      actor.moveToLocation(x, y, z, 0, true);
      return true;
    }
    return false;
  }
 
View Full Code Here


    {
      return false;
    }
    Location pos = Location.findPointToStay(actor, sloc, 0, Config.MAX_DRIFT_RANGE);
    actor.setWalking();
    if (!actor.moveToLocation(pos.x, pos.y, pos.z, 0, true) && !isInRange)
    {
      teleportHome();
    }
    return true;
  }
View Full Code Here

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

    NpcInstance actor = getActor();
    if (actor == null)
    {
      return;
    }
    if (!actor.moveToLocation(loc, 0, false))
    {
      clientStopMoving();
      actor.teleToLocation(loc);
      continueWalkerRoute();
      }
View Full Code Here

    final int z = GeoEngine.getHeight(x, y, sloc.z, actor.getGeoIndex());
    switch (actor.getNpcId())
    {
      case Boy:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Girl:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
View Full Code Here

        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Girl:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Rabbits:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
View Full Code Here

        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Rabbits:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Rabbits2:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
View Full Code Here

        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Rabbits2:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Marsha:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
View Full Code Here

        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      case Marsha:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      default:
        actor.moveToLocation(x, y, z, 0, true);
        break;
    }
View Full Code Here

      case Marsha:
        actor.setRunning();
        actor.moveToLocation(x, y, z, 0, true);
        break;
      default:
        actor.moveToLocation(x, y, z, 0, true);
        break;
    }
    return true;
  }
}
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.