summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-19 02:26:21 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-19 02:26:21 -0200
commit37184fc6a3f8a6f3ed0c8c6f90b1438330d6d18b (patch)
tree7f3b20013a2b80faea9d2a77d024fc23cd8cd594
parent3363d32d83c8c5ffc95cca80f282d520029af4fa (diff)
downloadserverdata-37184fc6a3f8a6f3ed0c8c6f90b1438330d6d18b.tar.gz
serverdata-37184fc6a3f8a6f3ed0c8c6f90b1438330d6d18b.tar.bz2
serverdata-37184fc6a3f8a6f3ed0c8c6f90b1438330d6d18b.tar.xz
serverdata-37184fc6a3f8a6f3ed0c8c6f90b1438330d6d18b.zip
Instances for Heroes Hold
-rw-r--r--npc/018-2-1/warps.txt8
-rw-r--r--npc/functions/instances.txt25
2 files changed, 28 insertions, 5 deletions
diff --git a/npc/018-2-1/warps.txt b/npc/018-2-1/warps.txt
index d040cba95..4ea412232 100644
--- a/npc/018-2-1/warps.txt
+++ b/npc/018-2-1/warps.txt
@@ -44,28 +44,28 @@ OnTouch:
case 2:
@HH_LEVEL=HH_NOVICE;
@HH_TIMER=0;
- warp "018-2-2", 37, 196;
+ warp "018-2-2@No", 37, 196;
addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
closedialog;
break;
case 3:
@HH_LEVEL=HH_INTERMEDIARY;
@HH_TIMER=0;
- warp "018-2-2", 204, 40;
+ warp "018-2-2@In", 204, 40;
addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
closedialog;
break;
case 4:
@HH_LEVEL=HH_ADVANCED;
@HH_TIMER=0;
- warp "018-2-2", 209, 178;
+ warp "018-2-2@Ad", 209, 178;
addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
closedialog;
break;
case 5:
@HH_LEVEL=HH_EXPERT;
@HH_TIMER=0;
- warp "018-2-2", 51, 40;
+ warp "018-2-2@Ex", 51, 40;
addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
closedialog;
break;
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;