From 2eb0a7d5c06b0505d862fde29dd9d9807933959b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Mar 2015 01:20:46 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_EQUIP_TICK_ACK 0x02d9. --- src/net/eathena/packets.h | 2 +- src/net/eathena/playerhandler.cpp | 12 ++++++++++++ src/net/eathena/playerhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 2b78d47b4..63b41c21c 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -99,7 +99,7 @@ int16_t packet_lengths[] = 0, -1, -1, 107, 6, -1, 0, 7, 22, 191, 0, 8, 0, 0, 0, 0, // #0x02C0 0, -1, 0, 0, 0, 30, 30, 0, 0, 3, 0, 65, 4, 71, 10, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 3, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0 1 2 3 4 5 6 7 8 9 a b c d e f diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index e38aab489..500ece81e 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -69,6 +69,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_UPGRADE_MESSAGE, SMSG_PLAYER_FAME_TAEKWON, SMSG_PLAYER_READ_BOOK, + SMSG_PLAYER_EQUIP_TICK_ACK, 0 }; handledMessages = _messages; @@ -176,6 +177,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerReadBook(msg); break; + case SMSG_PLAYER_EQUIP_TICK_ACK: + processPlayerEquipTickAck(msg); + break; + default: break; } @@ -585,4 +590,11 @@ void PlayerHandler::processPlayerReadBook(Net::MessageIn &msg) msg.readInt32("page"); } +void PlayerHandler::processPlayerEquipTickAck(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("unused"); + msg.readInt32("flag"); +} + } // namespace EAthena diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 470dcfdc6..1ff72b067 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -102,6 +102,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler static void processPlayerFameTaekwon(Net::MessageIn &msg); static void processPlayerReadBook(Net::MessageIn &msg); + + static void processPlayerEquipTickAck(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 4e3c6189d..5779d743a 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -112,6 +112,7 @@ #define SMSG_PLAYER_UPGRADE_MESSAGE 0x0223 #define SMSG_PLAYER_COOKING_LIST 0x025a #define SMSG_PLAYER_READ_BOOK 0x0294 +#define SMSG_PLAYER_EQUIP_TICK_ACK 0x02d9 #define SMSG_SKILL_FAILED 0x0110 #define SMSG_SKILL_DAMAGE 0x01de #define SMSG_SKILL_AUTO_CAST 0x0147 -- cgit v1.2.3-70-g09d2