benilla-re systems structs docs

PlaceOnActionSlot

function · ui · primitive

Address
0x4e62e0 · 1414 bytes, up to 0x4e6865
Signature
void __thiscall (void *this)
Meaning
Stores the cursor's spell, item or macro in a slot, returning the old content to the cursor
Confidence
verified, proof one
Finding
ui/actionuse#placing-an-action

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

PlaceAction (0x4e7240) runs 0x4e62e0(slot). It returns with nothing done unless the slot is 0 to 119 and the context check 0x494a50 for kind 9 passes. It reads three candidates: the spell on the cursor (mode 3), the item entry (the mode 7 payload, else the entry of the mode 1 item) and the macro (mode 8). The first of spell, item, macro that is set decides. A cursor holding anything else (money, pet action, vendor row, ammo, stabled pet) matches none: nothing happens and the payload stays on the cursor.

The derivation is in the doc.

Callers 3

Callees 17

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