summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 16:45:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 16:45:38 +0300
commit1438f4a6e9e5498d2fce8e8aae9bf30e6e6a4a5c (patch)
tree246a4ed076e168729306d66591ce79ea1c784df7 /src
parentf73a170389adb02566e54368c6fe8b5bee0e57d9 (diff)
downloadmv-1438f4a6e9e5498d2fce8e8aae9bf30e6e6a4a5c.tar.gz
mv-1438f4a6e9e5498d2fce8e8aae9bf30e6e6a4a5c.tar.bz2
mv-1438f4a6e9e5498d2fce8e8aae9bf30e6e6a4a5c.tar.xz
mv-1438f4a6e9e5498d2fce8e8aae9bf30e6e6a4a5c.zip
eathena: add partial support for packet SMSG_SKILL_DEVOTION_EFFECT 0x01cf.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/skillhandler.cpp15
-rw-r--r--src/net/eathena/skillhandler.h2
3 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 08a6f1ea5..c092a3a21 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -110,6 +110,7 @@
#define SMSG_SKILL_MEMO_MESSAGE 0x011e
#define SMSG_SKILL_UNIT_UPDATE 0x01ac
#define SMSG_SKILL_ARROW_CREATE_LIST 0x01ad
+#define SMSG_SKILL_DEVOTION_EFFECT 0x01cf
#define SMSG_ITEM_USE_RESPONSE 0x00a8
#define SMSG_ITEM_VISIBLE 0x009d /**< An item is on the floor */
#define SMSG_GRAFFITI_VISIBLE 0x01c9
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 309a66c70..8a8962a50 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -69,6 +69,7 @@ SkillHandler::SkillHandler() :
SMSG_SKILL_UNIT_UPDATE,
SMSG_SKILL_ARROW_CREATE_LIST,
SMSG_PLAYER_SKILL_AUTO_SPELLS,
+ SMSG_SKILL_DEVOTION_EFFECT,
0
};
handledMessages = _messages;
@@ -143,6 +144,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillAutoSpells(msg);
break;
+ case SMSG_SKILL_DEVOTION_EFFECT:
+ processSkillDevotionEffect(msg);
+ break;
+
default:
break;
}
@@ -471,4 +476,14 @@ void SkillHandler::processSkillAutoSpells(Net::MessageIn &msg)
menu = MenuType::AutoSpell;;
}
+void SkillHandler::processSkillDevotionEffect(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ msg.readInt32("being id");
+ for (int f = 0; f < 5; f ++)
+ msg.readInt32("devotee id");
+ msg.readInt16("range");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 5a210b989..aeb41a0d2 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -81,6 +81,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
static void processSkillArrowCreateList(Net::MessageIn &msg);
static void processSkillAutoSpells(Net::MessageIn &msg);
+
+ static void processSkillDevotionEffect(Net::MessageIn &msg);
};
} // namespace EAthena