Script::GetSendMailItem
function · ui · primitive
- Address
0x4ae590· 371 bytes, up to0x4ae702- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the attachment's name, icon path, count and quality, or nil, nil, 0, 0
- 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 9
- ClntObjMgrObjectPtr objectlayer
- ClientDBStringLookup unassigned
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- GetInventoryIconByDisplayId objectlayer
- CGItem_C::GetFullName objectlayer
- SStrPrintf storm
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.