diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 13:01:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 13:01:36 +0300 |
commit | 89ed065dd03979e7029f76cb44185dd9fc861576 (patch) | |
tree | 29a05084e55cddfb796adb72da895bfe27e6ce4a /src/net/eathena | |
parent | c98f3b83900b8cd3cb3cdfb30215541e6f08d140 (diff) | |
download | plus-89ed065dd03979e7029f76cb44185dd9fc861576.tar.gz plus-89ed065dd03979e7029f76cb44185dd9fc861576.tar.bz2 plus-89ed065dd03979e7029f76cb44185dd9fc861576.tar.xz plus-89ed065dd03979e7029f76cb44185dd9fc861576.zip |
eathena: add partial support for packet SMSG_PLAYER_FAME_BLACKSMITH 0x021b.
Diffstat (limited to 'src/net/eathena')
-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 74b54d0f7..eb192bfa2 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -84,7 +84,7 @@ int16_t packet_lengths[] = //0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // #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, 0, 0, 0, 0, 0, + 22, -1, 16, 0, 42, 6, 6, 0, 0, 282, 282, 10, 0, 0, 0, 0, -1, 122, 0, 0, 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 diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 7f5944f20..12d39531f 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -64,6 +64,7 @@ PlayerHandler::PlayerHandler() : SMSG_MAP_MUSIC, SMSG_ONLINE_LIST, SMSG_PLAYER_NOTIFY_MAPINFO, + SMSG_PLAYER_FAME_BLACKSMITH, 0 }; handledMessages = _messages; @@ -151,6 +152,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processNotifyMapInfo(msg); break; + case SMSG_PLAYER_FAME_BLACKSMITH: + processPlayerFameBlacksmith(msg); + break; + default: break; } @@ -525,4 +530,11 @@ void PlayerHandler::processNotifyMapInfo(Net::MessageIn &msg) msg.readInt16("type"); } +void PlayerHandler::processPlayerFameBlacksmith(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("points"); + msg.readInt32("total points"); +} + } // namespace EAthena diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 6f4ad9592..43e3af52e 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -92,6 +92,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler static void processWalkResponse(Net::MessageIn &msg); static void processNotifyMapInfo(Net::MessageIn &msg); + + static void processPlayerFameBlacksmith(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 6b84577e7..f46524c09 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -105,6 +105,7 @@ #define SMSG_PLAYER_SKILL_AUTO_SPELLS 0x01cd #define SMSG_PLAYER_REPAIR_LIST 0x01fc #define SMSG_PLAYER_REPAIR_EFFECT 0x01fe +#define SMSG_PLAYER_FAME_BLACKSMITH 0x021b #define SMSG_SKILL_FAILED 0x0110 #define SMSG_SKILL_DAMAGE 0x01de #define SMSG_SKILL_AUTO_CAST 0x0147 |