summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/auctionhandler.cpp12
-rw-r--r--src/net/eathena/auctionhandler.h5
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 18 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
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index 4cf336b96..de2574e4b 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -52,6 +52,11 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
void bid(const int auctionId,
const int money) const override final;
+ void search(const AuctionSearchType::Type type,
+ const int auctionId,
+ const std::string &text,
+ const int page) 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 dd53a12f0..dda0cf4cd 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -522,5 +522,6 @@
#define CMSG_AUCTION_CANCEL 0x024e
#define CMSG_AUCTION_CLOSE 0x025d
#define CMSG_AUCTION_BID 0x024f
+#define CMSG_AUCTION_SEARCH 0x0251
#endif // NET_EATHENA_PROTOCOL_H