diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/018-2-1/warps.txt | 8 | ||||
-rw-r--r-- | npc/functions/instances.txt | 25 |
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; |