diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 21:46:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 21:46:20 +0300 |
commit | 0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25 (patch) | |
tree | 336cd13a247ebc4dc587ecd3d9cdd84eeb052ac6 /src/net/eathena/mail2handler.cpp | |
parent | ef52dc33fb6c9f055bc947998951520fc3deaf18 (diff) | |
download | manaplus-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.tar.gz manaplus-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.tar.bz2 manaplus-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.tar.xz manaplus-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.zip |
Add packet CMSG_MAIL2_OPEN_MAILBOX 0x09e8.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index 54ad503e7..b4b6de984 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -204,4 +204,16 @@ void Mail2Handler::refreshMailList(const int openType, outMsg.writeInt64(mailId, "mail id"); } +void Mail2Handler::openMailBox(const int openType) const +{ + if (packetVersion < 20140212 || + serverVersion < 19) + { + return; + } + createOutPacket(CMSG_MAIL2_OPEN_MAILBOX); + outMsg.writeInt8(openType, "open type"); + outMsg.writeInt64(0, "mail id"); +} + } // namespace EAthena |