From 82d5ed8ee5349e0338f1819ecf472efe95523ae9 Mon Sep 17 00:00:00 2001 From: Asheraf Date: Tue, 5 Jun 2018 08:11:31 +0000 Subject: Update instance scripts to follow official behaviour --- npc/instances/NydhoggsNest.txt | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'npc/instances/NydhoggsNest.txt') diff --git a/npc/instances/NydhoggsNest.txt b/npc/instances/NydhoggsNest.txt index 46ffdaef3..d39d90cd3 100644 --- a/npc/instances/NydhoggsNest.txt +++ b/npc/instances/NydhoggsNest.txt @@ -128,21 +128,18 @@ nyd_dun02,100,201,3 script Yggdrasil Gatekeeper HIDDEN_NPC,8,8,{ switch (select("Please allow me to enter.", "I want to go in.", "I want to leave.")) { case 1: .@instance = instance_create(.@md_name$, .@party_id); - if (.@instance < 0) { - mes("[Yggdrasil Gatekeeper]"); - mes("The Guardian seems to wish to be alone. I will go in and check, please wait out here."); - close(); + if (.@instance >= 0) { + for (.@i = 1; .@i <= 2; ++.@i) { + if (instance_attachmap(.@i + "@nyd", .@instance) == "") { + mes("[Yggdrasil Gatekeeper]"); + mes("The Guardian seems to wish to be alone. I will go in and check, please wait out here."); + instance_destroy(.@instance); + close(); + } + } + instance_set_timeout(144000, 300, .@instance); + instance_init(.@instance); } - for (.@i = 1; .@i <= 2; ++.@i) { - if (instance_attachmap(.@i + "@nyd", .@instance) == "") - break; - } - if (.@i < 2) { - instance_destroy(.@instance); - close(); - } - instance_set_timeout(144000, 300, .@instance); - instance_init(.@instance); mes("[Yggdrasil Gatekeeper]"); mes("I've recorded your request, are you ready to go inside?"); next(); -- cgit v1.2.3-70-g09d2