summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-09 18:47:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-09 18:47:19 +0300
commit43db029011d22270f4b0a6d94a13a7dca24291c3 (patch)
tree27ebcdf243ca7ef0b26d19d908e3238c595bbf8b
parent66cb4abf50fe7bb07aaedf0488b25825e5c08165 (diff)
downloadplus-43db029011d22270f4b0a6d94a13a7dca24291c3.tar.gz
plus-43db029011d22270f4b0a6d94a13a7dca24291c3.tar.bz2
plus-43db029011d22270f4b0a6d94a13a7dca24291c3.tar.xz
plus-43db029011d22270f4b0a6d94a13a7dca24291c3.zip
eathena: add partial support for packet SMSG_SEARCHSTORE_OPEN 0x083a.
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/searchstorehandler.cpp11
-rw-r--r--src/net/eathena/searchstorehandler.h2
4 files changed, 15 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 14b15ed2e..2357cdf0a 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -218,7 +218,7 @@ int16_t packet_lengths[] =
-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 20,
3, 0, 8, -1, 86, -1, 0, 0, -1, 0, 4, 10, 10, 22, 8, 0,
0, 0, 0, 0, 6, 0, -1, 3, 0, 0, 0, 0, 0, -1, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 26, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 66, 5, 0, 0, 0, 26, 0,
// #0x0840
-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0,
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 20df3a5c0..a6e193ccc 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -345,6 +345,7 @@
#define SMSG_SEARCHSTORE_SEARCH_ACK 0x0836
#define SMSG_SEARCHSTORE_SEARCH_FAILED 0x0837
+#define SMSG_SEARCHSTORE_OPEN 0x083a
/**********************************
* Packets from client to server *
diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp
index 349bd336e..8288dc0ab 100644
--- a/src/net/eathena/searchstorehandler.cpp
+++ b/src/net/eathena/searchstorehandler.cpp
@@ -41,6 +41,7 @@ SearchStoreHandler::SearchStoreHandler() :
{
SMSG_SEARCHSTORE_SEARCH_ACK,
SMSG_SEARCHSTORE_SEARCH_FAILED,
+ SMSG_SEARCHSTORE_OPEN,
0
};
handledMessages = _messages;
@@ -59,6 +60,10 @@ void SearchStoreHandler::handleMessage(Net::MessageIn &msg)
processSearchFailed(msg);
break;
+ case SMSG_SEARCHSTORE_OPEN:
+ processSearchOpen(msg);
+ break;
+
default:
break;
}
@@ -137,4 +142,10 @@ void SearchStoreHandler::processSearchFailed(Net::MessageIn &msg)
}
}
+void SearchStoreHandler::processSearchOpen(Net::MessageIn &msg)
+{
+ msg.readInt16("effect");
+ msg.readUInt8("uses");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/searchstorehandler.h b/src/net/eathena/searchstorehandler.h
index 892937e7a..731639e51 100644
--- a/src/net/eathena/searchstorehandler.h
+++ b/src/net/eathena/searchstorehandler.h
@@ -48,6 +48,8 @@ class SearchStoreHandler final : public MessageHandler,
static void processSearchAck(Net::MessageIn &msg);
static void processSearchFailed(Net::MessageIn &msg);
+
+ void processSearchOpen(Net::MessageIn &msg);
};
} // namespace EAthena