benilla-re systems structs docs

Script::GetInboxText

function · ui · primitive

Address
0x4af110 · 555 bytes, up to 0x4af33a
Signature
int __fastcall (lua_State *L)
Meaning
Marks the mail read and returns its body, stationery texture, take-text and invoice flags
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mail#reading-a-mails-text

Finding: Reading a mail's text in ui: the mailbox and the inbox

GetInboxText(index) returns four values: the body, the stationery texture, whether the text can become an item, and whether the mail is an invoice. It first marks the mail read. The body comes from the item-text cache by the item text id: nil until it arrives, and nil for an auction mail. A mail with a template id and no text id takes the localized template body. Both are expanded for $ tokens against the player. The text-item flag is 1 when a text or template exists, flag 4 is clear and the stationery is not 61. A bad index returns four nils.

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.