From d519d52d7acd123c67d8a5e302ce07355a275e46 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 8 Sep 2019 15:21:33 -0300 Subject: Randomize functions on MK --- npc/functions/gmbot.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc') 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. -- cgit v1.2.3-70-g09d2