benilla-re systems structs docs

UnlockAllItems

function · ui · primitive

Address
0x495460 · 297 bytes, up to 0x495588
Signature
void __cdecl (void)
Meaning
Clears the lock of every item the player holds and signals ITEM_LOCK_CHANGED once
Confidence
verified, proof one
Finding
ui/cursor#the-item-lock

Finding: The item lock in ui: the cursor payload

Bit 0 of the item's word at +0x314 marks an operation pending. 0x4953e0(guid) sets it and signals ITEM_LOCK_CHANGED only when the item resolves. 0x495420(guid) clears it and signals the event for any nonzero GUID, whether or not the item resolves. A locked item cannot be picked up from a bag. The server's reply clears it: the inventory slot field update (objectlayer/playerfields#inventory-and-money-changes) and a failed inventory change message (objectlayer/inventory) clear the items they name. A cancelled drag releases its item through the clear's unlock argument; a swap clears with unlock 0, so the held item stays locked until the server answers. 0x495460 clears every item the active player holds, bags included, and signals once; the player's resurrection calls it.

The derivation is in the doc.

Callers 1

Callees 3

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