summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 02:54:16 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 03:00:41 +0300
commit6597e683da916a47705a23e67087b19a89bb0778 (patch)
tree5675167dbceeedf5e18e27d6c0770f5292ee035d /src
parent255660c6bd40f40188b5b9a4d89cb879d10924a5 (diff)
downloadmv-6597e683da916a47705a23e67087b19a89bb0778.tar.gz
mv-6597e683da916a47705a23e67087b19a89bb0778.tar.bz2
mv-6597e683da916a47705a23e67087b19a89bb0778.tar.xz
mv-6597e683da916a47705a23e67087b19a89bb0778.zip
Add packet SMSG_RODEX_MAIL_LIST_PAGE 0x09f0.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/mail2recv.cpp19
-rw-r--r--src/net/eathena/mail2recv.h1
-rw-r--r--src/net/eathena/packetsin.inc9
3 files changed, 29 insertions, 0 deletions
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)
{