From 6b48f5777363ccd506591e79bc03c6763d9de082 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 23 May 2020 17:43:13 -0300 Subject: Prevent Monster King from sightseeing when he is not asked to --- npc/functions/mkbot.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc') 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); -- cgit v1.2.3-60-g2f50