TradeAddMoney
function · objectlayer · primitive
- Address
0x5d4500· 236 bytes, up to0x5d45eb- Signature
bool __fastcall (uint32_t copper)- Meaning
- Adds copper to the own money offer and sends it when the player's money covers the total
- Confidence
- verified, proof one
- Finding
- objectlayer/trade#offering-money
Finding: Offering money in objectlayer: trade
Three senders put the own money offer, each as 0x11f with the new total as a u32, then add 1
to 0xc4bea8 and store the total in 0xc4be70. 0x5d4500 adds its argument to the offer;
0x5d4680 sets the offer to its argument; both first require an active player whose money
(player field 1176) is at least the new total, and return 1 when sent, 0 when not. 0x5d4500
with 0 sends nothing and returns 1. 0x5d45f0 subtracts its argument and sends nothing when
the argument is 0 or above the offer; it checks no money and returns nothing.
The derivation is in the doc.
Callers 4
- CGTradeInfo::SetTradePartner ui
- Script::ClickTradeButton ui
- Script::ClickTargetTradeButton ui
- Script::AddTradeMoney ui
Callees 5
- CDataStore::PutUInt32 base
- CDataStore::PutUInt32_3 base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- ClientServices::Send net
Calls and jumps by a bare address, from tables/calls.tsv.