TradeInfoSetTargetItems
function · ui · primitive
- Address
0x4bf2b0· 556 bytes, up to0x4bf4db- Signature
void __thiscall (void *this)- Meaning
- Clears both accept flags, caches the partner slot records, header words and money and signals each change
- Confidence
- verified, proof one
- Finding
- ui/trade#the-partners-offer
Finding: The partner's offer in ui: trade requests and status messages
After each partner-side extended status, 0x4bf2b0(records) takes the partner's seven 64-byte records. It clears the
player's accept flag, then the partner's. For each slot it compares the record's dwords at +0x00, +0x08 to +0x18
and +0x20 to +0x3c with the partner's cache, and on any difference copies them all and signals
TRADE_TARGET_ITEM_CHANGED (323) with slot + 1; the dwords at +0x04 and +0x1c are neither compared nor kept. Then four
cached words, each stored before its signal: the own side's header word signals 323 with 7 and the partner's 324 with 7,
the own money PLAYER_TRADE_MONEY (326) then PLAYER_MONEY (200), and the partner's money TRADE_MONEY_CHANGED (325).
The derivation is in the doc.
Callers 1
- TradeExtendedStatusHandler objectlayer
Callees 7
- CGTradeInfo::PlayerAccept ui
- CGTradeInfo::TargetAccept ui
- TradeGetSideHeaderValue objectlayer
- TradeGetPlayerMoney objectlayer
- TradeGetTargetMoney objectlayer
- FrameScript_SignalEvent ui
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.