benilla-re systems structs docs

Script::GetInboxItem

function · ui · primitive

Address
0x4af5d0 · 507 bytes, up to 0x4af7ca
Signature
int __fastcall (lua_State *L)
Meaning
Returns a mail's item name, icon path, count, quality and use flag, or nil, nil, 0, 0, nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mail#reading-a-mails-item

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

GetInboxItem(index) returns five values: the item name with its random-property suffix, the icon path, the count, the quality and whether the player can use it. A mail with no item, an uncached item or a bad index returns nil, nil, 0, 0, nil. Quality is the template +0x1c when its +0x2c is nonzero, else -1. The use flag is 1 with no player object and nil when 0x5ea930 rejects the template. A non-number raises Usage: GetInboxItem(index).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 15

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