summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
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