diff options
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 30 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 7 |
2 files changed, 33 insertions, 4 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index 2b4de04ab..13a7676d9 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -230,8 +230,19 @@ void Mail2Handler::refreshMailList(const MailOpenTypeT openType, return; } createOutPacket(CMSG_MAIL2_REFRESH_MAIL_LIST); - outMsg.writeInt8(toInt(openType, int8_t), "open type"); - outMsg.writeInt64(mailId, "mail id"); + if (packetVersion >= 20170419) + { + outMsg.writeInt64(mailId, "mail id"); + outMsg.writeInt32(0, "unknown 1"); + outMsg.writeInt32(0, "unknown 2"); + outMsg.writeInt32(0, "unknown 3"); + outMsg.writeInt32(0, "unknown 4"); + } + else + { + outMsg.writeInt8(toInt(openType, int8_t), "open type"); + outMsg.writeInt64(mailId, "mail id"); + } } void Mail2Handler::openMailBox(const MailOpenTypeT openType) const @@ -242,8 +253,19 @@ void Mail2Handler::openMailBox(const MailOpenTypeT openType) const return; } createOutPacket(CMSG_MAIL2_OPEN_MAILBOX); - outMsg.writeInt8(toInt(openType, int8_t), "open type"); - outMsg.writeInt64(0, "mail id"); + if (packetVersion >= 20170419) + { + outMsg.writeInt64(0, "mail id"); + outMsg.writeInt32(0, "unknown 1"); + outMsg.writeInt32(0, "unknown 2"); + outMsg.writeInt32(0, "unknown 3"); + outMsg.writeInt32(0, "unknown 4"); + } + else + { + outMsg.writeInt8(toInt(openType, int8_t), "open type"); + outMsg.writeInt64(0, "mail id"); + } } void Mail2Handler::closeMailBox() const diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index d4db4f199..3a5aa429e 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -7361,6 +7361,13 @@ if (packetVersion == 20170419) packet(CMSG_BUYINGSTORE_OPEN, 0x0965, 6, clif->pReqClickBuyingStore); } +// 20170419 +if (packetVersion >= 20170419) +{ + packet(CMSG_MAIL2_OPEN_MAILBOX, 0x0ac0, 26, clif->pRodexOpenMailbox); + packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x0ac1, 26, clif->pRodexRefreshMaillist); +} + // 20170426 if (packetVersion == 20170426) { |