diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-22 00:26:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-22 00:26:41 +0300 |
commit | 7787e10673e0b2a379b713ec823c6858e5ec1249 (patch) | |
tree | 16ff087a563df6d09f7862b145b92b2818154d15 /src/net/eathena | |
parent | 8a85cb2bc295ad0ec9e275782b7392c2f99ba134 (diff) | |
download | manaplus-7787e10673e0b2a379b713ec823c6858e5ec1249.tar.gz manaplus-7787e10673e0b2a379b713ec823c6858e5ec1249.tar.bz2 manaplus-7787e10673e0b2a379b713ec823c6858e5ec1249.tar.xz manaplus-7787e10673e0b2a379b713ec823c6858e5ec1249.zip |
eathena: add packet CMSG_NPC_MARKET_CLOSE 0x09d8.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/markethandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/markethandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp index 3bbe678b7..915b850fd 100644 --- a/src/net/eathena/markethandler.cpp +++ b/src/net/eathena/markethandler.cpp @@ -20,6 +20,7 @@ #include "net/eathena/markethandler.h" +#include "net/eathena/messageout.h" #include "net/eathena/protocol.h" #include "debug.h" @@ -67,4 +68,9 @@ void MarketHandler::processMarketOpen(Net::MessageIn &msg) } } +void MarketHandler::close() +{ + createOutPacket(CMSG_NPC_MARKET_CLOSE); +} + } // namespace EAthena diff --git a/src/net/eathena/markethandler.h b/src/net/eathena/markethandler.h index 0ff713ed1..ab12cc215 100644 --- a/src/net/eathena/markethandler.h +++ b/src/net/eathena/markethandler.h @@ -37,6 +37,8 @@ class MarketHandler final : public MessageHandler, void handleMessage(Net::MessageIn &msg) override final; + void close() override final; + protected: void processMarketOpen(Net::MessageIn &msg); }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 138cdc04d..fa5940ea3 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -382,6 +382,7 @@ #define CMSG_NPC_BUY_SELL_REQUEST 0x00c5 #define CMSG_NPC_BUY_REQUEST 0x00c8 #define CMSG_NPC_SELL_REQUEST 0x00c9 +#define CMSG_NPC_MARKET_CLOSE 0x09d8 #define CMSG_TRADE_REQUEST 0x00e4 #define CMSG_TRADE_RESPONSE 0x00e6 |