From 66c811e7fc51f67372de620236eee922ebd99527 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 May 2018 19:04:39 +0300 Subject: Add packet CMSG_SKILL_USE_POSITION 0x0af4. --- src/net/eathena/packetsout.inc | 12 ++++++++++++ src/net/eathena/skillhandler.cpp | 6 ++++++ 2 files changed, 18 insertions(+) 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"); + } } } -- cgit v1.2.3-70-g09d2