summaryrefslogtreecommitdiff
path: root/npc/functions/mkbot.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-26 18:26:54 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-26 18:26:54 -0300
commit6d1e277e6c9ea2b2f1f65c10beb03c19a66d34cb (patch)
treec9127cce5b64b8db934697a580399875d919efe7 /npc/functions/mkbot.txt
parentf74f5f1e435f0a83e2d94ee92ed321096e2886e8 (diff)
downloadserverdata-6d1e277e6c9ea2b2f1f65c10beb03c19a66d34cb.tar.gz
serverdata-6d1e277e6c9ea2b2f1f65c10beb03c19a66d34cb.tar.bz2
serverdata-6d1e277e6c9ea2b2f1f65c10beb03c19a66d34cb.tar.xz
serverdata-6d1e277e6c9ea2b2f1f65c10beb03c19a66d34cb.zip
Replace the sieges after Monster King is dead
Diffstat (limited to 'npc/functions/mkbot.txt')
-rw-r--r--npc/functions/mkbot.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/functions/mkbot.txt b/npc/functions/mkbot.txt
index 80632f383..7709720f0 100644
--- a/npc/functions/mkbot.txt
+++ b/npc/functions/mkbot.txt
@@ -72,6 +72,11 @@ OnInit:
.cid=150002;
// Constants
+ // This script is superseded, so no initialization is required.
+ // (Sieges and Personal Sieges no longer happen after Monster King dies)
+ if ($GAME_STORYLINE >= 5)
+ end;
+
// We should jump straight to loop (it runs every 90 seconds)
OnTimer90000:
// Regenerate some data, and kill spurious mobs
@@ -117,7 +122,11 @@ OnTimer90000:
$GAME_STORYLINE >= 5) {
if (.mp$ != "boss")
unitwarp($@MK, "boss", 45, 45);
- initnpctimer;
+ // Do not leave orphan timers
+ if ($GAME_STORYLINE >= 5)
+ stopnpctimer;
+ else
+ initnpctimer;
end;
}