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 +++++++++++++++++++ src/net/eathena/mail2recv.h | 1 + src/net/eathena/packetsin.inc | 9 +++++++++ 3 files changed, 29 insertions(+) (limited to 'src/net/eathena') 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 diff --git a/src/net/eathena/mail2recv.h b/src/net/eathena/mail2recv.h index 351804186..73b141e6b 100644 --- a/src/net/eathena/mail2recv.h +++ b/src/net/eathena/mail2recv.h @@ -36,6 +36,7 @@ namespace EAthena void processRemoveItemResult(Net::MessageIn &msg); void processCheckNameResult(Net::MessageIn &msg); void processSendResult(Net::MessageIn &msg); + void processMailListPage(Net::MessageIn &msg); } // namespace MailRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 210981c72..669d574a4 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -775,6 +775,9 @@ if (packetVersion >= 20130731) packet(SMSG_SKILL_ENTRY, 0x09ca, -1, &BeingRecv::processSkillEntry, 20130731); } +// 20131218 +packet(SMSG_RODEX_MAIL_LIST_PAGE, 0x09f0, -1, &Mail2Recv::processMailListPage, 20131218); + // 20131223 if (packetVersion >= 20131223) { @@ -935,6 +938,12 @@ if (packetVersion >= 20160316) packet(SMSG_RODEX_CHECK_NAME_RESULT, 0x0a51, 34, &Mail2Recv::processCheckNameResult, 20160316); } +// 20160601 +if (packetVersion >= 20160601) +{ + packet(SMSG_RODEX_MAIL_LIST_PAGE, 0x0a7d, -1, &Mail2Recv::processMailListPage, 20160601); +} + // 20170329 if (packetVersion >= 20170329) { -- cgit v1.2.3-70-g09d2