diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 22:22:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 22:22:08 +0300 |
commit | 499d2fd952251bc1cb2156cecd965d0c07c9a98f (patch) | |
tree | 5dda1e4cc50e06aa144d06c6b5fd56d968dfe483 /src/net/eathena | |
parent | 1305ef0f6465f7053019a4b89176e6837f5ada7f (diff) | |
download | mv-499d2fd952251bc1cb2156cecd965d0c07c9a98f.tar.gz mv-499d2fd952251bc1cb2156cecd965d0c07c9a98f.tar.bz2 mv-499d2fd952251bc1cb2156cecd965d0c07c9a98f.tar.xz mv-499d2fd952251bc1cb2156cecd965d0c07c9a98f.zip |
Add packet CMSG_MAIL2_CANCEL_WRITE_MAIL 0x0a03.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/mail2handler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index 4797eaf82..8d1df482b 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -226,4 +226,14 @@ void Mail2Handler::closeMailBox() const createOutPacket(CMSG_MAIL2_CLOSE_MAILBOX); } +void Mail2Handler::cancelWriteMail() const +{ + if (packetVersion < 20140326 || + serverVersion < 19) + { + return; + } + createOutPacket(CMSG_MAIL2_CANCEL_WRITE_MAIL); +} + } // namespace EAthena diff --git a/src/net/eathena/mail2handler.h b/src/net/eathena/mail2handler.h index acd32dfd6..7525851d8 100644 --- a/src/net/eathena/mail2handler.h +++ b/src/net/eathena/mail2handler.h @@ -69,6 +69,8 @@ class Mail2Handler final : public Net::Mail2Handler void openMailBox(const int openType) const override final; void closeMailBox() const override final; + + void cancelWriteMail() const override final; }; } // namespace EAthena diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 136d3f20d..2d5131196 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -330,6 +330,7 @@ packet(CMSG_MAIL2_REQUEST_ITEMS, 0x0000, 0, nullptr); packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x0000, 0, nullptr); packet(CMSG_MAIL2_OPEN_MAILBOX, 0x0000, 0, nullptr); packet(CMSG_MAIL2_CLOSE_MAILBOX, 0x0000, 0, nullptr); +packet(CMSG_MAIL2_CANCEL_WRITE_MAIL, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -1353,6 +1354,7 @@ if (packetVersion == 20140326) { packet(CMSG_MAIL2_REQUEST_MONEY, 0x09f1, 11, clif->pRodexRequestZeny); packet(CMSG_MAIL2_REQUEST_ITEMS, 0x09f3, 11, clif->pRodexRequestItems); + packet(CMSG_MAIL2_CANCEL_WRITE_MAIL, 0x0a03, 2, clif->pRodexCancelWriteMail); } // 20140402 |