From de361843e60f3a073a76d64d373462ebea824338 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Mar 2015 13:56:54 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_UPGRADE_MESSAGE 0x0223. --- 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') diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 7329e0229..93e5f7d52 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, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 19, 71, 5, + -1, -1, 0, 8, 0, 0, 0, 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/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 93cd5ccf9..1462343ef 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -66,6 +66,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_NOTIFY_MAPINFO, SMSG_PLAYER_FAME_BLACKSMITH, SMSG_PLAYER_FAME_ALCHEMIST, + SMSG_PLAYER_UPGRADE_MESSAGE, 0 }; handledMessages = _messages; @@ -161,6 +162,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerFameAlchemist(msg); break; + case SMSG_PLAYER_UPGRADE_MESSAGE: + processPlayerUpgradeMessage(msg); + break; + default: break; } @@ -549,4 +554,11 @@ void PlayerHandler::processPlayerFameAlchemist(Net::MessageIn &msg) msg.readInt32("total points"); } +void PlayerHandler::processPlayerUpgradeMessage(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("result"); + msg.readInt16("item id"); +} + } // namespace EAthena diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 151ac9131..55257768c 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -96,6 +96,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler static void processPlayerFameBlacksmith(Net::MessageIn &msg); static void processPlayerFameAlchemist(Net::MessageIn &msg); + + static void processPlayerUpgradeMessage(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 9b0a6da3a..b77604f4a 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -108,6 +108,7 @@ #define SMSG_PLAYER_FAME_BLACKSMITH 0x021b #define SMSG_PLAYER_FAME_ALCHEMIST 0x021c #define SMSG_PLAYER_REFINE_LIST 0x0221 +#define SMSG_PLAYER_UPGRADE_MESSAGE 0x0223 #define SMSG_SKILL_FAILED 0x0110 #define SMSG_SKILL_DAMAGE 0x01de #define SMSG_SKILL_AUTO_CAST 0x0147 -- cgit v1.2.3-70-g09d2