benilla-re systems structs docs

GetCursorItemInfo

function · ui · orchestration

Address
0x494c80 · 49 bytes, up to 0x494cb0
Signature
void __fastcall (uint64_t *guid, uint64_t *containerGuid, uint32_t *slot)
Meaning
Returns the item payload's GUID, source container and slot without a kind test
Confidence
verified, proof one
Finding
ui/cursor#cursor-functions

Finding: Cursor functions in ui: the cursor payload

ClearCursor() runs ClearCursor(1, 1) and returns 1 result without pushing one. CursorHasItem() returns the number 1 for kinds 1 and 9 and nil otherwise; CursorHasSpell() for kind 3; CursorHasMoney() for kind 2. None returns a boolean. AutoEquipCursorItem() calls the player's equip-from-cursor routine with 0 (objectlayer/inventory#bind-on-equip-confirmation).

EquipCursorItem(slot) needs a number (usage error otherwise) and an item on the cursor. A slot argument of 0 or 256 auto-equips. A slot holding the cursor item only clears the cursor. If CheckItemForSlot accepts the slot it sends a swap from the item's origin and locks the displaced item. If it refuses and the item came from an equipment slot below 19, it clears the cursor; otherwise it auto-equips with 1.

The derivation is in the doc.

Callers 13

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.