diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-05-12 22:05:59 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-05-12 22:05:59 -0300 |
commit | f423d84c60df2be041ed1516cb33f4cfef8c8578 (patch) | |
tree | 0ae456dca2ec2138f1b335b602221a3786e31370 | |
parent | cde55b918e45ec328afc7a499589b7ec6e753bf6 (diff) | |
download | serverdata-f423d84c60df2be041ed1516cb33f4cfef8c8578.tar.gz serverdata-f423d84c60df2be041ed1516cb33f4cfef8c8578.tar.bz2 serverdata-f423d84c60df2be041ed1516cb33f4cfef8c8578.tar.xz serverdata-f423d84c60df2be041ed1516cb33f4cfef8c8578.zip |
Add Captcha Flag 8 - skip during events
-rw-r--r-- | npc/functions/captcha.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/functions/captcha.txt b/npc/functions/captcha.txt index 42a588ef2..dc4cb8147 100644 --- a/npc/functions/captcha.txt +++ b/npc/functions/captcha.txt @@ -16,6 +16,7 @@ // 1 - Captcha Enabled (Banhammer) // 2 - Display warnings (@captcha_lastwarning/@captcha_lastwarningt) // 4 - Botter Syndrome enabled +// 8 - Disable during events // CaptchName, names the number function script CaptchName { @@ -157,10 +158,13 @@ OnTimer5000: end; } - // TODO: Botter syndrome affect players whom don't talk to NPCs in a while - // However, if checkidle() is high (truly AFK), this is reset - // Once inflicted, sort a random town/NPC which you need to talk for dispel - // TODO: Configure it on SC to persist death and logout + // Event in progress and flag to skip is set + if ($CAPTCHA & 8) { + if ($@MK_SCENE || $@GM_EVENT) { + initnpctimer; + end; + } + } // If we're using the banhammer, handle the target if ($CAPTCHA & 1) { |