WalkerAPI
Walks to any tile in the game with the same walker our own plugins use.
Final classRLPlugins API
public final class WalkerAPIIt plans the route, goes through doors, gates, stairs, ladders and shortcuts, and uses fairy rings and teleports the player can already use. It never goes to a bank or the Grand Exchange to get teleport items.
walkTo waits until the player arrives, so call it from loop() in a VitaPlugin. One walk runs at a time for the whole client: while another plugin walks, a new walk is refused. Call stop() in your plugin's shutDown() so the walk ends when your plugin is turned off.
Members
Static methods
- booleanisWalking()
Whether a walk your plugin started is still running.
- voidstop()
Stops the walk your plugin started.
- booleanwalkTo(WorldPoint)
Walks to a tile, using teleports the player can already use when they are faster.
- booleanwalkTo(WorldPoint, boolean)
Walks to a tile.
isWalking()static
public static boolean isWalking()Whether a walk your plugin started is still running.
Returns
True while your plugin's walk runs.
stop()static
public static void stop()Stops the walk your plugin started.
Does nothing while another plugin walks.
walkTo(WorldPoint)static
public static boolean walkTo(WorldPoint destination)Walks to a tile, using teleports the player can already use when they are faster.
Waits until the player arrives.
Parameters
destination- The tile to walk to.
Returns
True when the player reached the tile; false when there is no route, the walk was stopped, another walk was already running, or it was called on the client thread.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
walkTo(WorldPoint, boolean)static
public static boolean walkTo(WorldPoint destination, boolean useTeleports)Walks to a tile.
With useTeleports false it only walks, still going through doors, stairs, ladders and shortcuts. Waits until the player arrives.
Parameters
destination- The tile to walk to.
useTeleports- Whether fairy rings and teleports may be used.
Returns
True when the player reached the tile; false when there is no route, the walk was stopped, another walk was already running, or it was called on the client thread.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
Also allowed
Every class has these, as in plain Java.
equals, toString