benilla-re systems structs docs

Script::PickupAction

function · ui · orchestration

Address
0x4e71d0 · 64 bytes, up to 0x4e720f
Signature
int __fastcall (lua_State *L)
Meaning
Picks up the action of a slot
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 5

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