From 3be81954bafe8cf4b883da939d4185c8aa6f799e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Aug 2017 21:17:14 +0300 Subject: Add packet CMSG_MAIL2_REQUEST_ITEMS 0x09f3. --- src/net/eathena/mail2handler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/mail2handler.cpp') diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index 623283617..97f4f0bb2 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -178,4 +178,17 @@ void Mail2Handler::requestMoney(const int openType, outMsg.writeInt8(openType, "open type"); } +void Mail2Handler::requestItems(const int openType, + const int64_t mailId) const +{ + if (packetVersion < 20140326 || + serverVersion < 19) + { + return; + } + createOutPacket(CMSG_MAIL2_REQUEST_ITEMS); + outMsg.writeInt64(mailId, "mail id"); + outMsg.writeInt8(openType, "open type"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2