summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-26 22:41:39 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-26 22:41:39 +0300
commit2f63276d3c09246878fb2470c3c047c7d4144a2d (patch)
treeb96ab3d64657a27854302aca637cb6f8c281fdd5 /src/net/eathena
parentd6f607842bb91d2f76b6d677e4e899de50fa27cf (diff)
downloadplus-2f63276d3c09246878fb2470c3c047c7d4144a2d.tar.gz
plus-2f63276d3c09246878fb2470c3c047c7d4144a2d.tar.bz2
plus-2f63276d3c09246878fb2470c3c047c7d4144a2d.tar.xz
plus-2f63276d3c09246878fb2470c3c047c7d4144a2d.zip
eathena: add packet CMSG_NPC_CASH_SHOP_CLOSE 0x084a.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/cashshophandler.cpp5
-rw-r--r--src/net/eathena/cashshophandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp
index 082394b68..fcdf84ca9 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -181,4 +181,9 @@ void CashShopHandler::buyItem(const int points,
outMsg.writeInt16(static_cast<int16_t>(itemId), "item id");
}
+void CashShopHandler::close() const
+{
+ createOutPacket(CMSG_NPC_CASH_SHOP_CLOSE);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h
index 08aa39ac5..dc6980ec7 100644
--- a/src/net/eathena/cashshophandler.h
+++ b/src/net/eathena/cashshophandler.h
@@ -46,6 +46,8 @@ class CashShopHandler final : public MessageHandler,
const unsigned char color,
const int amount) const override final;
+ void close() 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 81c062f79..4e0311e29 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -533,6 +533,7 @@
#define CMSG_NPC_MARKET_CLOSE 0x09d8
#define CMSG_NPC_MARKET_BUY 0x09d6
#define CMSG_NPC_CASH_SHOP_BUY 0x0288
+#define CMSG_NPC_CASH_SHOP_CLOSE 0x084a
#define CMSG_TRADE_REQUEST 0x00e4
#define CMSG_TRADE_RESPONSE 0x00e6