summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-09 18:40:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-09 18:40:26 +0300
commit66cb4abf50fe7bb07aaedf0488b25825e5c08165 (patch)
tree41960cb637f602888dc7627a643dfe9e0887532e /src/net/eathena
parent23ea6f137e33ba1158ec3e6783fe31435fcffe1f (diff)
downloadmv-66cb4abf50fe7bb07aaedf0488b25825e5c08165.tar.gz
mv-66cb4abf50fe7bb07aaedf0488b25825e5c08165.tar.bz2
mv-66cb4abf50fe7bb07aaedf0488b25825e5c08165.tar.xz
mv-66cb4abf50fe7bb07aaedf0488b25825e5c08165.zip
eathena: add packet CMSG_SEARCHSTORE_NEXT_PAGE 0x0940.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/searchstorehandler.cpp5
-rw-r--r--src/net/eathena/searchstorehandler.h2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index f58f4ff93..20df3a5c0 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -565,5 +565,6 @@
#define CMSG_BUYINGSTORE_SELL 0x0811
#define CMSG_SEARCHSTORE_SEARCH 0x0819
+#define CMSG_SEARCHSTORE_NEXT_PAGE 0x0940
#endif // NET_EATHENA_PROTOCOL_H
diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp
index 6d6a7e1b8..349bd336e 100644
--- a/src/net/eathena/searchstorehandler.cpp
+++ b/src/net/eathena/searchstorehandler.cpp
@@ -79,6 +79,11 @@ void SearchStoreHandler::search(const StoreSearchType::Type type,
outMsg.writeInt16(itemId, "item id");
}
+void SearchStoreHandler::nextPage() const
+{
+ createOutPacket(CMSG_SEARCHSTORE_NEXT_PAGE);
+}
+
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 8412f17dc..892937e7a 100644
--- a/src/net/eathena/searchstorehandler.h
+++ b/src/net/eathena/searchstorehandler.h
@@ -42,6 +42,8 @@ class SearchStoreHandler final : public MessageHandler,
const int maxPrice,
const int itemId) const override final;
+ void nextPage() const override final;
+
protected:
static void processSearchAck(Net::MessageIn &msg);