diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 13:10:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 13:10:02 +0300 |
commit | 4ae1d67a20f63124ee5a7d26a17d0beae523c6a4 (patch) | |
tree | 5678000b5ce01f3b1f90e666970ae2167cd409fb /src/net/eathena | |
parent | e757d6ff680f06dc9b77d20a1d0dc79515224927 (diff) | |
download | manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.tar.gz manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.tar.bz2 manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.tar.xz manaplus-4ae1d67a20f63124ee5a7d26a17d0beae523c6a4.zip |
eathena: add packet CMSG_BANK_WITHDRAW 0x09a9.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/bankhandler.cpp | 7 | ||||
-rw-r--r-- | src/net/eathena/bankhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index 32e5ecd06..1d7116004 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -61,4 +61,11 @@ void BankHandler::deposit(const int money) const outMsg.writeInt32(money, "money"); } +void BankHandler::withdraw(const int money) const +{ + MessageOut outMsg(CMSG_BANK_WITHDRAW); + outMsg.writeInt32(0, "account id"); + outMsg.writeInt32(money, "money"); +} + } // namespace EAthena diff --git a/src/net/eathena/bankhandler.h b/src/net/eathena/bankhandler.h index 7821e4b34..601af27c2 100644 --- a/src/net/eathena/bankhandler.h +++ b/src/net/eathena/bankhandler.h @@ -40,6 +40,8 @@ class BankHandler final : public MessageHandler, void handleMessage(Net::MessageIn &msg) override final; void deposit(const int money) const override final; + + void withdraw(const int money) const override final; }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 493e88a48..64a5a5cc7 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -387,6 +387,7 @@ #define CMSG_ASK_FOR_CHILD_REPLY 0x01f7 #define CMSG_BANK_DEPOSIT 0x09a7 +#define CMSG_BANK_WITHDRAW 0x09a9 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb |