Project Sylvanas docs axiombot.net Discord

Walk commands

CommandWhat it does
client:move_to(place, done?, options?)Find a route and walk it. The everyday command
client:travel_to(place, done?, options?)Go anywhere, taking ships, zeppelins, Skycutters, the Deeprun Tram and lifts on the way. WoW Forever. Since v1.35
client:move_direct(place, done?)Walk in a straight line, no route. For the last couple of yards, e.g. onto a step
client:follow_path(points, done?, options?)Walk your own list of points in order
client:move_to_sight(target, done?, options?)Walk to the nearest spot that can see target (for casting), then stop
client:swim_up(done?, opts?) / client:swim_down(z?, done?, opts?)Straight up to the surface, or down to a height or the floor
client:leave_patch(place?, done?)Get off a ledge or out of a crevice the character fell onto
client:stop()Stop walking now

When a walk ends

Every walk calls done(ok, reason, detail) once, at the end. detail, when there is one, is { code, detail, destination }: a short code and a sentence for your log.

CodeWhat happenedWhat to do
arrivedThe character is there (within 5 yd, height included). A place under the ground (an object half in the sand, a spot inside a post or a rock) is measured from the ground over it: the character stands on the ground beside it. Since v1.30.Carry on.
unreachableNo way there on foot, or no floor near it to stand on (up a rock face). It walked to the nearest floor it could reach; detail says how far off that is. Also used for a place that is not in the world (a position of infinity). The same place asked again within 30 s, from where the character stands (within 3 yd), after it was found out of reach from that floor, gets the same answer the next frame with detail.again = true: nothing is walked or asked for. Since v1.33.Pick another spot. check_spots can tell you first.
max_stuck_exceededStuck again and again; it gave up.Try a nearby spot, or report it.
max_repath_exceededKept being pushed off the way; it gave up.Try again a little later.
server_timeoutThe route server did not answer.Wait and try again.
needs_dismountMounted at a door, under a low roof or at the edge of an area with no ground mounts, and nobody got off within 20 s.Dismount on the dismount_needed event. See Mounts.
portal_no_jumpThe walk goes through one of the game's pads that move you, and the game did not move the character within 6 s.Try again. Nothing to click: walking onto the pad is all it takes.
bannedThis Project Sylvanas account is banned from AXIOM NAV by the AXIOM team. Every walk command answers this the next frame and nothing moves; a walk under way is stopped. Questions still answer. The player is told why once, in the middle of the screen. Since v1.28.Stop asking for walks. It lifts by itself when the ban is lifted (within a minute).

An unreachable detail reads like this: "nearest reachable floor reached, 29.7 yd from the destination (5.0 flat, 29.2 below)".

move_to

client:move_to(place, function(ok, reason, detail) end, { roads = true })
  • Safe to call every frame. The same place (less than 1.5 yd off) with the same options is ignored.
  • A new place does not stop the walk. The character walks on along the route it has, and the new route takes over from where it is when it arrives. Following something that moves (a mob, a player), calling once a second or every half second is plenty. Only one route is asked for at a time.
  • The callback is the latest move_to's.
  • Changing roads or avoid_mobs for the same place is not a repeat: the walk changes over to the new route without stopping. Use it to leave the road for the last stretch.
  • The options are on Walk options.

travel_to

Since v1.35. WoW Forever only for now.

client:travel_to({ x = 6420, y = 520, z = 8, map_id = 1 }, function(ok, reason, detail) end, { roads = true })

