diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-18 14:57:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-18 14:57:43 +0300 |
commit | ee633de31c7978ae4a776cce4de86729356e1b1f (patch) | |
tree | edffbdcdb8ff537c37c12ced8f08bc4fc7fe85e1 | |
parent | b91b2d22683f39703e914bf83a5fc796ae2f5a18 (diff) | |
download | manaplus-ee633de31c7978ae4a776cce4de86729356e1b1f.tar.gz manaplus-ee633de31c7978ae4a776cce4de86729356e1b1f.tar.bz2 manaplus-ee633de31c7978ae4a776cce4de86729356e1b1f.tar.xz manaplus-ee633de31c7978ae4a776cce4de86729356e1b1f.zip |
eathena: add partial support for packet SMSG_PLAYER_RANK_POINTS 0x097e.
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 13 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 17 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index dcdf08998..d3ad5d001 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -245,7 +245,7 @@ int16_t packet_lengths[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 31, 0, 0, 0, 0, 0, 0, 14, 0, 0, -1, 0, 0, 288, 0, 0, + 31, 0, 0, 0, 0, 0, 0, 14, 0, 0, -1, 0, 0, 288, 12, 0, // #0x0980 0, 0, 0, 29, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, -1, -1, -1, -1, -1, -1, 0, 0, 11, 9, 8, 0, 0, 0, 0, diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 94d974be5..9edb50e01 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -71,6 +71,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_READ_BOOK, SMSG_PLAYER_EQUIP_TICK_ACK, SMSG_AUTOSHADOW_SPELL_LIST, + SMSG_PLAYER_RANK_POINTS, 0 }; handledMessages = _messages; @@ -186,6 +187,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerAutoShadowSpellList(msg); break; + case SMSG_PLAYER_RANK_POINTS: + processPlayerRankPoints(msg); + break; + default: break; } @@ -610,4 +615,12 @@ void PlayerHandler::processPlayerAutoShadowSpellList(Net::MessageIn &msg) msg.readInt16("skill id"); } +void PlayerHandler::processPlayerRankPoints(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt16("type"); + msg.readInt32("points"); + msg.readInt32("fame"); +} + } // namespace EAthena diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 016e9baa8..edd6cd897 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -106,6 +106,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler static void processPlayerEquipTickAck(Net::MessageIn &msg); static void processPlayerAutoShadowSpellList(Net::MessageIn &msg); + + static void processPlayerRankPoints(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index cbd4585c6..9de6db139 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -112,6 +112,7 @@ #define SMSG_PLAYER_FAME_BLACKSMITH 0x021b #define SMSG_PLAYER_FAME_ALCHEMIST 0x021c #define SMSG_PLAYER_FAME_TAEKWON 0x0224 +#define SMSG_PLAYER_RANK_POINTS 0x097e #define SMSG_PLAYER_REFINE_LIST 0x0221 #define SMSG_PLAYER_UPGRADE_MESSAGE 0x0223 #define SMSG_PLAYER_COOKING_LIST 0x025a |