benilla-re systems structs docs

MailMoneyTaken

function · ui · primitive

Address
0x4ad6b0 · 255 bytes, up to 0x4ad7ae
Signature
void __fastcall (uint32_t mailId)
Meaning
Zeroes a mail's money and deletes the mail when it is COD or an auction mail with no item
Confidence
verified, proof one
Finding
ui/mail#mail-changes-after-a-result

Finding: Mail changes after a result in ui: the mailbox and the inbox

A taken-money result zeroes the money. A taken-item result zeroes the item entry. Each then deletes the mail on its own (opcode 0x249, then CLOSE_INBOX_ITEM with the index) when nothing more can be taken: money taken deletes a COD mail, or an auction mail with no item; item taken deletes an auction mail, or a mail with no text and no template, that has no money left. MAIL_INBOX_UPDATE follows either way. A removed mail shifts the later records down and lowers the count; the made-permanent result only sets flag 4.

The derivation is in the doc.

Callers 1

Callees 5

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