benilla-re systems structs docs

PickupActionSlot

function · ui · primitive

Address
0x4e6130 · 424 bytes, up to 0x4e62d7
Signature
void __thiscall (void *this)
Meaning
Puts a slot's content on the cursor and clears the slot
Confidence
verified, proof one
Finding
ui/actionuse#picking-up-an-action

Finding: Picking up an action in ui: placing, picking up and using actions

PickupAction (0x4e71d0) runs 0x4e6130(slot). A slot outside 0 to 119 does nothing. While the cursor already holds a spell, an item, a macro or a mode 7 payload, it places instead (0x4e62e0). An empty slot does nothing. Otherwise it puts the slot's content on the cursor and clears the slot with 0x4e5db0, which stores 0 and sends it: an item as mode 7 (the entry, the template's display id or 0 when the template is unknown, and the slot), a spell as mode 3, a macro as mode 8. A word of no kind or a macro that is gone just clears the slot.

The derivation is in the doc.

Callers 1

Callees 11

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