benilla-re systems structs docs

Script::GetInboxHeaderInfo

function · ui · primitive

Address
0x4aebc0 · 1189 bytes, up to 0x4af064
Signature
int __fastcall (lua_State *L)
Meaning
Returns the 13 header values of one stored mail
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mail#reading-the-header

Finding: Reading the header in ui: the mailbox and the inbox

GetInboxNumItems() returns the record count. GetInboxHeaderInfo(index) returns 13 values: package icon, stationery icon, sender, subject, money, COD, days left, has item, read, returned, text created, can reply, GM. The first icon is the package's when its id resolves, else the item's when cached, else nil; the second is the stationery item's when cached. The sender is the name by type: player, auction house, creature or game object, nil for type 1. On a type 0 mail, stationery 61 makes the sender GM_EMAIL_NAME, can-reply nil and GM 1. A COD mail's subject is the COD_PAYMENT text formatted with it. A bad index returns four nils, three zeros and six nils.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 17

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