summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/gmbot.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index f94f6b5b7..39bf5b3d6 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -121,9 +121,15 @@ OnTimer62000:
if (.mp$ == "011-1")
disablenpc "Mana Stone";
+ // Debug markers
+ if ($@GM_OVERRIDE)
+ debugmes "Monster King (bot): "+.mp$+" ("+.@x+", "+.@y+")";
+
// If too few players are online, we don't need an event AT ALL!
- if (.users < rand(2,4))
+ if (.users < rand(2,4)) {
initnpctimer;
+ end;
+ }
// Decide if we should have an event here
if (.nearby > 1 && $@MK_AGGRO >= rand(0,100)){
@@ -140,10 +146,6 @@ OnTimer62000:
$@MK_AGGRO=0;
}
- // Debug markers
- if ($@GM_OVERRIDE)
- debugmes "Monster King (bot): "+.mp$+" ("+.@x+", "+.@y+")";
-
// We're done, restart loop timer
initnpctimer;
end;