summaryrefslogtreecommitdiff
path: root/npc/functions/gmbot.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r--npc/functions/gmbot.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index deed0ae33..cb053f14a 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -121,8 +121,8 @@ OnTimer90000:
.@y=45;
break;
}
- .@x = rand(20, 300);
- .@y = rand(20, 300);
+ .@x = rand2(20, 300);
+ .@y = rand2(20, 300);
.@e+=1;
} while (!checknpccell(.mp$, .@x, .@y, cell_chkpass));
if (!checknpccell(.mp$, .@x, .@y, cell_chkpass)) {
@@ -147,7 +147,7 @@ OnTimer90000:
}
// Siege events (req. 300 aggro, 3 users, and 70% chances to begin)
- if ($@MK_AGGRO >= ($GAME_STORYLINE == 2 ? 300 : 500) && .users >= 3 && rand(0,100) < 70 &&
+ if ($@MK_AGGRO >= ($GAME_STORYLINE == 2 ? 300 : 500) && .users >= 3 && rand2(0,100) < 70 &&
is_between(1, 3, $GAME_STORYLINE) && $@MK_THROTTLE < gettimetick(2)){
// Delta handles the compulsory wait time between waves.
// 6 hours normally, 12 hours if the army is in disarray.