diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 13:56:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 13:56:54 +0300 |
commit | de361843e60f3a073a76d64d373462ebea824338 (patch) | |
tree | 942783ad5d4c8191a3c23ec621ed5c1dfc2586e1 /src/net | |
parent | 789aac29caf90e3eabe2f912fb0e0653ee290797 (diff) | |
download | manaplus-de361843e60f3a073a76d64d373462ebea824338.tar.gz manaplus-de361843e60f3a073a76d64d373462ebea824338.tar.bz2 manaplus-de361843e60f3a073a76d64d373462ebea824338.tar.xz manaplus-de361843e60f3a073a76d64d373462ebea824338.zip |
eathena: add partial support for packet SMSG_PLAYER_UPGRADE_MESSAGE 0x0223.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 16 insertions, 1 deletions
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 |