summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-29 22:17:06 +0300
committerAndrei Karas <akaras@inbox.ru>2019-04-07 22:38:35 +0300
commit0a5ee140c74989d5fb2cbc9a22150ff66bbcfb07 (patch)
tree642ca0bab8388ed480c4e78e9ced7d631f6c10fc /src/map/clif.c
parent83a26970a7e314872a360bac8d4c5408d5120c51 (diff)
downloadhercules-0a5ee140c74989d5fb2cbc9a22150ff66bbcfb07.tar.gz
hercules-0a5ee140c74989d5fb2cbc9a22150ff66bbcfb07.tar.bz2
hercules-0a5ee140c74989d5fb2cbc9a22150ff66bbcfb07.tar.xz
hercules-0a5ee140c74989d5fb2cbc9a22150ff66bbcfb07.zip
Add chat command /resetcooltime
Add packet CZ_COOLDOWN_RESET.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 85e1a192b..605362fc5 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -22193,6 +22193,14 @@ static int clif_pingTimerSub(struct map_session_data *sd, va_list ap)
return 0;
}
+static void clif_parse_ResetCooldown(int fd, struct map_session_data *sd) __attribute__((nonnull (2)));
+static void clif_parse_ResetCooldown(int fd, struct map_session_data *sd)
+{
+ char cmd[15];
+ sprintf(cmd,"%ccddebug reset", atcommand->at_symbol);
+ atcommand->exec(fd, sd, cmd, true);
+}
+
/*==========================================
* Main client packet processing function
*------------------------------------------*/
@@ -23386,4 +23394,5 @@ void clif_defaults(void)
clif->ping = clif_ping;
clif->pingTimer = clif_pingTimer;
clif->pingTimerSub = clif_pingTimerSub;
+ clif->pResetCooldown = clif_parse_ResetCooldown;
}