summaryrefslogtreecommitdiff
path: root/npc/functions/mkbot.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/mkbot.txt')
-rw-r--r--npc/functions/mkbot.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/mkbot.txt b/npc/functions/mkbot.txt
index 1f9be0dad..4304f8f0a 100644
--- a/npc/functions/mkbot.txt
+++ b/npc/functions/mkbot.txt
@@ -132,6 +132,12 @@ OnTimer90000:
if (!checknpccell(.mp$, .@x, .@y, cell_chkpass)) {
Exception("mk.bot runtime error: GM_ERR_128 highlight @Jesusalva", RB_DEBUGMES|RB_IRCBROADCAST); .mp$="boss"; .@x=45; .@y=45;
}
+
+ // Monster King will not warp around for sightseeing if he is threatened
+ if ($GAME_STORYLINE > 2 && $@MK_AGGRO < 150) {
+ .mp$="boss";.@x=45;.@y=45;
+ }
+
unitwarp($@MK, .mp$, .@x, .@y);
sleep(50); // For some reason or other, adding sleep(norid) and sleep2(rid).
.nearby=getusers(8);