summaryrefslogtreecommitdiff
path: root/src/net/eathena/searchstorehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-09 21:28:08 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-09 21:28:08 +0300
commit76bbb31b1d9b1b8c22614ac91e765519194257d8 (patch)
tree2eccf36c757bb024efbcad754313e227742902cb /src/net/eathena/searchstorehandler.cpp
parent020e34363763d9cd0d691ae3b3da1ead52defa4e (diff)
downloadmv-76bbb31b1d9b1b8c22614ac91e765519194257d8.tar.gz
mv-76bbb31b1d9b1b8c22614ac91e765519194257d8.tar.bz2
mv-76bbb31b1d9b1b8c22614ac91e765519194257d8.tar.xz
mv-76bbb31b1d9b1b8c22614ac91e765519194257d8.zip
eathena: add packet CMSG_SEARCHSTORE_CLICK 0x0835.
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;