From b22cf43148028f4e113607ccd500dac4a012edcd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 21 Dec 2018 15:35:53 -0200 Subject: Rate Limiting: Protect Fortune and Strength Statues from abusers (abusers using gumi's handbook manual of how to mess up an Evol2 Server) --- npc/003-0-1/statues.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'npc') diff --git a/npc/003-0-1/statues.txt b/npc/003-0-1/statues.txt index 436348f52..19c81eb3c 100644 --- a/npc/003-0-1/statues.txt +++ b/npc/003-0-1/statues.txt @@ -5,6 +5,9 @@ // These statues are of great honor to whoever have their name written in them! 003-0-1,63,30,0 script Fortune Statue NPC_STATUE_BANKER,{ + if (.rate_limit >= gettimetick(2)) + end; + .rate_limit=gettimetick(2); HallOfFortune(); close; @@ -12,10 +15,14 @@ OnInit: .sex = G_OTHER; .distance = 4; + .rate_limit=0; end; } 003-0-1,53,30,0 script Strength Statue NPC_STATUE_GUARD,{ + if (.rate_limit >= gettimetick(2)) + end; + .rate_limit=gettimetick(2); HallOfLevel(); close; @@ -23,6 +30,7 @@ OnInit: OnInit: .sex = G_OTHER; .distance = 4; + .rate_limit=0; end; } -- cgit v1.2.3-60-g2f50