diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 20:18:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 20:18:44 +0300 |
commit | abb284e237e02cd78a975a703e349b799f7f446d (patch) | |
tree | 8a09ed733adda1f77c26302fe207948875f28202 /src/net/eathena/mail2handler.cpp | |
parent | 0389a3eda12eb7f9ca3dcb8ad6b6817c41532071 (diff) | |
download | plus-abb284e237e02cd78a975a703e349b799f7f446d.tar.gz plus-abb284e237e02cd78a975a703e349b799f7f446d.tar.bz2 plus-abb284e237e02cd78a975a703e349b799f7f446d.tar.xz plus-abb284e237e02cd78a975a703e349b799f7f446d.zip |
Add packet CMSG_MAIL2_READ_MAIL 0x09ea.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index fc63d5912..09e8df11c 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -139,4 +139,17 @@ void Mail2Handler::nextPage(const int openType, outMsg.writeInt64(mailId, "mail id"); } +void Mail2Handler::readMail(const int openType, + const int64_t mailId) const +{ + if (packetVersion < 20131223 || + serverVersion < 19) + { + return; + } + createOutPacket(CMSG_MAIL2_READ_MAIL); + outMsg.writeInt8(openType, "open type"); + outMsg.writeInt64(mailId, "mail id"); +} + } // namespace EAthena |