Appearance
sdk.tiles
Live items on a tile. A full snapshot is read from Tibia's RTTI-identified TWorldMapStorage; CreateOnMap / ChangeOnMap / DeleteOnMap keep it current. game.map is static terrain. This module is the live ordered object stack.
lua
local M = require("sdk.tiles")reset
function · reset()
Drop the map-item cache.
clear
function · clear()
Alias of reset.
replace
function · replace(rows)
Replace the cache with a complete snapshot. Kept public so other trusted client readers can supply the same {x,y,z,id,stackpos} rows.
refresh
function · refresh()
Rebuild the cache from the last full map snapshot.
note
function · note(ev)
Apply a map create/change/delete event.
items
function · items(x, y, z)
Cached items on a tile.
top
function · top(x, y, z)
Top item on a tile.
contains
function · contains(x, y, z, item_id)
True when the tile cache contains item_id.
around
function · around(range, opts)
Items on nearby tiles.
pickup
function · pickup(item, count)
Pick up a tracked ground item.