summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-28 23:47:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-28 23:47:41 +0300
commit953e1adb118cf93dd411dfa3e66d994aa9abb548 (patch)
treeaab5e03fbf6434fd8b42952a59795ceb3398522e /src/net/eathena
parent068b17892c0edcde310cebbbdc06a00ce56d7928 (diff)
downloadplus-953e1adb118cf93dd411dfa3e66d994aa9abb548.tar.gz
plus-953e1adb118cf93dd411dfa3e66d994aa9abb548.tar.bz2
plus-953e1adb118cf93dd411dfa3e66d994aa9abb548.tar.xz
plus-953e1adb118cf93dd411dfa3e66d994aa9abb548.zip
eathena: add packet CMSG_BANK_CLOSE 0x09b8.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/bankhandler.cpp6
-rw-r--r--src/net/eathena/bankhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index c98b5838c..50b1513ab 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -124,4 +124,10 @@ void BankHandler::open() const
outMsg.writeInt32(0, "unused");
}
+void BankHandler::close() const
+{
+ createOutPacket(CMSG_BANK_CLOSE);
+ outMsg.writeInt32(0, "unused");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/bankhandler.h b/src/net/eathena/bankhandler.h
index 1fcec8e93..bfa07fcb4 100644
--- a/src/net/eathena/bankhandler.h
+++ b/src/net/eathena/bankhandler.h
@@ -47,6 +47,8 @@ class BankHandler final : public MessageHandler,
void open() const override final;
+ void close() const override final;
+
protected:
static void processBankStatus(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index b8b205f30..cfe8927d4 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -668,6 +668,7 @@
#define CMSG_BANK_WITHDRAW 0x09a9
#define CMSG_BANK_CHECK 0x09ab
#define CMSG_BANK_OPEN 0x09b6
+#define CMSG_BANK_CLOSE 0x09b8
#define CMSG_FRIENDS_ADD_PLAYER 0x091a
#define CMSG_FRIENDS_REQUEST_ACK 0x0208