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/re/instances/MalangdoCulvert.txt | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'npc/re/instances/MalangdoCulvert.txt') diff --git a/npc/re/instances/MalangdoCulvert.txt b/npc/re/instances/MalangdoCulvert.txt index 2e51f0fd5..d61509511 100644 --- a/npc/re/instances/MalangdoCulvert.txt +++ b/npc/re/instances/MalangdoCulvert.txt @@ -433,20 +433,19 @@ mal_in01,160,34,4 script Missing, the Cleaner 4_CAT_SAILOR2,{ close(); case 2: .@instance = instance_create(.@md_name$, .@party_id); - if (.@instance < 0) { - mesf("Party name: %s", getpartyname(.@party_id)); - mesf("Party leader: %s", strcharinfo(PC_NAME)); - mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$); - close(); + if (.@instance >= 0) { + for (.@i = 1; .@i <= 2; .@i++) { + if (instance_attachmap(.@i + "@pump", .@instance) == "") { + mesf("Party name: %s", getpartyname(.@party_id)); + mesf("Party leader: %s", strcharinfo(PC_NAME)); + mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$); + instance_destroy(.@instance); + close(); + } + } + instance_set_timeout(3600, 300, .@instance); + instance_init(.@instance); } - if (instance_attachmap("1@pump", .@instance) == "" || instance_attachmap("2@pump", .@instance) == "") { - mesf("^0000ff%s^000000 - Reservation Failed!", .@md_name$); - instance_destroy(.@instance); - close(); - } - instance_set_timeout(3600, 300, .@instance); - instance_init(.@instance); - mesf("^3333FF%s^000000 - Reserving", .@md_name$); mes("After making the reservation, you"); mes("have to select Enter the Culvert."); -- cgit v1.2.3-70-g09d2