summaryrefslogtreecommitdiff
path: root/src/net/eathena/bankhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 14:00:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 14:00:46 +0300
commit719eb7581f940c31ae731d420b16b7cd4dc638ae (patch)
tree3054c10c46020e40706ae66e0dd44e79282bc9be /src/net/eathena/bankhandler.cpp
parent65a5155d584c7c41bbcd767b4b7b6722b6ea4f23 (diff)
downloadmanaplus-719eb7581f940c31ae731d420b16b7cd4dc638ae.tar.gz
manaplus-719eb7581f940c31ae731d420b16b7cd4dc638ae.tar.bz2
manaplus-719eb7581f940c31ae731d420b16b7cd4dc638ae.tar.xz
manaplus-719eb7581f940c31ae731d420b16b7cd4dc638ae.zip
eathena: add pactial support for packet SMSG_BANK_STATUS 0x09a6.
Diffstat (limited to 'src/net/eathena/bankhandler.cpp')
-rw-r--r--src/net/eathena/bankhandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index bc393faa1..7b4d849dd 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -39,6 +39,7 @@ BankHandler::BankHandler() :
{
static const uint16_t _messages[] =
{
+ SMSG_BANK_STATUS,
0
};
handledMessages = _messages;
@@ -49,6 +50,10 @@ void BankHandler::handleMessage(Net::MessageIn &msg)
{
switch (msg.getId())
{
+ case SMSG_BANK_STATUS:
+ processBankStatus(msg);
+ break;
+
default:
break;
}
@@ -74,4 +79,10 @@ void BankHandler::check() const
outMsg.writeInt32(0, "account id");
}
+void BankHandler::processBankStatus(Net::MessageIn &msg)
+{
+ msg.readInt64("money");
+ msg.readInt16("reason");
+}
+
} // namespace EAthena