summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 21:46:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 21:46:20 +0300
commit0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25 (patch)
tree336cd13a247ebc4dc587ecd3d9cdd84eeb052ac6 /src/net/eathena/mail2handler.cpp
parentef52dc33fb6c9f055bc947998951520fc3deaf18 (diff)
downloadmv-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.tar.gz
mv-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.tar.bz2
mv-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.tar.xz
mv-0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25.zip
Add packet CMSG_MAIL2_OPEN_MAILBOX 0x09e8.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r--src/net/eathena/mail2handler.cpp12
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