summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-18 19:04:39 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-18 19:04:39 +0300
commit66c811e7fc51f67372de620236eee922ebd99527 (patch)
tree6a3c776223461bd589671d1aa7101dd9b035ce62
parent113e5e803d49d9b38b8031d46b7df5af660c4bd1 (diff)
downloadplus-66c811e7fc51f67372de620236eee922ebd99527.tar.gz
plus-66c811e7fc51f67372de620236eee922ebd99527.tar.bz2
plus-66c811e7fc51f67372de620236eee922ebd99527.tar.xz
plus-66c811e7fc51f67372de620236eee922ebd99527.zip
Add packet CMSG_SKILL_USE_POSITION 0x0af4.
-rw-r--r--src/net/eathena/packetsout.inc12
-rw-r--r--src/net/eathena/skillhandler.cpp6
2 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index b13f6874a..ef9ce6c14 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -1339,6 +1339,18 @@ if (packetVersion >= 20170419)
packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x0ac1, 26, clif->pRodexRefreshMaillist);
}
+// zero 20180131
+if (packetVersionZero >= 20180131)
+{
+ packet(CMSG_SKILL_USE_POSITION, 0x0af4, 11, clif->pUseSkillToPos);
+}
+
+// 20180207
+if (packetVersion >= 20180207)
+{
+ packet(CMSG_SKILL_USE_POSITION, 0x0af4, 11, clif->pUseSkillToPos);
+}
+
// re 20180307
if (packetVersionRe >= 20180307)
{
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 3eb843933..3c9e7e158 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -29,6 +29,7 @@
#include "debug.h"
extern int packetVersion;
+extern int packetVersionZero;
namespace EAthena
{
@@ -76,6 +77,11 @@ void SkillHandler::usePos(const int id, const int level,
outMsg.writeInt16(CAST_S16(id), "skill id");
outMsg.writeInt16(CAST_S16(x), "x");
outMsg.writeInt16(CAST_S16(y), "y");
+ if (packetVersionZero >= 20180131 ||
+ packetVersion >= 20180207)
+ {
+ outMsg.writeInt8(0, "unknown");
+ }
}
}