From b69cc890606be77416d1e1031c0041754fa51c52 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Aug 2017 03:28:34 +0300 Subject: Add packet SMSG_RODEX_READ_MAIL 0x09eb. --- src/net/eathena/mail2recv.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/net/eathena/mail2recv.cpp') diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp index 1cc66e0de..3f2049d18 100644 --- a/src/net/eathena/mail2recv.cpp +++ b/src/net/eathena/mail2recv.cpp @@ -115,4 +115,35 @@ void Mail2Recv::processMailListPage(Net::MessageIn &msg) } } +void Mail2Recv::processReadMail(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readInt16("len"); + msg.readUInt8("open type"); + msg.readInt64("mail id"); + const int textLen = msg.readInt16("text len"); + msg.readInt64("money"); + const int itemsCount = msg.readUInt8("item count"); + msg.readString(textLen, "text message"); + for (int f = 0; f < itemsCount; f ++) + { + msg.readInt16("amount"); + msg.readInt16("item id"); + msg.readUInt8("identify"); + msg.readUInt8("damaged"); + msg.readUInt8("refine"); + for (int d = 0; d < maxCards; d ++) + msg.readUInt16("card"); + msg.readInt32("unknown"); + msg.readUInt8("type"); + msg.readInt32("unknown"); + for (int d = 0; d < 5; d ++) + { + msg.readInt16("option index"); + msg.readInt16("option value"); + msg.readUInt8("option param"); + } + } +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2