benilla-re systems structs docs

RaiseBagOpen

function · ui · primitive

Address
0x4f9410 · 110 bytes, up to 0x4f947d
Signature
void __stdcall (uint64_t container)
Meaning
Raises BAG_OPEN with 0 for the player or each cache index 1 to 10 holding the container
Confidence
verified, proof one
Finding
ui/bags#backpack-and-keyring-events

Finding: Backpack and keyring events in ui: bags and bag slots

0x4f8db0 is the watcher of the backpack and keyring. On a change it unlocks the item, refreshes the action slots for the old and the new entry, and refreshes the two windows. Changed or not, it then raises BAG_UPDATE(-2) for slots 81 to 112 and calls 0x4f9370(player) for 23 to 38, which raises BAG_UPDATE(0). 0x4f9410(container) raises BAG_OPEN (327) with 0 for the player or the cache index, once for each match, and 0x4f93d0 raises BAG_UPDATE_COOLDOWN (330) with no argument.

The derivation is in the doc.

Callers 1

Callees 2

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