summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-23 17:43:13 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-23 17:43:13 -0300
commit6b48f5777363ccd506591e79bc03c6763d9de082 (patch)
tree781c8852177f7697d4b84106ec9a7e4cf0556d20 /npc/functions
parent9196fc6074b2c42f189c617062c618135f27c028 (diff)
downloadserverdata-6b48f5777363ccd506591e79bc03c6763d9de082.tar.gz
serverdata-6b48f5777363ccd506591e79bc03c6763d9de082.tar.bz2
serverdata-6b48f5777363ccd506591e79bc03c6763d9de082.tar.xz
serverdata-6b48f5777363ccd506591e79bc03c6763d9de082.zip
Prevent Monster King from sightseeing when he is not asked to
Diffstat (limited to 'npc/functions')
-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);