Skip to content

sdk.tools

Rope, shovel, machete, door. UseTwoObjects / UseObject from the catalog. Item ids are Canary / sdk.data names, not opcodes.

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

Constants

Lua 5.4 has no enums — these are integer (or string) fields on the module.

NameValueSummary
ROPE3003
SHOVEL3457
MACHETE3308

use_native

function · use_native(pos, item_id, stackpos)

Invoke Tibia's TGenericGameActionHandler::use path. The client converts the typed action contexts into GameclientMessageUseObject and publishes it on the owning GUI thread, exactly like an in-client smart click.

use

function · use(item_id, pos, ground_id)

Use a tool item on a location (rope/shovel/machete).

rope

function · rope(pos, hole_id)

Use a rope on the tile.

shovel

function · shovel(pos, hole_id)

Use a shovel on the tile.

machete

function · machete(pos, grass_id)

Use a machete on the tile.

door

function · door(pos, door_id)

Use/open the door on the tile.

Arcane SDK catalog generated from scripts/sdk