benilla-re systems structs docs

GetCursorItemGuid

function · ui · orchestration

Address
0x494c60 · 26 bytes, up to 0x494c79
Signature
uint64_t __cdecl (void)
Meaning
Returns the item payload's GUID, 0 for any other kind
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 10

Callees 0

None by a direct call or jump.

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