From f4f98c7627c1978bc49d156a8b4dbc5d4170f0d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 19:35:18 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_REPAIR_EFFECT 0x01fe. --- src/net/eathena/inventoryhandler.cpp | 13 +++++++++++++ src/net/eathena/inventoryhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 16 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 0aa9f1af2..dae6e9aba 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -108,6 +108,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_IDENTIFIED, SMSG_PLAYER_REFINE, SMSG_PLAYER_REPAIR_LIST, + SMSG_PLAYER_REPAIR_EFFECT, 0 }; handledMessages = _messages; @@ -248,6 +249,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerRepairList(msg); break; + case SMSG_PLAYER_REPAIR_EFFECT: + processPlayerRepairEffect(msg); + break; + default: break; } @@ -1007,4 +1012,12 @@ void InventoryHandler::processPlayerRepairList(Net::MessageIn &msg) menu = MenuType::RepairWespon; } +void InventoryHandler::processPlayerRepairEffect(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt16("item index"); + msg.readUInt8("flag"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index e151ecaae..5add72e20 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -123,6 +123,8 @@ class InventoryHandler final : public MessageHandler, static void processPlayerRepairList(Net::MessageIn &msg); + static void processPlayerRepairEffect(Net::MessageIn &msg); + static Ea::InventoryItems mCartItems; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index db31c5cef..0e284d234 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -104,6 +104,7 @@ #define SMSG_PLAYER_SKILL_PRODUCE_EFFECT 0x018f #define SMSG_PLAYER_SKILL_AUTO_SPELLS 0x01cd #define SMSG_PLAYER_REPAIR_LIST 0x01fc +#define SMSG_PLAYER_REPAIR_EFFECT 0x01fe #define SMSG_SKILL_FAILED 0x0110 #define SMSG_SKILL_DAMAGE 0x01de #define SMSG_SKILL_AUTO_CAST 0x0147 -- cgit v1.2.3-70-g09d2