benilla-re systems structs docs

Script::GetSendMailPrice

function · ui · primitive

Address
0x4ae730 · 202 bytes, up to 0x4ae7f9
Signature
int __fastcall (lua_State *L)
Meaning
Returns the draft money plus 30 copper, the stationery price and the package cost
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mailsend#postage-and-the-attachments-details

Finding: Postage and the attachment's details in ui: composing and sending mail

GetSendMailPrice() returns the money plus the postage: 30 copper, plus the buy price of the selected stationery's item when the player does not carry one and the item is cached, plus the cost of the selected package. GetSendMailItem() returns the attachment's name, icon path, count and quality; with no attachment, a missing object or an uncached item it returns nil, nil, 0, 0. Quality is the template +0x1c when its +0x2c is nonzero, else -1, and the count is the item's stack count field. An item that arrives late raises MAIL_SEND_INFO_UPDATE.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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