From 326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Jan 2015 14:42:34 +0300 Subject: eathena: add packet CMSG_AUCTION_REGISTER 0x024d. --- src/net/eathena/auctionhandler.cpp | 10 ++++++++++ src/net/eathena/auctionhandler.h | 4 ++++ src/net/eathena/protocol.h | 1 + 3 files changed, 15 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index e36785218..a3c911e59 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -139,4 +139,14 @@ void AuctionHandler::setItem(const Item *const item, outMsg.writeInt32(amount, "amount"); // always 1 } +void AuctionHandler::reg(const int currentPrice, + const int maxPrice, + const int hours) const +{ + createOutPacket(CMSG_AUCTION_REGISTER); + outMsg.writeInt32(currentPrice, "now money"); + outMsg.writeInt32(maxPrice, "max money"); + outMsg.writeInt32(hours, "delete hour"); +} + } // namespace EAthena diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h index 5cd5a4f43..987cb2e57 100644 --- a/src/net/eathena/auctionhandler.h +++ b/src/net/eathena/auctionhandler.h @@ -41,6 +41,10 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler void setItem(const Item *const item, const int amount) const override final; + void reg(const int currentPrice, + const int maxPrice, + const int hours) 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 532e9649a..a413fb587 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -518,5 +518,6 @@ #define CMSG_AUCTION_CANCEL_REQUEST 0x024b #define CMSG_AUCTION_SET_ITEM 0x024c +#define CMSG_AUCTION_REGISTER 0x024d #endif // NET_EATHENA_PROTOCOL_H -- cgit v1.2.3-70-g09d2