benilla-re systems structs docs

Script::GetSendMailMoney

function · ui · orchestration

Address
0x4ae150 · 44 bytes, up to 0x4ae17b
Signature
int __fastcall (lua_State *L)
Meaning
Returns the draft money
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 1

Calls and jumps by a bare address, from tables/calls.tsv.