summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 19:35:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 19:35:18 +0300
commitf4f98c7627c1978bc49d156a8b4dbc5d4170f0d8 (patch)
tree16e6d2dd418432c7ba2d8b24507d18ee158e1229 /src/net
parentb4024f971a41efebff9bbe53f71e78be6eda46af (diff)
downloadmv-f4f98c7627c1978bc49d156a8b4dbc5d4170f0d8.tar.gz
mv-f4f98c7627c1978bc49d156a8b4dbc5d4170f0d8.tar.bz2
mv-f4f98c7627c1978bc49d156a8b4dbc5d4170f0d8.tar.xz
mv-f4f98c7627c1978bc49d156a8b4dbc5d4170f0d8.zip
eathena: add partial support for packet SMSG_PLAYER_REPAIR_EFFECT 0x01fe.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/inventoryhandler.cpp13
-rw-r--r--src/net/eathena/inventoryhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 16 insertions, 0 deletions
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