ReadBuyFailed
function · objectlayer · primitive
- Address
0x5dcd60· 310 bytes, up to0x5dce95- Meaning
- Reads a refused purchase, zeroes a sold-out item's stock and shows the error for its code
- 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 5
- CDataStore::GetUInt8 base
- CDataStore::GetUInt32 base
- CDataStore::GetGuid base
- CGGameUI::DisplayError ui
- UpdateMerchantRowStock ui
Calls and jumps by a bare address, from tables/calls.tsv.