Script::AddTradeMoney
function · ui · orchestration
- Address
0x4c07f0· 34 bytes, up to0x4c0811- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Lua function AddTradeMoney
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/cursormoney#trade-money-from-the-cursor
Finding: Trade money from the cursor in ui: the money cursor
AddTradeMoney() takes no argument. With money on the cursor it tries to add that amount to the trade offer
(objectlayer/trade); when the offer sender accepts, it clears the cursor with ClearCursor(1, 0), so no
PLAYER_MONEY fires. When the sender refuses, the money stays. PickupTradeMoney(amount) raises a usage error for
a non-number. It does nothing unless the truncated amount is above 0 and at most the offer, compared signed.
Then it lowers the offer by the amount and puts the amount on the cursor, which signals PLAYER_MONEY; the
setter refuses without control, after the offer is lowered.
SetTradeMoney(amount) raises a usage error for a non-number and sends the truncated amount as the new offer.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- ClearCursor ui
- TradeAddMoney objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.