CGItem_C::OnCreate
function · objectlayer · orchestration
- Address
0x5d8400· 37 bytes, up to0x5d8424- Meaning
- Runs an item's creation and asks for its record
- Confidence
- verified, proof one
- Finding
- objectlayer/items#the-item-record
Finding: The item record in objectlayer: items
An item reads its record from the item record cache by its entry. A request that misses counts
one more pending display on the owner, the player whose GUID is ITEM_FIELD_OWNER; the arrival
callback counts it back. Arrival sets bit 1, recaches the five bytes and the sound row: the
ItemGroupSounds row whose id is the ItemDisplayInfo row's +0x2c. Then, while the byte at
0xb4b424 is set and the item is the active player's: a record whose +0x60 exceeds 1 clears the
lock on the entry's items and signals ITEM_LOCK_CHANGED (only with the player's object), else
this item's lock is cleared through the interface; 0x5ebde0 takes the item on the player's
object, when it exists; the interface refreshes.
The derivation is in the doc.
Callers 1
- ObjectCreateNotify objectlayer
Callees 2
- CGItem_C::RequestRecord objectlayer
- CGObject_C::Show objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.