summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 22:18:08 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 22:18:08 +0300
commit6eb12f07e8d1c813e094097dd94bf4fc450bace3 (patch)
tree5820cfcc7ff00eb14eb881c4c2e390f67f5e6eba /src/net/eathena
parentd12294702a4abd46a3fab0f2ea5b9aa3f8ef824a (diff)
downloadmv-6eb12f07e8d1c813e094097dd94bf4fc450bace3.tar.gz
mv-6eb12f07e8d1c813e094097dd94bf4fc450bace3.tar.bz2
mv-6eb12f07e8d1c813e094097dd94bf4fc450bace3.tar.xz
mv-6eb12f07e8d1c813e094097dd94bf4fc450bace3.zip
eathena: add packet CMSG_AUCTION_BUY_SELL 0x025c.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/auctionhandler.cpp12
-rw-r--r--src/net/eathena/auctionhandler.h4
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp
index d95cc3c6e..6ef2ca81c 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -181,4 +181,16 @@ void AuctionHandler::search(const AuctionSearchType::Type type,
outMsg.writeInt16(page, "page");
}
+void AuctionHandler::buy() const
+{
+ createOutPacket(CMSG_AUCTION_BUY_SELL);
+ outMsg.writeInt16(1, "buy/sell type");
+}
+
+void AuctionHandler::sell() const
+{
+ createOutPacket(CMSG_AUCTION_BUY_SELL);
+ outMsg.writeInt16(0, "buy/sell type");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index de2574e4b..c393a6798 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -57,6 +57,10 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
const std::string &text,
const int page) const override final;
+ void buy() const override final;
+
+ void sell() 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 dda0cf4cd..8e37d376f 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -523,5 +523,6 @@
#define CMSG_AUCTION_CLOSE 0x025d
#define CMSG_AUCTION_BID 0x024f
#define CMSG_AUCTION_SEARCH 0x0251
+#define CMSG_AUCTION_BUY_SELL 0x025c
#endif // NET_EATHENA_PROTOCOL_H