diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-25 20:32:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 20:32:49 +0300 |
commit | 3e25eaf71f76daaf846b640e691209a5f26e1cce (patch) | |
tree | 2b191d5c63956c7497c19e8d38269dc1f99ba5d9 /src/net/eathena/skillhandler.cpp | |
parent | 5d0e738a90341dff367c49e4dfefe8e6c565882f (diff) | |
download | mv-3e25eaf71f76daaf846b640e691209a5f26e1cce.tar.gz mv-3e25eaf71f76daaf846b640e691209a5f26e1cce.tar.bz2 mv-3e25eaf71f76daaf846b640e691209a5f26e1cce.tar.xz mv-3e25eaf71f76daaf846b640e691209a5f26e1cce.zip |
Add packet CMSG_SKILL_USE_BEING_START 0x0b10
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 0efad6190..1b97b5044 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -29,6 +29,8 @@ #include "debug.h" extern int packetVersion; +extern int packetVersionMain; +extern int packetVersionRe; extern int packetVersionZero; namespace EAthena @@ -54,6 +56,23 @@ void SkillHandler::useBeing(const int id, const int level, outMsg.writeInt32(toInt(beingId, int), "target id"); } +void SkillHandler::useBeingStart(const int id, + const int level, + const BeingId beingId) const +{ + if (packetVersionMain < 20181002 && + packetVersionRe < 20181002 && + packetVersionZero < 20181010) + { + return; + } + + createOutPacket(CMSG_SKILL_USE_BEING_START); + outMsg.writeInt16(CAST_S16(level), "skill level"); + outMsg.writeInt16(CAST_S16(id), "skill id"); + outMsg.writeInt32(toInt(beingId, int), "target id"); +} + void SkillHandler::usePos(const int id, const int level, const int x, const int y) const { |