summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-05 18:43:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-05 18:43:59 +0300
commit1ab01e47c19cea70b4ce9aa8ceb4e6eb3c273b08 (patch)
tree4b7aad2667d22763c6f6824ef49803770beb7fae /src/net/eathena
parentd7299e26a1be102a1b742fcd5a2fb9cc2656f5e8 (diff)
downloadmanaverse-1ab01e47c19cea70b4ce9aa8ceb4e6eb3c273b08.tar.gz
manaverse-1ab01e47c19cea70b4ce9aa8ceb4e6eb3c273b08.tar.bz2
manaverse-1ab01e47c19cea70b4ce9aa8ceb4e6eb3c273b08.tar.xz
manaverse-1ab01e47c19cea70b4ce9aa8ceb4e6eb3c273b08.zip
eathena: add packet CMSG_BUYINGSTORE_CLOSE 0x0817.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp5
-rw-r--r--src/net/eathena/buyingstorehandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp
index 519c30aae..7801fb5f4 100644
--- a/src/net/eathena/buyingstorehandler.cpp
+++ b/src/net/eathena/buyingstorehandler.cpp
@@ -142,4 +142,9 @@ void BuyingStoreHandler::create(const std::string &name,
}
}
+void BuyingStoreHandler::close() const
+{
+ createOutPacket(CMSG_BUYINGSTORE_CLOSE);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/buyingstorehandler.h b/src/net/eathena/buyingstorehandler.h
index 1a647a67c..4e1d0dcd0 100644
--- a/src/net/eathena/buyingstorehandler.h
+++ b/src/net/eathena/buyingstorehandler.h
@@ -42,6 +42,8 @@ class BuyingStoreHandler final : public MessageHandler,
const bool flag,
std::vector<ShopItem*> &items) const override final;
+ void close() const override final;
+
protected:
static void processBuyingStoreOpen(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 1f5d913a3..e6a599cf7 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -551,5 +551,6 @@
#define CMSG_VENDING_CREATE_SHOP 0x01b2
#define CMSG_BUYINGSTORE_CREATE 0x0815
+#define CMSG_BUYINGSTORE_CLOSE 0x0817
#endif // NET_EATHENA_PROTOCOL_H