summaryrefslogtreecommitdiff
path: root/src/net/eathena/searchstorehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/searchstorehandler.cpp')
-rw-r--r--src/net/eathena/searchstorehandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp
index fdea20615..a90a1d299 100644
--- a/src/net/eathena/searchstorehandler.cpp
+++ b/src/net/eathena/searchstorehandler.cpp
@@ -94,6 +94,16 @@ void SearchStoreHandler::close() const
createOutPacket(CMSG_SEARCHSTORE_CLOSE);
}
+void SearchStoreHandler::select(const int accountId,
+ const int storeId,
+ const int itemId) const
+{
+ createOutPacket(CMSG_SEARCHSTORE_CLICK);
+ outMsg.writeInt32(accountId, "account id");
+ outMsg.writeInt32(storeId, "store id");
+ outMsg.writeInt16(itemId, "item id");
+}
+
void SearchStoreHandler::processSearchAck(Net::MessageIn &msg)
{
const int count = (msg.readInt16("len") - 7) / 106;