summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 21:17:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 21:17:14 +0300
commit3be81954bafe8cf4b883da939d4185c8aa6f799e (patch)
tree68a5928a5110a1be40e0be7ecaab687edf9e30e2 /src/net/eathena/mail2handler.cpp
parent307ef5331a3f18a28820f773b0dfce8db479bf7a (diff)
downloadmv-3be81954bafe8cf4b883da939d4185c8aa6f799e.tar.gz
mv-3be81954bafe8cf4b883da939d4185c8aa6f799e.tar.bz2
mv-3be81954bafe8cf4b883da939d4185c8aa6f799e.tar.xz
mv-3be81954bafe8cf4b883da939d4185c8aa6f799e.zip
Add packet CMSG_MAIL2_REQUEST_ITEMS 0x09f3.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r--src/net/eathena/mail2handler.cpp13
1 files changed, 13 insertions, 0 deletions
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