From 450643c098c20c0a3d1111b20714cbee844c55cf Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 7 Sep 2018 01:24:47 -0300 Subject: [skip ci] Without this 'end' here, this code is for naught --- npc/functions/gmbot.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'npc/functions') 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; -- cgit v1.2.3-70-g09d2