benilla-re systems structs docs

s_mailTemplateStore

global · ui

Address
0xc0dab4 · 20 bytes, up to 0xc0dac7
Type
uint32_t[5]
Meaning
Holds the MailTemplate.dbc store: records of 40 bytes, count, id map, id bound and loaded flag
Confidence
verified, proof one
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.