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 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/eathena/auctionhandler.cpp') 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 -- cgit v1.2.3-60-g2f50