From d9bddb94ac69ca93ee2e92e0f814f41158d4724c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Mar 2021 18:11:41 -0300 Subject: Enforce validatepin() to take a while to respond to avoid its abuse. --- npc/functions/main.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npc/functions/main.txt b/npc/functions/main.txt index e0b1c2ac7..6bcc6d515 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -412,6 +412,8 @@ function script validatepin { atcommand "@kick "+strcharinfo(0); return 0; } + // Enforce some cooldown to prevent an eventual exploit/abuse + sleep2(rand2(150, 400)); mesc l("Thanks, @@. We just wanted to be sure it was you.", .@value$[0]); mes ""; return true; -- cgit v1.2.3-70-g09d2