benilla-re systems structs docs

Script::GetInboxNumItems

function · ui · orchestration

Address
0x4aeb90 · 44 bytes, up to 0x4aebbb
Signature
int __fastcall (lua_State *L)
Meaning
Returns the stored mail count
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 1

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