diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-09-07 01:24:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-09-07 01:24:47 -0300 |
commit | 450643c098c20c0a3d1111b20714cbee844c55cf (patch) | |
tree | 8aba58629ee212e4a6a073cebf9310ccaad6a513 | |
parent | 370113bc961a8da71e9d4a208b07717cc362b458 (diff) | |
download | serverdata-450643c098c20c0a3d1111b20714cbee844c55cf.tar.gz serverdata-450643c098c20c0a3d1111b20714cbee844c55cf.tar.bz2 serverdata-450643c098c20c0a3d1111b20714cbee844c55cf.tar.xz serverdata-450643c098c20c0a3d1111b20714cbee844c55cf.zip |
[skip ci] Without this 'end' here, this code is for naught
-rw-r--r-- | npc/functions/gmbot.txt | 12 |
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; |