diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-18 01:26:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-18 01:26:39 -0300 |
commit | 960dee60bbd65262c951bfed1f8eea067d26a35f (patch) | |
tree | 653d0a3277ebbd4eceb9f093e2fdc364b1515e50 /npc/functions/gmbot.txt | |
parent | 7e6b82f9ee252e862e551493dc0836b0d98047f0 (diff) | |
download | serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.gz serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.bz2 serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.xz serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.zip |
Minor improvements and corrections. This allows sieges to keep happening until
the Fortress is sieged itself.
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r-- | npc/functions/gmbot.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt index 2fc06044a..8ad416cce 100644 --- a/npc/functions/gmbot.txt +++ b/npc/functions/gmbot.txt @@ -141,14 +141,14 @@ OnTimer90000: 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 < rand2(2,4)) { initnpctimer; end; } // Siege events (req. 300 aggro, 3 users, and 70% chances to begin) if ($@MK_AGGRO >= 300 && .users >= 3 && rand(0,100) < 70 && - $GAME_STORYLINE == 2 && $@MK_THROTTLE < gettimetick(2)){ + is_between(1, 3, $GAME_STORYLINE) && $@MK_THROTTLE < gettimetick(2)){ // Tulimshar if (.mp$ ~= "003-*") { announce ("Monster King: I smell humans! Humans must die!"), bc_map|bc_npc; |