diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 20:45:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 20:45:11 +0300 |
commit | 307ef5331a3f18a28820f773b0dfce8db479bf7a (patch) | |
tree | b84460898570b2f411a609f2d2bad5b8043672f3 /src/net/eathena/mail2handler.cpp | |
parent | 66d940df678f16b5f53f58f80837826e24031eb1 (diff) | |
download | manaplus-307ef5331a3f18a28820f773b0dfce8db479bf7a.tar.gz manaplus-307ef5331a3f18a28820f773b0dfce8db479bf7a.tar.bz2 manaplus-307ef5331a3f18a28820f773b0dfce8db479bf7a.tar.xz manaplus-307ef5331a3f18a28820f773b0dfce8db479bf7a.zip |
Add packet CMSG_MAIL2_REQUEST_MONEY 0x09f1.
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 3ee9f193c..623283617 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -165,4 +165,17 @@ void Mail2Handler::deleteMail(const int openType, outMsg.writeInt64(mailId, "mail id"); } +void Mail2Handler::requestMoney(const int openType, + const int64_t mailId) const +{ + if (packetVersion < 20140326 || + serverVersion < 19) + { + return; + } + createOutPacket(CMSG_MAIL2_REQUEST_MONEY); + outMsg.writeInt64(mailId, "mail id"); + outMsg.writeInt8(openType, "open type"); +} + } // namespace EAthena |