diff options
author | Asheraf <acheraf1998@gmail.com> | 2018-06-05 08:11:31 +0000 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-06-05 08:11:31 +0000 |
commit | 82d5ed8ee5349e0338f1819ecf472efe95523ae9 (patch) | |
tree | 60ceaca119c0524d65e96b9e5c7406bd477903b6 /npc/instances/NydhoggsNest.txt | |
parent | 97dc1ef1695404ea5276813616a17653439ede46 (diff) | |
download | hercules-82d5ed8ee5349e0338f1819ecf472efe95523ae9.tar.gz hercules-82d5ed8ee5349e0338f1819ecf472efe95523ae9.tar.bz2 hercules-82d5ed8ee5349e0338f1819ecf472efe95523ae9.tar.xz hercules-82d5ed8ee5349e0338f1819ecf472efe95523ae9.zip |
Update instance scripts to follow official behaviour
Diffstat (limited to 'npc/instances/NydhoggsNest.txt')
-rw-r--r-- | npc/instances/NydhoggsNest.txt | 25 |
1 files changed, 11 insertions, 14 deletions
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(); |