benilla-re systems structs docs

s_itemTextCache

global · ui

Address
0xc0e0c0 · 4 bytes, up to 0xc0e0c3
Type
uint32_t
Meaning
Holds the item text record cache
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.