summaryrefslogtreecommitdiff
path: root/npc/re/instances/ghost_palace.txt
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-06-05 08:11:31 +0000
committerAsheraf <acheraf1998@gmail.com>2018-06-05 08:11:31 +0000
commit82d5ed8ee5349e0338f1819ecf472efe95523ae9 (patch)
tree60ceaca119c0524d65e96b9e5c7406bd477903b6 /npc/re/instances/ghost_palace.txt
parent97dc1ef1695404ea5276813616a17653439ede46 (diff)
downloadhercules-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/ghost_palace.txt')
-rw-r--r--npc/re/instances/ghost_palace.txt29
1 files changed, 13 insertions, 16 deletions
diff --git a/npc/re/instances/ghost_palace.txt b/npc/re/instances/ghost_palace.txt
index e4ca12f99..3e708dc57 100644
--- a/npc/re/instances/ghost_palace.txt
+++ b/npc/re/instances/ghost_palace.txt
@@ -91,27 +91,24 @@ dali02,44,129,5 script Unpleasent Royal Guard 4_M_SAKRAYROYAL,{
.@instance = instance_create(_("Ghost Palace"), .@party_id);
.@p_name$ = getpartyname(.@party_id);
.@md_name$ = _("Ghost Palace");
- 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_attachmap("1@spa", .@instance) != "") {
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@spa", .@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(3600, 300, .@instance);
instance_init(.@instance);
if (!questprogress(1260))
setquest(1260);
- mes("[Unpleasent Royal Guard]");
- mes("Thank You..\r"
- "I will open the secret passage to ^0000FFGhost Palace.^000000\r"
- "Please be ready!");
- close();
- } else {
- instance_destroy(.@instance);
- mesf("^0000FF%s^000000 - Reservation Failed!", .@md_name$);
- close();
}
+ mes("[Unpleasent Royal Guard]");
+ mes("Thank You..\r"
+ "I will open the secret passage to ^0000FFGhost Palace.^000000\r"
+ "Please be ready!");
+ close();
}
dali02,41,134,0 script Interdimensional Device::gpportal PORTAL,{