summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 22:12:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 22:12:43 +0300
commitd12294702a4abd46a3fab0f2ea5b9aa3f8ef824a (patch)
treea3575c872235776e00cc60913a695a1ed580f546 /src/net/eathena/auctionhandler.cpp
parent6e3bf9979165b7569ad7a58ec4679f2531e50b90 (diff)
downloadmanaverse-d12294702a4abd46a3fab0f2ea5b9aa3f8ef824a.tar.gz
manaverse-d12294702a4abd46a3fab0f2ea5b9aa3f8ef824a.tar.bz2
manaverse-d12294702a4abd46a3fab0f2ea5b9aa3f8ef824a.tar.xz
manaverse-d12294702a4abd46a3fab0f2ea5b9aa3f8ef824a.zip
eathena: add packet CMSG_AUCTION_SEARCH 0x0251.
Diffstat (limited to 'src/net/eathena/auctionhandler.cpp')
-rw-r--r--src/net/eathena/auctionhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp
index 0afe441a9..d95cc3c6e 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -169,4 +169,16 @@ void AuctionHandler::bid(const int auctionId,
outMsg.writeInt32(money, "money");
}
+void AuctionHandler::search(const AuctionSearchType::Type type,
+ const int auctionId,
+ const std::string &text,
+ const int page) const
+{
+ createOutPacket(CMSG_AUCTION_SEARCH);
+ outMsg.writeInt16(static_cast<int16_t>(type), "search type");
+ outMsg.writeInt32(auctionId, "auction id");
+ outMsg.writeString(text, 24, "search text");
+ outMsg.writeInt16(page, "page");
+}
+
} // namespace EAthena