TradeExtendedStatusHandler
function · objectlayer · orchestration
- Address
0x5d4990· 490 bytes, up to0x5d4b79- Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)- Meaning
- Handles SMSG_TRADE_STATUS_EXTENDED: stores one side's money, header and slot records
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- objectlayer/trade#trade-extended-status-message
Finding: Trade extended status message in objectlayer: trade
The handler 0x5d4990 reads a u8 side (0 own, 1 partner) and a u32 sequence. An own-side
message whose sequence is below 0xc4bea8 is dropped. Otherwise it reads u32 into
0xc4be78[side], u32 money into 0xc4be70[side], i32 into 0xc4bed8[side], then slot
records to the end. Each record, a u8 slot and 60 bytes, is stored as
a 64-byte record at 0xc4bab8 + (side * 7 + slot) * 64. Slots 0 to 6 the message omitted are
zeroed. On the own side, a slot whose stored item word was nonzero calls 0x4bfbd0(slot) when
it arrives with item 0 or is omitted. Last it calls 0x4bf2b0 with the partner's records. It
returns 1; side and slot are not bounded.
| order | type | record offset |
|---|---|---|
| 1 to 3 | u32 each (item, display, count by the server's layout) | +0x00, +0x04, +0x08 |
| 4 | i32 | +0x18 |
| 5 | u64 | +0x20 |
| 6 | u32 | +0x0c |
| 7 | u64 | +0x10 |
| 8 to 13 | i32, i32, u32, i32, u32, u32 | +0x28 to +0x3c |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- CDataStore::GetUInt8 base
- CDataStore::GetInt32 base
- CDataStore::GetUInt32 base
- CDataStore::GetGuid base
- TradeInfoSetTargetItems ui
- TradeInfoClearPlayerItem ui
Calls and jumps by a bare address, from tables/calls.tsv.