benilla-re systems structs docs

Script::TakeInboxItem

function · ui · primitive

Address
0x4af8e0 · 383 bytes, up to 0x4afa5e
Signature
int __fastcall (lua_State *L)
Meaning
Sends the take-item request after the COD coinage check
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mail#taking-returning-and-deleting

Finding: Taking, returning and deleting in ui: the mailbox and the inbox

Five functions send one request each and return nothing. They share three guards: no request is pending (0xb6efc8), a mailbox is open and the index names a stored mail; the pending flag is then set until the result arrives. Then TakeInboxMoney needs money in the mail; TakeInboxItem needs an item and, for COD, coinage of at least the COD amount (else ERR_NOT_ENOUGH_MONEY); TakeInboxTextItem needs a text id or template and flag 4 clear; ReturnInboxItem needs a type 0 mail with an item or money and neither flag 2 nor 8; DeleteInboxItem needs a returned or COD flag, a type other than 0, or no item and no money. InboxItemCanDelete(index) applies the same rule.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 10

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