From 5b64623aa85d9272cd3b5eb62c2e7d7f08f08ffb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Sep 2014 00:54:38 +0300 Subject: eathena: add partial support for packets SMSG_BANK_DEPOSIT 0x09a8 and SMSG_BANK_WITHDRAW 0x09aa. --- src/net/eathena/bankhandler.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/net/eathena/bankhandler.cpp') diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index 79562c515..0df1734ba 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -36,6 +36,8 @@ BankHandler::BankHandler() : static const uint16_t _messages[] = { SMSG_BANK_STATUS, + SMSG_BANK_DEPOSIT, + SMSG_BANK_WITHDRAW, 0 }; handledMessages = _messages; @@ -50,6 +52,14 @@ void BankHandler::handleMessage(Net::MessageIn &msg) processBankStatus(msg); break; + case SMSG_BANK_DEPOSIT: + processBankDeposit(msg); + break; + + case SMSG_BANK_WITHDRAW: + processBankWithdraw(msg); + break; + default: break; } @@ -81,4 +91,18 @@ void BankHandler::processBankStatus(Net::MessageIn &msg) msg.readInt16("reason"); } +void BankHandler::processBankDeposit(Net::MessageIn &msg) +{ + msg.readInt16("reason"); + msg.readInt64("money"); + msg.readInt32("balance"); +} + +void BankHandler::processBankWithdraw(Net::MessageIn &msg) +{ + msg.readInt16("reason"); + msg.readInt64("money"); + msg.readInt32("balance"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2