diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 14:24:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 14:24:44 +0300 |
commit | 43fb66a1610aeca72dab2527da95abdadb826697 (patch) | |
tree | f8c5438c53d74db20220989d4eb12cae865db8e3 | |
parent | 5d2962b4a09a71d47a241a762124c9e5526072f8 (diff) | |
download | mv-43fb66a1610aeca72dab2527da95abdadb826697.tar.gz mv-43fb66a1610aeca72dab2527da95abdadb826697.tar.bz2 mv-43fb66a1610aeca72dab2527da95abdadb826697.tar.xz mv-43fb66a1610aeca72dab2527da95abdadb826697.zip |
eathena: add partial support for packet SMSG_TAEKWON_RANKS_LIST 0x0226.
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 15 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 19 insertions, 1 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 74d0d6128..ef22b4178 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -128,6 +128,7 @@ BeingHandler::BeingHandler(const bool enableSync) : SMSG_STARS_KILL, SMSG_BLACKSMITH_RANKS_LIST, SMSG_ALCHEMIST_RANKS_LIST, + SMSG_TAEKWON_RANKS_LIST, 0 }; handledMessages = _messages; @@ -368,6 +369,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) processAlchemistRanksList(msg); break; + case SMSG_TAEKWON_RANKS_LIST: + processTaekwonRanksList(msg); + break; + default: break; } @@ -1355,6 +1360,16 @@ void BeingHandler::processAlchemistRanksList(Net::MessageIn &msg) msg.readInt32("points"); } +void BeingHandler::processTaekwonRanksList(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + // +++ here need window with rank tables. + for (int f = 0; f < 10; f ++) + msg.readString(24, "name"); + for (int f = 0; f < 10; f ++) + msg.readInt32("points"); +} + void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) { BLOCK_START("BeingHandler::processBeingChangeDirection") diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index c3b961db5..cecf35090 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -144,6 +144,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler static void processBlacksmithRanksList(Net::MessageIn &msg); static void processAlchemistRanksList(Net::MessageIn &msg); + + static void processTaekwonRanksList(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 3ac844106..b8ea08ec2 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -85,7 +85,7 @@ int16_t packet_lengths[] = // #0x0200 26, -1, 0, 0, 18, 26, 11, 34, 0, 36, 10, 19, 10, 0, 32, 0, 22, -1, 16, 0, 42, 6, 6, 0, 0, 282, 282, 10, 10, 0, 0, 0, - -1, -1, 0, 8, 10, 0, 0, 0, 0, 15, 0, 0, 0, 19, 71, 5, + -1, -1, 0, 8, 10, 0, 282, 0, 0, 15, 0, 0, 0, 19, 71, 5, 12, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x0240 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 603fad336..c3ba7710b 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -283,6 +283,7 @@ #define SMSG_RANKS_LIST 0x097d #define SMSG_BLACKSMITH_RANKS_LIST 0x0219 #define SMSG_ALCHEMIST_RANKS_LIST 0x021a +#define SMSG_TAEKWON_RANKS_LIST 0x0226 #define SMSG_MONSTER_HP 0x0977 #define SMSG_MONSTER_INFO 0x018c #define SMSG_PLAYER_HP 0x080e |