summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-29 12:58:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-29 12:58:59 +0300
commit63a59b84a097af720138399f4b55ca726b74716e (patch)
tree6b5e8ece4f41079917f2b2a8aac9413afb74765d /src
parent5ff2a20caeba3a245458adc890b853caf4944992 (diff)
downloadplus-63a59b84a097af720138399f4b55ca726b74716e.tar.gz
plus-63a59b84a097af720138399f4b55ca726b74716e.tar.bz2
plus-63a59b84a097af720138399f4b55ca726b74716e.tar.xz
plus-63a59b84a097af720138399f4b55ca726b74716e.zip
eathena: add packet CMSG_NPC_CASH_SHOP_OPEN 0x0844.
Diffstat (limited to 'src')
-rw-r--r--src/net/cashshophandler.h2
-rw-r--r--src/net/eathena/cashshophandler.cpp5
-rw-r--r--src/net/eathena/cashshophandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/cashshophandler.cpp4
-rw-r--r--src/net/tmwa/cashshophandler.h2
6 files changed, 16 insertions, 0 deletions
diff --git a/src/net/cashshophandler.h b/src/net/cashshophandler.h
index df9f0e172..1972ab6e8 100644
--- a/src/net/cashshophandler.h
+++ b/src/net/cashshophandler.h
@@ -42,6 +42,8 @@ class CashShopHandler notfinal
const int amount) const = 0;
virtual void close() const = 0;
+
+ virtual void requestPoints() const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp
index fcdf84ca9..24751bfe0 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -186,4 +186,9 @@ void CashShopHandler::close() const
createOutPacket(CMSG_NPC_CASH_SHOP_CLOSE);
}
+void CashShopHandler::requestPoints() const
+{
+ createOutPacket(CMSG_NPC_CASH_SHOP_OPEN);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h
index dc6980ec7..e25599028 100644
--- a/src/net/eathena/cashshophandler.h
+++ b/src/net/eathena/cashshophandler.h
@@ -48,6 +48,8 @@ class CashShopHandler final : public MessageHandler,
void close() const override final;
+ void requestPoints() const override final;
+
protected:
static void processCashShopOpen(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 5cea63669..1d8c1648a 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -538,6 +538,7 @@
#define CMSG_NPC_MARKET_BUY 0x09d6
#define CMSG_NPC_CASH_SHOP_BUY 0x0288
#define CMSG_NPC_CASH_SHOP_CLOSE 0x084a
+#define CMSG_NPC_CASH_SHOP_OPEN 0x0844
#define CMSG_TRADE_REQUEST 0x00e4
#define CMSG_TRADE_RESPONSE 0x00e6
diff --git a/src/net/tmwa/cashshophandler.cpp b/src/net/tmwa/cashshophandler.cpp
index cefeb496d..374c4d081 100644
--- a/src/net/tmwa/cashshophandler.cpp
+++ b/src/net/tmwa/cashshophandler.cpp
@@ -53,4 +53,8 @@ void CashShopHandler::close() const
{
}
+void CashShopHandler::requestPoints() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/cashshophandler.h b/src/net/tmwa/cashshophandler.h
index 9a15a260e..47ea4b505 100644
--- a/src/net/tmwa/cashshophandler.h
+++ b/src/net/tmwa/cashshophandler.h
@@ -46,6 +46,8 @@ class CashShopHandler final : public MessageHandler,
const int amount) const override final;
void close() const override final;
+
+ void requestPoints() const override final;
};
} // namespace TmwAthena