From 6597e683da916a47705a23e67087b19a89bb0778 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Aug 2017 02:54:16 +0300 Subject: Add packet SMSG_RODEX_MAIL_LIST_PAGE 0x09f0. --- src/net/eathena/mail2recv.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/net/eathena/mail2recv.cpp') diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp index 8c3c7cdbb..1cc66e0de 100644 --- a/src/net/eathena/mail2recv.cpp +++ b/src/net/eathena/mail2recv.cpp @@ -96,4 +96,23 @@ void Mail2Recv::processSendResult(Net::MessageIn &msg) msg.readUInt8("result"); } +void Mail2Recv::processMailListPage(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readInt16("len"); + msg.readUInt8("open type"); + const int cnt = msg.readUInt8("cnt"); + msg.readUInt8("isEnd"); + for (int f = 0; f < cnt; f ++) + { + msg.readInt64("mail id"); + msg.readUInt8("is read"); + msg.readUInt8("type"); + msg.readString(24, "sender name"); + msg.readInt32("reg time"); + msg.readInt32("expire time"); + msg.readString(-1, "title"); + } +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2