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/re/instances/octopus_cave.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/re/instances/octopus_cave.txt')
-rw-r--r-- | npc/re/instances/octopus_cave.txt | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/npc/re/instances/octopus_cave.txt b/npc/re/instances/octopus_cave.txt index e4d8d4357..4c964072a 100644 --- a/npc/re/instances/octopus_cave.txt +++ b/npc/re/instances/octopus_cave.txt @@ -85,22 +85,19 @@ mal_dun01,151,235,5 script Starfish 4_ASTER,{ erasequest(4197); if (countitem(Octopus_Hunt_Stick)) { .@instance = instance_create(.@md_name$, .@party_id); - if (.@instance < 0) { - mes("[Starfish]"); - mesf("Party name is... %s.", getpartyname(.@party_id)); - mesf("Party leader is... %s.", strcharinfo(PC_NAME)); - mesf("^0000FF%s^000000, I cannot open now, hehe.", .@md_name$); - mes("Now is not the time, please wait."); - close(); + if (.@instance >= 0) { + if (instance_attachmap("1@cash", .@instance) == "") { + mes("[Starfish]"); + mesf("Party name is... %s.", getpartyname(.@party_id)); + mesf("Party leader is... %s.", strcharinfo(PC_NAME)); + mesf("^0000FF%s^000000, I cannot open now, hehe.", .@md_name$); + mes("Now is not the time, please wait."); + instance_destroy(.@instance); + close(); + } + instance_set_timeout(3600, 300, .@instance); + instance_init(.@instance); } - if (instance_attachmap("1@cash", .@instance) == "") { - mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$); - instance_destroy(.@instance); - close(); - } - instance_set_timeout(3600, 300, .@instance); - instance_init(.@instance); - mes("[Starfish]"); mesf("I will open the gate for a while to ^0000FF%s^000000.", .@md_name$); mes("Please catch that pervert octopus, and come back with it sticked to the pick, hehe."); |