CGItem_C::Deactivate
function · objectlayer · primitive
- Address
0x5d8660· 367 bytes, up to0x5d87ce- Meaning
- Deactivates an item: drops cursor, cast, interface and text references and the record request
- Confidence
- verified, proof one
- Finding
- objectlayer/items#item-slots
Finding: Item slots in objectlayer: items
Deactivation lets go of what still names the item: a match with the GUID at 0xb71b48 calls
0x48f200, a pending cast from it is cancelled, a match with 0x494c60's GUID calls 0x495190 and
one with the item text's GUID clears that text. Without the record it cancels the request and
lowers the owner's count at +0x1d20. After the object's own deactivation, an item the active
player owns passes its entry and GUID to six interface calls. Slot 11 writes −1 and returns 1.
Slot 24 sends opcode 0x107 with the item's GUID while the active player is alive. The item text
handler sets ITEM_FIELD_FLAGS bit 0x2.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 16
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- EndLootWindow ui
- GetCursorItemGuid ui
- ClearCursor ui
- TradeInfoRemovePlayerItem ui
- NotifyItemSlotChanged ui
- SignalQuestLogForItem ui
- SetItemTextObject ui
- RecountItemActionSlots ui
- BuildCraftList ui
- BuildTradeSkillList ui
- DBCache::CancelCallback dbcache
- CGObject_C::Deactivate objectlayer
- GetPendingCastBlock spell
- CancelCast spell
Calls and jumps by a bare address, from tables/calls.tsv.