Script::SetTradeMoney
function · ui · orchestration
- Address
0x4c0820· 63 bytes, up to0x4c085e- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Lua function SetTradeMoney
- 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 5
- __ftol crt
- TradeSetMoney objectlayer
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.