ReadSellItemResult
function · objectlayer · primitive
- Address
0x5dd1f0· 139 bytes, up to0x5dd27a- Meaning
- Reads a sale's result and shows the error for a nonzero code, passing the item to 0x495420
- Confidence
- verified, proof one
- Finding
- objectlayer/inventory#vendors
Finding: Vendors in objectlayer: inventory
0x5e5910 dispatches 0x19f, 0x1a1, 0x1a4 and 0x1a5 for the active player. 0x19f reads the vendor
and a u8 count of 28-byte items into the 128-entry table at 0xc4c4a0. A count above 128 writes
on past it through the globals that follow, to 255 entries, the initial-spell list header and
the vendor GUID among them. A count of 0 reads a reason and prints one of five console lines;
with reason 0 it also opens an empty window. 0x1a4 stores an item's new stock and
reports quest progress; 0x1a5 zeroes a sold-out item's stock and shows the purchase error; 0x1a1
shows the sale error and passes the item to 0x495420.
The derivation is in the doc.
Callers 1
- HandleVendorMessage objectlayer
Callees 4
- CDataStore::GetUInt8 base
- CDataStore::GetGuid base
- UnlockItem ui
- CGGameUI::DisplayError ui
Calls and jumps by a bare address, from tables/calls.tsv.