Travel anywhere (ships, zeppelins, tram, lifts)
Since v1.35. WoW Forever only for now.
travel_to is one command for any trip. It plans the whole way by time and takes a ship, a zeppelin, a Skycutter,
the Deeprun Tram or a lift wherever that is quicker or the only way. When nothing helps it is an ordinary walk, with
the same options as move_to, so you can use it for every destination.
local client = _G.AXIOM_NAV and _G.AXIOM_NAV.client
-- Thunder Bluff's top from Mulgore, the other side of the sea, or the next street: the same call
client:travel_to({ x = goal.x, y = goal.y, z = goal.z, map_id = goal.map_id }, function(ok, reason, detail)
if ok then
core.log("there")
else
core.log(("trip ended: %s (%s)"):format(reason, detail and detail.detail or "-"))
end
end, { roads = true })What it takes
| Transport | Where | How it rides |
|---|---|---|
| Ships and zeppelins | Every Forever route, the old ones and the new ones | Waits at a random safe spot on the dock, boards when it stands at the pier, stands at a random safe spot aboard, steps off at its stop. From an upper deck it may jump onto the pier when that is quicker and the fall does no damage |
| Skycutters | Silverpine and Mulgore to Zephras Isle | As the zeppelins |
| Deeprun Tram | Stormwind and Ironforge | Waits on the platform, boards whichever car of whichever tram it can catch first over the ledge to its door, stands at a random spot in the car |
| Lifts | Thunder Bluff (all four), the Great Lift, Freewind Post, Undercity (all three) | Waits at a random spot by the lifts, takes whichever lift it can catch first, steps on through the gap between the posts (or jumps on at a bottom stop as the lift arrives), stands at a random spot clear of the posts, steps off at the other level. Undercity's: in and out only while the lift's gate is fully up |
A plain move_to never takes a lift or the tram: Thunder Bluff's top from its bottom, for example, needs travel_to.
More lifts are added inside travel_to as they are done: nothing changes on your side.
Showing the trip
-- in your on_update: what the trip is doing now
local t = client:get_travel()
if t then
-- t.phase: e.g. "wait", "board", "stand", "tram_wait", "lift_wait", "lift_ride"
-- t.leg / t.legs: which part of the trip; t.eta_s: seconds left, roughly
my_status_line(("travelling: %s (%d/%d), about %ds"):format(t.phase, t.leg, t.legs, t.eta_s or 0))
endWhile a trip runs, client:is_moving() is true and client:get_state_detail() is
"navigating.travelling.<phase>", waits included. A wait for a ship can be minutes and for a lift up to about 30 s:
do not treat it as idle or stuck, do not mount and do not move the character yourself. Calling travel_to again with
the same place (within 3 yd) keeps the trip going; client:stop() or another walk command ends it (cancelled), and
calling travel_to again resumes from wherever the character is, on a deck, in a tram car or on a lift included.
The phases and end codes are listed on Walk commands.