benilla-re systems structs docs

HandleMailListResultPacket

function · ui · primitive

Address
0x4ad1b0 · 1081 bytes, up to 0x4ad5e8
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Reads the mail list into the record array, answers ignored senders, fixes defaults, signals MAIL_INBOX_UPDATE
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mail#the-list-packet

Finding: The list packet in ui: the mailbox and the inbox

SMSG_MAIL_LIST_RESULT (0x23b, 0x4ad1b0) carries a u8 mail count and that many mails. The array of mail records grows to the count (never shrinks) and each record is 0x260 bytes. The reader is the stream reader of 0x418cb0 to 0x4191b0; the table gives the wire order with the record offset each field lands in.

offsetwire field
+0x00mail id u32
+0x04type u8: 0 player, 2 auction, 3 creature, 4 game object
+0x08 or +0x10type 0: sender GUID u64 at +8 and 0 at +0x10; types 1 to 4: sender id u32 at +0x10 and 0 at +8; above 4: none
+0x14subject, a string copied with no bound into the 0x100 bytes to +0x113
+0x114, +0x118, +0x11citem text id, package id, stationery id (u32 each)
+0x120, +0x124, +0x128, +0x12citem entry, enchantment id, random property id, suffix factor
+0x130item count u8
+0x134, +0x138, +0x13ccharges, then two more u32, unread
+0x140, +0x144money, COD amount
+0x148flags: 1 read, 2 returned, 4 text turned into an item, 8 COD
+0x14cdays left, f32
+0x25cmail template id u32

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 16

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