LockItem
function · ui · primitive
- Address
0x4953e0· 62 bytes, up to0x49541d- Signature
void __stdcall (uint64_t guid)- Meaning
- Sets an item's pending-operation lock and signals ITEM_LOCK_CHANGED
- 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 10
- Script::EquipCursorItem ui
- Script::DeleteCursorItem ui
- ClickInventorySlot ui
- PickupBag ui
- PutItemInContainer ui
- Script::PickupContainerItem ui
- Script::SplitContainerItem ui
- Script::UseContainerItem ui
- CGPlayer_C::OpenItem objectlayer
- BeginWrapItem objectlayer
Callees 2
- ClntObjMgrObjectPtr objectlayer
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.