From e757d6ff680f06dc9b77d20a1d0dc79515224927 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 12:56:17 +0300 Subject: eathena: add packet CMSG_BANK_DEPOSIT 0x09a7. --- src/net/eathena/bankhandler.cpp | 7 +++++++ src/net/eathena/bankhandler.h | 2 ++ src/net/eathena/protocol.h | 2 ++ 3 files changed, 11 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index c8962bb02..32e5ecd06 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -54,4 +54,11 @@ void BankHandler::handleMessage(Net::MessageIn &msg) } } +void BankHandler::deposit(const int money) const +{ + MessageOut outMsg(CMSG_BANK_DEPOSIT); + 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 eee935e5f..7821e4b34 100644 --- a/src/net/eathena/bankhandler.h +++ b/src/net/eathena/bankhandler.h @@ -38,6 +38,8 @@ class BankHandler final : public MessageHandler, A_DELETE_COPY(BankHandler) void handleMessage(Net::MessageIn &msg) override final; + + void deposit(const int money) const override final; }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index f5ac75da9..493e88a48 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -386,6 +386,8 @@ #define CMSG_ASK_FOR_CHILD 0x01f9 #define CMSG_ASK_FOR_CHILD_REPLY 0x01f7 +#define CMSG_BANK_DEPOSIT 0x09a7 + #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb #define SMSG_SKILL_CAST_CANCEL 0x01b9 -- cgit v1.2.3-70-g09d2