Script::SetSendMailMoney
function · ui · orchestration
- Address
0x4ae0f0· 96 bytes, up to0x4ae14f- Signature
int __fastcall (lua_State *L)- Meaning
- Sets the draft money and returns 1, or nil when the player cannot cover it
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/mailsend#money-and-cod
Finding: Money and COD in ui: composing and sending mail
SetSendMailMoney(amount) stores the amount when the active player's coinage covers it, signals
SEND_MAIL_MONEY_CHANGED and returns 1; otherwise it shows ERR_NOT_ENOUGH_MONEY and returns nil. A negative amount
fails the unsigned test. SetSendMailCOD(amount) stores the amount only while an item is attached, signals
SEND_MAIL_COD_CHANGED and returns nothing. It tests no coinage and does not clear the money. GetSendMailMoney() and
GetSendMailCOD() return the cells. A non-number raises Usage: SetSendMailMoney(amount) or Usage: SetSendMailCOD(amount).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- __ftol crt
- SetSendMailMoneyChecked ui
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.