summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/instances.txt25
1 files changed, 24 insertions, 1 deletions
diff --git a/npc/functions/instances.txt b/npc/functions/instances.txt
index 40a48a0d1..9b07b3e63 100644
--- a/npc/functions/instances.txt
+++ b/npc/functions/instances.txt
@@ -60,11 +60,34 @@ OnInstRestart:
instance_set_timeout(1000000, 1000000, .NIVAL_INSTID);
instance_init(.NIVAL_INSTID);
+
+
+ /* Heroes Hold Main Dungeon */
+ .HHMD_INSTID = instance_create("018-2-2@HHMD1", 0, IOT_NONE);
+ instance_attachmap("018-2-2", .HHMD_INSTID, 0, "018-2-1@No");
+ instance_set_timeout(1000000, 1000000, .HHMD_INSTID);
+ instance_init(.HHMD_INSTID);
+
+ .HHMD_INSTID = instance_create("018-2-2@HHMD2", 0, IOT_NONE);
+ instance_attachmap("018-2-2", .HHMD_INSTID, 0, "018-2-1@In");
+ instance_set_timeout(1000000, 1000000, .HHMD_INSTID);
+ instance_init(.HHMD_INSTID);
+
+ .HHMD_INSTID = instance_create("018-2-2@HHMD4", 0, IOT_NONE);
+ instance_attachmap("018-2-2", .HHMD_INSTID, 0, "018-2-1@Ad");
+ instance_set_timeout(1000000, 1000000, .HHMD_INSTID);
+ instance_init(.HHMD_INSTID);
+
+ .HHMD_INSTID = instance_create("018-2-2@HHMD8", 0, IOT_NONE);
+ instance_attachmap("018-2-2", .HHMD_INSTID, 0, "018-2-1@Ex");
+ instance_set_timeout(1000000, 1000000, .HHMD_INSTID);
+ instance_init(.HHMD_INSTID);
+
end;
OnMinute18:
OnMinute47:
- if (!isinstance(.HURNS_INSTID) && !isinstance(.NIVAL_INSTID))
+ if (!isinstance(.HURNS_INSTID) || !isinstance(.NIVAL_INSTID) || !isinstance(.HHMD_INSTID))
donpcevent("#GlobalInstanceCore::OnInstRestart");
end;