summaryrefslogtreecommitdiff
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
parent0af4d61628a0b1d8d697101578ee90d3e2f90ea9 (diff)
downloadmanaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.gz
manaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.bz2
manaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.tar.xz
manaverse-326ad8b0aa5ebdd55ec3f7d41238d578cafb3e23.zip
eathena: add packet CMSG_AUCTION_REGISTER 0x024d.
-rw-r--r--src/net/auctionhandler.h4
-rw-r--r--src/net/eathena/auctionhandler.cpp10
-rw-r--r--src/net/eathena/auctionhandler.h4
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/auctionhandler.cpp6
-rw-r--r--src/net/tmwa/auctionhandler.h4
6 files changed, 29 insertions, 0 deletions
diff --git a/src/net/auctionhandler.h b/src/net/auctionhandler.h
index b449faa31..1e8e7a459 100644
--- a/src/net/auctionhandler.h
+++ b/src/net/auctionhandler.h
@@ -40,6 +40,10 @@ class AuctionHandler notfinal
virtual void setItem(const Item *const item,
const int amount) const = 0;
+
+ virtual void reg(const int currentPrice,
+ const int maxPrice,
+ const int hours) const = 0;
};
} // namespace Net
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
diff --git a/src/net/tmwa/auctionhandler.cpp b/src/net/tmwa/auctionhandler.cpp
index 6197c7db8..f8030d48d 100644
--- a/src/net/tmwa/auctionhandler.cpp
+++ b/src/net/tmwa/auctionhandler.cpp
@@ -51,4 +51,10 @@ void AuctionHandler::setItem(const Item *const item A_UNUSED,
{
}
+void AuctionHandler::reg(const int currentPrice A_UNUSED,
+ const int maxPrice A_UNUSED,
+ const int hours A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/auctionhandler.h b/src/net/tmwa/auctionhandler.h
index 873d987e3..a18b88c70 100644
--- a/src/net/tmwa/auctionhandler.h
+++ b/src/net/tmwa/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;
};
} // namespace TmwAthena