diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 21:36:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 21:36:42 +0300 |
commit | ef52dc33fb6c9f055bc947998951520fc3deaf18 (patch) | |
tree | eb8d374460c3acb27972e6184e84abe554925e55 | |
parent | 3be81954bafe8cf4b883da939d4185c8aa6f799e (diff) | |
download | plus-ef52dc33fb6c9f055bc947998951520fc3deaf18.tar.gz plus-ef52dc33fb6c9f055bc947998951520fc3deaf18.tar.bz2 plus-ef52dc33fb6c9f055bc947998951520fc3deaf18.tar.xz plus-ef52dc33fb6c9f055bc947998951520fc3deaf18.zip |
Add packet CMSG_MAIL2_REFRESH_MAIL_LIST 0x09ef.
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 13 | ||||
-rw-r--r-- | src/net/eathena/mail2handler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 2 | ||||
-rw-r--r-- | src/net/mail2handler.h | 3 | ||||
-rw-r--r-- | src/net/tmwa/mail2handler.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/mail2handler.h | 3 |
6 files changed, 29 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index 97f4f0bb2..54ad503e7 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -191,4 +191,17 @@ void Mail2Handler::requestItems(const int openType, outMsg.writeInt8(openType, "open type"); } +void Mail2Handler::refreshMailList(const int openType, + const int64_t mailId) const +{ + if (packetVersion < 20131218 || + serverVersion < 19) + { + return; + } + createOutPacket(CMSG_MAIL2_REFRESH_MAIL_LIST); + outMsg.writeInt8(openType, "open type"); + outMsg.writeInt64(mailId, "mail id"); +} + } // namespace EAthena diff --git a/src/net/eathena/mail2handler.h b/src/net/eathena/mail2handler.h index 14ff5441d..2e41bea55 100644 --- a/src/net/eathena/mail2handler.h +++ b/src/net/eathena/mail2handler.h @@ -62,6 +62,9 @@ class Mail2Handler final : public Net::Mail2Handler void requestItems(const int openType, const int64_t mailId) const override final; + + void refreshMailList(const int openType, + const int64_t mailId) const override final; }; } // namespace EAthena diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 580e8bb19..ed9574a09 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -327,6 +327,7 @@ packet(CMSG_MAIL2_READ_MAIL, 0x0000, 0, nullptr); packet(CMSG_MAIL2_DELETE_MAIL, 0x0000, 0, nullptr); packet(CMSG_MAIL2_REQUEST_MONEY, 0x0000, 0, nullptr); packet(CMSG_MAIL2_REQUEST_ITEMS, 0x0000, 0, nullptr); +packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -1173,6 +1174,7 @@ if (packetVersion >= 20131218) { packet(CMSG_MAIL2_NEXT_PAGE, 0x09ee, 11, clif->pRodexNextMaillist); packet(CMSG_MAIL2_DELETE_MAIL, 0x09f5, 11, clif->pRodexDeleteMail); + packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x09ef, 11, clif->pRodexRefreshMaillist); } // 20131223 diff --git a/src/net/mail2handler.h b/src/net/mail2handler.h index c42905857..49088ddec 100644 --- a/src/net/mail2handler.h +++ b/src/net/mail2handler.h @@ -68,6 +68,9 @@ class Mail2Handler notfinal virtual void requestItems(const int openType, const int64_t mailId) const = 0; + + virtual void refreshMailList(const int openType, + const int64_t mailId) const = 0; }; } // namespace Net diff --git a/src/net/tmwa/mail2handler.cpp b/src/net/tmwa/mail2handler.cpp index bc01d874b..66aa67824 100644 --- a/src/net/tmwa/mail2handler.cpp +++ b/src/net/tmwa/mail2handler.cpp @@ -81,4 +81,9 @@ void Mail2Handler::requestItems(const int openType A_UNUSED, { } +void Mail2Handler::refreshMailList(const int openType A_UNUSED, + const int64_t mailId A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/mail2handler.h b/src/net/tmwa/mail2handler.h index d46f73291..c80bffc27 100644 --- a/src/net/tmwa/mail2handler.h +++ b/src/net/tmwa/mail2handler.h @@ -62,6 +62,9 @@ class Mail2Handler final : public Net::Mail2Handler void requestItems(const int openType, const int64_t mailId) const override final; + + void refreshMailList(const int openType, + const int64_t mailId) const override final; }; } // namespace TmwAthena |