summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 13:30:56 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 13:30:56 +0300
commit97b04a152a7c16c192269e26e5c20ca3983e959d (patch)
tree00bff0d4e485139d5824e7e304c3750e15865170 /src
parent4ae1d67a20f63124ee5a7d26a17d0beae523c6a4 (diff)
downloadmv-97b04a152a7c16c192269e26e5c20ca3983e959d.tar.gz
mv-97b04a152a7c16c192269e26e5c20ca3983e959d.tar.bz2
mv-97b04a152a7c16c192269e26e5c20ca3983e959d.tar.xz
mv-97b04a152a7c16c192269e26e5c20ca3983e959d.zip
eathena: add packet CMSG_BANK_CHECK 0x09ab.
Diffstat (limited to 'src')
-rw-r--r--src/net/bankhandler.h2
-rw-r--r--src/net/eathena/bankhandler.cpp6
-rw-r--r--src/net/eathena/bankhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/bankhandler.cpp4
-rw-r--r--src/net/tmwa/bankhandler.h2
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/bankhandler.h b/src/net/bankhandler.h
index 0bdccf533..5db6b9680 100644
--- a/src/net/bankhandler.h
+++ b/src/net/bankhandler.h
@@ -37,6 +37,8 @@ class BankHandler notfinal
virtual void deposit(const int money) const = 0;
virtual void withdraw(const int money) const = 0;
+
+ virtual void check() const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index 1d7116004..bc393faa1 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -68,4 +68,10 @@ void BankHandler::withdraw(const int money) const
outMsg.writeInt32(money, "money");
}
+void BankHandler::check() const
+{
+ MessageOut outMsg(CMSG_BANK_CHECK);
+ outMsg.writeInt32(0, "account id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/bankhandler.h b/src/net/eathena/bankhandler.h
index 601af27c2..bd5e81edd 100644
--- a/src/net/eathena/bankhandler.h
+++ b/src/net/eathena/bankhandler.h
@@ -42,6 +42,8 @@ class BankHandler final : public MessageHandler,
void deposit(const int money) const override final;
void withdraw(const int money) const override final;
+
+ void check() const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 64a5a5cc7..a7108e777 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -388,6 +388,7 @@
#define CMSG_BANK_DEPOSIT 0x09a7
#define CMSG_BANK_WITHDRAW 0x09a9
+#define CMSG_BANK_CHECK 0x09ab
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
diff --git a/src/net/tmwa/bankhandler.cpp b/src/net/tmwa/bankhandler.cpp
index 69f4250d8..f0c20be29 100644
--- a/src/net/tmwa/bankhandler.cpp
+++ b/src/net/tmwa/bankhandler.cpp
@@ -50,4 +50,8 @@ void BankHandler::withdraw(const int money A_UNUSED) const
{
}
+void BankHandler::check() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/bankhandler.h b/src/net/tmwa/bankhandler.h
index a439ac381..52ae60815 100644
--- a/src/net/tmwa/bankhandler.h
+++ b/src/net/tmwa/bankhandler.h
@@ -41,6 +41,8 @@ class BankHandler final : public MessageHandler,
void deposit(const int money) const override final;
void withdraw(const int money) const override final;
+
+ void check() const override final;
};
} // namespace TmwAthena