diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-21 15:35:53 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-21 15:35:53 -0200 |
commit | b22cf43148028f4e113607ccd500dac4a012edcd (patch) | |
tree | 52b9c7893113b5fcdef59dd8a335b9a9f9f92b11 /npc | |
parent | 7a47b2aa26342c120381cb8e6f64a080b759314a (diff) | |
download | serverdata-b22cf43148028f4e113607ccd500dac4a012edcd.tar.gz serverdata-b22cf43148028f4e113607ccd500dac4a012edcd.tar.bz2 serverdata-b22cf43148028f4e113607ccd500dac4a012edcd.tar.xz serverdata-b22cf43148028f4e113607ccd500dac4a012edcd.zip |
Rate Limiting: Protect Fortune and Strength Statues from abusers
(abusers using gumi's handbook manual of how to mess up an Evol2 Server)
Diffstat (limited to 'npc')
-rw-r--r-- | npc/003-0-1/statues.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |