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/EndlessTower.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/EndlessTower.txt')
-rw-r--r-- | npc/instances/EndlessTower.txt | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt index dc60ce766..2964f7e2a 100644 --- a/npc/instances/EndlessTower.txt +++ b/npc/instances/EndlessTower.txt @@ -220,23 +220,21 @@ e_tower,81,105,0 script Tower Protection Stone 2_MONEMUS,{ switch (select(.@str$, "Enter the Dungeon", "Return to Alberta", "Cancel")) { case 1: .@instance = instance_create(.@md_name$, .@party_id); - if (.@instance < 0) { - mesf("Party Name: %s", .@p_name$); - mesf("Party Leader: %s", strcharinfo(PC_NAME)); - mesf("^0000ff%s ^000000- Reservation Failed!", .@md_name$); - close(); + if (.@instance >= 0) { + for (.@i = 1; .@i <= 6; ++.@i) { + if (instance_attachmap(.@i + "@tower", .@instance) == "") { + mesf("Party Name: %s", .@p_name$); + mesf("Party Leader: %s", strcharinfo(PC_NAME)); + mesf("^0000ff%s ^000000- Reservation Failed!", .@md_name$); + instance_destroy(.@instance); + close(); + } + } + instance_set_timeout(14400, 300, .@instance); + instance_init(.@instance); } mesf("^0000ff%s^000000 - Try to reserve", .@md_name$); mes("After making a reservation, you have to talk to NPC behind and select the menu 'Enter the Dungeon' to enter the dungeon."); - for (.@i = 1; .@i <= 6; ++.@i) { - if (instance_attachmap(.@i + "@tower", .@instance) == "") { - mesf("^0000ff%s ^000000- Reservation Failed!", .@md_name$); - instance_destroy(.@instance); - close(); - } - } - instance_set_timeout(14400, 300, .@instance); - instance_init(.@instance); close(); case 2: callsub(L_Enter, 0, 1, .@md_name$, .@p_name$); |