benilla-re systems structs docs

Script::SendMail

function · ui · primitive

Address
0x4ae800 · 683 bytes, up to 0x4aeaaa
Signature
int __fastcall (lua_State *L)
Meaning
Checks the draft and sends CMSG_SEND_MAIL, returning nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mailsend#sending

Finding: Sending in ui: composing and sending mail

SendMail(target, subject, body) sends opcode 0x238 and returns nothing. A target that is not a string raises Usage: SendMail(target, subject, body); a subject or body that is not a string counts as empty. Every other refusal is silent: a request pending or in flight, no mailbox, an empty target or subject, no stationery selected, money and COD both set, or COD set with no item. An attachment that is gone or not the player's shows ERR_ITEM_NOT_FOUND, clears and fires MAIL_SEND_INFO_UPDATE. The packet is the mailbox GUID (u64), target, subject, body, stationery id (u32), package id (u32, 0 without an item), item GUID (u64), money (u32), COD (u32), a zero u64 and a zero u8. Both flags are then set.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 13

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