benilla-re systems structs docs

s_cursorItemSourceSlot

global · ui

Address
0xb4b400 · 4 bytes, up to 0xb4b403
Type
uint32_t
Meaning
Holds the slot the item payload came from
Confidence
verified, proof one
Finding
ui/cursor#payload-kinds

Finding: Payload kinds in ui: the cursor payload

s_cursorType (0xb4d900) says what the cursor holds; 0 is nothing. Each kind owns its own globals.

kindholdsglobals
1an itemGUID 0xb4e248, source container GUID 0xb4b3c8, source slot 0xb4b400, split count 0xb4b40c
2moneycopper 0xb4e2f0
3a spellspell id 0xb4e2f4
4a pet actionthe action word 0xb4e2f8
5, 7, 9a previewentry 0xb4b41c, display id 0xb4d8ec, index 0xb4b420
8a macromacro id 0xb4e2fc
10a stabled petstable index 0xb4e300

Kind 5 is a vendor row (the index is the row), kind 7 an action bar item, kind 9 ammo. Kind 6 has no writer. The preview entry 0xb4b41c is nonzero exactly for kinds 5, 7 and 9, and GetCursorAmmo (0x495170) returns it. 0x495180 returns the entry and index. 0xb4da24 is a latch, 1 when the grab showed a bar grid.

The derivation is in the doc.