From 0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Aug 2017 21:46:20 +0300 Subject: Add packet CMSG_MAIL2_OPEN_MAILBOX 0x09e8. --- src/net/eathena/mail2handler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/mail2handler.cpp') 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 -- cgit v1.2.3-70-g09d2