summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
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