summaryrefslogtreecommitdiff
path: root/npc/re/instances/ghost_palace.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-22 00:20:29 +0200
committerGitHub <noreply@github.com>2018-06-22 00:20:29 +0200
commit3e3a0935340a607f6b4a4c6ff193de63e5d69430 (patch)
tree68e1554ea8174c0f63d44659306aad4f1a3fae97 /npc/re/instances/ghost_palace.txt
parentb57232ac29732ff526eca750dee295a871861ed6 (diff)
parent82d5ed8ee5349e0338f1819ecf472efe95523ae9 (diff)
downloadhercules-3e3a0935340a607f6b4a4c6ff193de63e5d69430.tar.gz
hercules-3e3a0935340a607f6b4a4c6ff193de63e5d69430.tar.bz2
hercules-3e3a0935340a607f6b4a4c6ff193de63e5d69430.tar.xz
hercules-3e3a0935340a607f6b4a4c6ff193de63e5d69430.zip
Merge pull request #1924 from Asheraf/instance3
Update Instance generating 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,{