Goes to a place on any map, taking a ship, a zeppelin, a Skycutter, the Deeprun Tram or a lift where that is quicker or the only way (example: Travel anywhere). It plans the trip by time (walking, waiting at the stop, sailing, the loading screen), walks to the dock, waits there until the ship stands at the pier, boards, stands at a random safe spot on the open deck (never inside, at least 3 yd from any edge), walks to the gangway about 20 s before its stop and steps off the moment the ship stops, then walks on. From an upper deck it jumps straight down onto the pier instead when that is quicker and the fall does no damage (since v1.35). A trip may take more than one ship. Every walk on land is a move_to with your options.

  • A move_to with map_id set to another map (in options, or place.map_id) does the same.
  • Every Forever route is known: the old ships and zeppelins, and the new ones (Stormwind - Auberdine, Menethil - Southshore - Auberdine, Steamwheedle Port - south-east Eastern Kingdoms, and the Skycutters from Silverpine and Mulgore to Zephras Isle, since v1.35).
  • The Deeprun Tram too (since v1.35): a travel_to between Stormwind and Ironforge goes through it when that is quicker. Inside, it waits on the middle platform and walks to whichever tram it can catch first (it knows the trams' timetable from the cars it sees), boards whichever of its three cars is nearest over the platform's little ledge to that car's door, stands at a random spot in the car's open middle and walks out the same way at the other end.
  • Lifts too (since v1.35): Thunder Bluff's four, the Great Lift, Freewind Post's and Undercity's three (in and out only while the lift's gate is fully up). A travel_to between a lift's bottom and top goes up or down by whichever of its lifts can be caught first. It waits at a random spot by the lifts, steps on through the gap between two of the platform's posts as it arrives, stands at a random spot clear of the posts and steps off at the other level. At a bottom stop it may jump on instead, timed to land as the lift stops (only in its last yards down; otherwise it walks on). A move_to alone never takes a lift: use travel_to.
  • client:get_travel() says what it is doing: { phase, leg, legs, path, eta_s }, nil when no trip is under way. phase is one of walk, to_dock, wait, board, stand, to_exit, at_exit, step_off; on the tram tram_in, tram_walk_wait, tram_wait, tram_to_edge, tram_at_edge, tram_board, tram_ride, tram_off, tram_out; on a lift lift_platform, lift_walk_wait, lift_wait, lift_to_landing, lift_at_landing, lift_board, lift_ride, lift_off, and for the jump on lift_to_jump, lift_jump_ready, lift_jump_run.
  • Asked while the character already stands on a ship or zeppelin (after a reload, or mid-sail), travel_to and move_to ride on from there: a safe spot on the deck, then off at the stop that gets to the place soonest. A move_to on the deck never walks off the side. Since v1.35.
  • The same place asked again during a trip (within 3 yd) keeps the trip going; only the new done is called at its end. Since v1.35.
  • stop(), or any other walk command, ends the trip (cancelled).

Its own end codes, besides the ones above:

CodeWhat happened
no_transportNo way there by the known routes (the place's map has no stop, or the only ship there cannot be told apart yet)
walk_failedA walk on land failed; detail.detail is its code
no_shipNo ship came to the stop in 20 minutes
missedThe ship left with the character still on the dock, twice
off_shipThe character was off the deck for 2.5 s (knocked off, or it fell)
lost_shipThe ship was not found again in 15 s (after the loading screen)
deck_stuckA walk across the deck made no headway in 6 s
off_tram, off_liftThe character was off the tram car or the lift's platform during the ride
cancelledstop() or a new walk command

move_direct

A straight line, no route, no checks. For the last yard or two, when you know the line is clear. A target 0.5 to 1.5 yd above the character (within 30 yd) on a step is jumped onto at the step's face.

warning

Do not use move_direct under water to reach something inside a wreck or a cave. It is straight on purpose and swims into the hull. Use move_to.

follow_path

Walk your own points, in order. The points are the walk:

  • The points are checked against the walking map when the walk starts, and every 5 s.
  • A leg that runs into a wall gets a real route for that leg only. The points after it are walked as given.
  • Drifting off the line, a stuck or a refused fence routes from the character to the next given point ahead.
  • A point that had to be routed to twice already (off the walking map) is passed over.
  • Options: avoid_mobs, avoid_ring (as move_to's).
client:follow_path({ p1, p2, p3, p4 }, function(ok, reason)
    core.log("patrol done: " .. tostring(ok))
end, { avoid_mobs = true })

move_to_sight

Walks to the nearest spot that can see target, then stops.

SituationCallback
Already in sight from heredone(true, "in_sight"), no walk
No such spotdone(false, "no_sight_spot")
Otherwisemove_to's callback

Options: range (default 30), min_range (default 0), eye, target_height (default 2), plus any move_to option. See the Cast from sight example.

stop

Stops at once. Call it before you move the character yourself.

swim_up and swim_down

Plain tools: AXIOM NAV decides nothing about breath. Your plugin reads the water and says when to go up.

CallEnds ok withEnds not ok with
client:swim_up(done?, { z?, timeout_ms? })surfaced, reachedblocked (under a dock), timeout (20 s default), not_swimming, cancelled
client:swim_down(z?, done?, opts?) (no z: to the floor)reached, floortimeout, not_swimming, left_water, cancelled

Both stop a walk under way first. Any new walk command or stop() cancels them. See the Under water example.

leave_patch

For a character that fell onto a ledge or into a crevice where no walk leads anywhere. It walks straight to the nearest floor it can reach, lower first. Then ask for your route again.

client:leave_patch(where_i_was_going, function(ok, reason, info)
    -- info = { spot, why }
    -- not ok: "not_on_a_patch" (the ground is fine: the place you asked for is the problem),
    --         "no_floor_off_the_patch", "legs_used", "replaced"
end)

A walk that ends trapped like this already does it by itself.