summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 14:42:34 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 14:42:34 +0300
commit326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23 (patch)
treec2b7d75c258cfdd883a5c38f93c29f486b98d7b5 /src/net/eathena/auctionhandler.cpp
parent0af4d61628a0b1d8d697101578ee90d3e2f90ea9 (diff)
downloadmanaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.gz
manaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.bz2
manaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.xz
manaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.zip
eathena: add packet CMSG_AUCTION_REGISTER 0x024d.
Diffstat (limited to 'src/net/eathena/auctionhandler.cpp')
-rw-r--r--src/net/eathena/auctionhandler.cpp10
1 files changed, 10 insertions, 0 deletions
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