Skip to content

sdk.movement

Thin wrappers around native game.walk / game.move_to. Combat remains acknowledgement-driven one-tile walking; bounded town recovery segments use moveTo so the official client can keep its normal pre-walk cadence.

lua
local M = require("sdk.movement")

walk

function · walk(dir)

Walk one tile (or stop) through the native client action queue.

Parameters

NameTypeSummary
dirstring|integerCompass name/abbreviation, or an sdk.math.dir value.

Returns

TypeSummary
boolean|nilok
string|nilerr walk missing, unknown direction, or the native send error.

moveTo

function · moveTo(x, y, z)

Ask the official client to walk toward a world-map coordinate.

Parameters

NameTypeSummary
xnumber
ynumber
znumberFloor in the inclusive range 0..15.

Returns

TypeSummary
boolean|nilok
string|nilerr invalid position, move_to missing, or the native send error.

stop

function · stop()

Cancel an in-flight walk / MoveTo. Official GameclientMessageStop.

Returns

TypeSummary
boolean|nilok
string|nilerr

Arcane SDK catalog generated from scripts/sdk