Project Sylvanas docs axiombot.net Discord

Reference

Every stable call on one page. Anything not listed here is the plugin's own and may change without notice.

_G.AXIOM_NAV

FieldKindReturns
clientfieldThe shared client, nil until loaded
VERSIONfieldThe version string
report_logs(opts?)dot callLog rows for a bug report (Bug reports)
report_state()dot callUp to 12 plain values
perf_state()dot callstate, waiting

Walk commands

All end with done(ok, reason, detail), called once. Details: Walk commands.

SignatureNotes
client:move_to(place, done?, opts?)Walk options
client:move_direct(place, done?)Straight line, no route
client:travel_to(place, done?, opts?)Anywhere: by ship, zeppelin, Skycutter, the Deeprun Tram or a lift where quicker, else a walk (Forever). place.map_id. Since v1.35
client:follow_path(points, done?, opts?)opts avoid_mobs, avoid_ring
client:move_to_sight(target, done?, opts?)opts range, min_range, eye, target_height + move_to's
client:swim_up(done?, opts?)opts z, timeout_ms
client:swim_down(z?, done?, opts?)no z: to the floor
client:leave_patch(place?, done?)done(ok, reason, { spot, why })
client:set_jump_fences(on)The Jump fences setting for every walk. Prefer the jump_fences walk option
client:stop()

Questions

SignatureAnswer
client:is_moving()boolean
client:get_state()idle, navigating, arrived, failed
client:get_state_detail()e.g. navigating.recovering.strafing; navigating.travelling.<phase> on a trip (ship, zeppelin, tram, lift; since v1.35)
client:get_progress(){ percent, waypoints_remaining, total_waypoints, current_index }
client:get_route()points, or nil
client:get_route_step()index
client:get_destination()vec3, or nil
client:get_travel(){ phase, leg, legs, path, eta_s }, or nil. Since v1.35
client:get_road_share()0 to 1, or nil
client:get_mob_stats(){ routes, bent, no_way, last }
client:get_jump_fences()boolean
client:get_jump_stats(){ offered, jumped, refused, failed, remembered }
client:get_drop_stats(){ offered, taken, refused, failed, last_loss, remembered }
client:get_dismount_needed()table, or nil
client:get_ride_from()table, or nil
client:get_mount_here()table, or nil
client:get_mount_stats()counters since F6
client:get_water()table (Questions)
client:is_server_available()boolean
client:get_data_build()table, or nil
client:check_spots(points, done, opts?)done(ok, results): one table per point
client:find_path(from?, to, done, opts?)done(ok, { points, distance, partial, snapped, end, ... }): the route, nothing moves. Since v1.29.
client:find_distance(from, to, done, opts?)done(ok, { distance, reached, cut, stop, left, ... }); opts.points = true adds points, the way every spacing yd (since v1.35)
client:has_line_of_sight(from, to, done, opts?)done(ok, { clear, hit_distance, hit })
client:find_sight_spot(target, done, opts?)done(ok, { found, already, spot, walk, distance, found_by })
client:get_height(place, done)done(ok, { height })

A question about a place that is not in the world (infinity, not a number, beyond 20000 yd) answers done(false, nil, "invalid position: ...").

Events

client:on(name, fn, owner?), client:off(owner | id | name, fn). Names: Events.

Failure reasons

CodeMeaning
unreachableNo way there on foot, no floor there, trapped, or not a place in the world
max_stuck_exceededStuck too often
max_repath_exceededPushed off the way too often
server_timeoutThe route server did not answer
needs_dismountStill mounted at the get-off point after the wait
portal_no_jumpOn a pad and not moved by the game within the wait
bannedThis account is banned from AXIOM NAV: every walk command refused, nothing moves. Since v1.28.

Old names

Still answering, but they will go. Each use writes a log row naming the caller.

OldUse instead
client:get_full_state()client:get_state_detail()
client:get_current_path()client:get_route()
client:get_path_index()client:get_route_step()
client:get_event_bus():on("nav.arrived", fn, { owner = o })client:on("arrived", fn, o)
any "nav.<name>" event"axiom_nav.<name>", or the short name with client:on
"state_change", "stuck""state_changed", "stuck_detected"
_G.AXIOM_NAV.create()_G.AXIOM_NAV.client

Removed

These answer done(false, "removed") and a console warning.

RemovedInstead
start_route, plan_routemove_to each place in turn
replannothing: AXIOM NAV asks for a new route by itself
validate_destinationcheck_spots
get_route_progressget_progress
get_player_heightget_height with the character's position
get_all_heights, get_player_all_heightscheck_spots (floors)
get_corridor_widths, get_corridor_optsnothing