From 76bbb31b1d9b1b8c22614ac91e765519194257d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Feb 2015 21:28:08 +0300 Subject: eathena: add packet CMSG_SEARCHSTORE_CLICK 0x0835. --- src/net/eathena/protocol.h | 1 + src/net/eathena/searchstorehandler.cpp | 10 ++++++++++ src/net/eathena/searchstorehandler.h | 4 ++++ 3 files changed, 15 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 1128172a0..1d34f158a 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -568,5 +568,6 @@ #define CMSG_SEARCHSTORE_SEARCH 0x0819 #define CMSG_SEARCHSTORE_NEXT_PAGE 0x0940 #define CMSG_SEARCHSTORE_CLOSE 0x083b +#define CMSG_SEARCHSTORE_CLICK 0x0835 #endif // NET_EATHENA_PROTOCOL_H 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; diff --git a/src/net/eathena/searchstorehandler.h b/src/net/eathena/searchstorehandler.h index 2b2f5af08..7a6b82024 100644 --- a/src/net/eathena/searchstorehandler.h +++ b/src/net/eathena/searchstorehandler.h @@ -46,6 +46,10 @@ class SearchStoreHandler final : public MessageHandler, void close() const override final; + void select(const int accountId, + const int storeId, + const int itemId) const override final; + protected: static void processSearchAck(Net::MessageIn &msg); -- cgit v1.2.3-60-g2f50