From 4028eee767414d73a4937dd61eea8d138e2a7b9e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Jan 2015 15:01:26 +0300 Subject: eathena: add packet CMSG_AUCTION_CANCEL 0x024e. --- src/net/eathena/auctionhandler.cpp | 6 ++++++ src/net/eathena/auctionhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 9 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index f390e2aae..45b1e2dbb 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -149,4 +149,10 @@ void AuctionHandler::reg(const int currentPrice, outMsg.writeInt32(hours, "delete hour"); } +void AuctionHandler::cancel(const int auctionId) const +{ + createOutPacket(CMSG_AUCTION_CANCEL); + outMsg.writeInt32(auctionId, "auction id"); +} + } // namespace EAthena diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h index 0c8ccee3a..1c20b5317 100644 --- a/src/net/eathena/auctionhandler.h +++ b/src/net/eathena/auctionhandler.h @@ -45,6 +45,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler const int maxPrice, const int hours) const override final; + void cancel(const int auctionId) const override final; + protected: static void processOpenWindow(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 8ec1ff842..e2651a4f6 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -519,5 +519,6 @@ #define CMSG_AUCTION_CANCEL_REG 0x024b #define CMSG_AUCTION_SET_ITEM 0x024c #define CMSG_AUCTION_REGISTER 0x024d +#define CMSG_AUCTION_CANCEL 0x024e #endif // NET_EATHENA_PROTOCOL_H -- cgit v1.2.3-60-g2f50