summaryrefslogtreecommitdiff
path: root/npc/functions/gmbot.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-08 15:21:33 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-08 15:21:33 -0300
commitd519d52d7acd123c67d8a5e302ce07355a275e46 (patch)
tree3a8049bc58d106ef6a4afb999f8bb4d6eba93bda /npc/functions/gmbot.txt
parent702b72cdfa86ed7a400f5849a3e46d96893c9534 (diff)
downloadserverdata-d519d52d7acd123c67d8a5e302ce07355a275e46.tar.gz
serverdata-d519d52d7acd123c67d8a5e302ce07355a275e46.tar.bz2
serverdata-d519d52d7acd123c67d8a5e302ce07355a275e46.tar.xz
serverdata-d519d52d7acd123c67d8a5e302ce07355a275e46.zip
Randomize functions on MK
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.