summaryrefslogtreecommitdiff
path: root/src/net/eathena
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
parent0af4d61628a0b1d8d697101578ee90d3e2f90ea9 (diff)
downloadmanaplus-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.gz
manaplus-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.bz2
manaplus-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.xz
manaplus-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.zip
eathena: add packet CMSG_AUCTION_REGISTER 0x024d.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/auctionhandler.cpp10
-rw-r--r--src/net/eathena/auctionhandler.h4
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 15 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
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