diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-05-16 21:56:04 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-05-16 21:56:04 -0300 |
commit | 3b2ce848eeaca9f3f21aa477031ad5386a9c7228 (patch) | |
tree | 39bad04623ecd4e5a1e312ae89ef792081d30d72 | |
parent | 5dc623a031a21195c6f28b78e1b412a2bc730217 (diff) | |
download | serverdata-3b2ce848eeaca9f3f21aa477031ad5386a9c7228.tar.gz serverdata-3b2ce848eeaca9f3f21aa477031ad5386a9c7228.tar.bz2 serverdata-3b2ce848eeaca9f3f21aa477031ad5386a9c7228.tar.xz serverdata-3b2ce848eeaca9f3f21aa477031ad5386a9c7228.zip |
Reduce the botcheck intensity
-rw-r--r-- | npc/functions/captcha.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/npc/functions/captcha.txt b/npc/functions/captcha.txt index 1b7595230..1e886db11 100644 --- a/npc/functions/captcha.txt +++ b/npc/functions/captcha.txt @@ -159,8 +159,8 @@ OnTimer800000: initnpctimer; end; -// Pick a random target for captcha checks, which happens every 10 seconds -OnTimer10000: +// Pick a random target for captcha checks, which happens every 12 seconds +OnTimer12000: // Script disabled by admins if (!$CAPTCHA) { initnpctimer; @@ -181,12 +181,13 @@ OnTimer10000: } // Maybe we will conduct a captcha - if (rand2(14) < 3 || $@GM_OVERRIDE) { + if (rand2(28) < 3 || $@GM_OVERRIDE) { // This can be slow, beware .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC); + array_shuffle(.@players); for (.@i = 0; .@i < .@c; .@i++) { - // Too lazy - if (rand2(100) > 5) + // Too lazy to botcheck you today (check chance = 3%) + if (rand2(100) > 3) continue; // Okay, lets do it |