summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-24 13:26:14 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-24 13:26:14 -0400
commit96a7429f80fe28e952b7b95afd8e37c0ebc8544a (patch)
tree2c0e6f606a3c89f5c1f58021caee9eec0dde55ed /world/map/npc/functions
parentcab5e80475f0fa1370b8587c519bb6b6b7c6190a (diff)
parent95e60123d75ca265c0c689fce88e82654d9fbb5a (diff)
downloadserverdata-96a7429f80fe28e952b7b95afd8e37c0ebc8544a.tar.gz
serverdata-96a7429f80fe28e952b7b95afd8e37c0ebc8544a.tar.bz2
serverdata-96a7429f80fe28e952b7b95afd8e37c0ebc8544a.tar.xz
serverdata-96a7429f80fe28e952b7b95afd8e37c0ebc8544a.zip
Merge pull request #483 from mekolat/rate-abuse
prevent magic rate abuse
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/global_event_handler.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/world/map/npc/functions/global_event_handler.txt b/world/map/npc/functions/global_event_handler.txt
index 4d453c83..ad1ba65c 100644
--- a/world/map/npc/functions/global_event_handler.txt
+++ b/world/map/npc/functions/global_event_handler.txt
@@ -13,6 +13,7 @@ OnPCLoginEvent:
callfunc "ClearVariables"; // removes / converts old variables
callfunc "DisplayMOTD"; // send the motd to the client, if enabled
callfunc "getBroadcast"; // get the scheduled broadcast, if any
+ addtimer 0, "Magic Timer::OnLogin"; // prevent cast rate abuse
// add more here
set @login_event, 2;
end;
@@ -29,7 +30,7 @@ OnPCDieEvent:
callfunc "fightclub_GoBack"; // this used by the battle master
//callfunc "fightclub_event_die"; // this is used by the 1v1 arena
set @necromancer, 0;
- set @_M_BLOCK, 0; // reset magic block on death
+ addtimer 0, "Magic Timer::OnClear"; // reset magic block on death
set @killerrid, 0; // reset killer rid
end;