summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/captcha.txt12
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) {