diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-03-29 22:17:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-04-07 22:38:35 +0300 |
commit | 0a5ee140c74989d5fb2cbc9a22150ff66bbcfb07 (patch) | |
tree | 642ca0bab8388ed480c4e78e9ced7d631f6c10fc /src/map/clif.c | |
parent | 83a26970a7e314872a360bac8d4c5408d5120c51 (diff) | |
download | hercules-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.c | 9 |
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; } |