diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-01 20:03:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-12 23:24:46 +0300 |
commit | d50e10c533cb43d94abf27c7fbb8b5e6c73ce01f (patch) | |
tree | 3943e7cd5ea6c528726430df2295ebd90399aa1c /src/map/clif.c | |
parent | 22c267cd1256902d24417cbc0cd5689bc7bad60d (diff) | |
download | hercules-d50e10c533cb43d94abf27c7fbb8b5e6c73ce01f.tar.gz hercules-d50e10c533cb43d94abf27c7fbb8b5e6c73ce01f.tar.bz2 hercules-d50e10c533cb43d94abf27c7fbb8b5e6c73ce01f.tar.xz hercules-d50e10c533cb43d94abf27c7fbb8b5e6c73ce01f.zip |
Add packet CZ_STOP_USE_SKILL
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index a01b9f7c1..362264226 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -12126,6 +12126,17 @@ static void clif_parse_startUseSkillToId(int fd, struct map_session_data *sd) #endif } +static void clif_parse_stopUseSkillToId(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); +static void clif_parse_stopUseSkillToId(int fd, struct map_session_data *sd) +{ +#if PACKETVER_MAIN_NUM >= 20181002 || PACKETVER_RE_NUM >= 20181002 || PACKETVER_ZERO_NUM >= 20181010 + const struct PACKET_CZ_STOP_USE_SKILL *p = RFIFOP(fd, 0); + if (p->skillId != GC_ROLLINGCUTTER) { + ShowWarning("Packet CZ_STOP_USE_SKILL usage for unknown skill: %d\n", p->skillId); + } +#endif +} + /*========================================== * Client tells server he'd like to use AoE skill id 'skill_id' of level 'skill_lv' on 'x','y' location *------------------------------------------*/ @@ -22963,6 +22974,7 @@ void clif_defaults(void) clif->pUseSkillToId_homun = clif_parse_UseSkillToId_homun; clif->pUseSkillToId_mercenary = clif_parse_UseSkillToId_mercenary; clif->pStartUseSkillToId = clif_parse_startUseSkillToId; + clif->pStopUseSkillToId = clif_parse_stopUseSkillToId; clif->useSkillToIdReal = clif_useSkillToIdReal; clif->pUseSkillToPos = clif_parse_UseSkillToPos; clif->pUseSkillToPosSub = clif_parse_UseSkillToPosSub; |