summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/bankhandler.cpp7
-rw-r--r--src/net/eathena/bankhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index 32e5ecd06..1d7116004 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -61,4 +61,11 @@ void BankHandler::deposit(const int money) const
outMsg.writeInt32(money, "money");
}
+void BankHandler::withdraw(const int money) const
+{
+ MessageOut outMsg(CMSG_BANK_WITHDRAW);
+ 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 7821e4b34..601af27c2 100644
--- a/src/net/eathena/bankhandler.h
+++ b/src/net/eathena/bankhandler.h
@@ -40,6 +40,8 @@ class BankHandler final : public MessageHandler,
void handleMessage(Net::MessageIn &msg) override final;
void deposit(const int money) const override final;
+
+ void withdraw(const int money) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 493e88a48..64a5a5cc7 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -387,6 +387,7 @@
#define CMSG_ASK_FOR_CHILD_REPLY 0x01f7
#define CMSG_BANK_DEPOSIT 0x09a7
+#define CMSG_BANK_WITHDRAW 0x09a9
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb