summaryrefslogtreecommitdiff
path: root/npc/re/instances/BangungotHospital.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/BangungotHospital.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/BangungotHospital.txt')
-rw-r--r--npc/re/instances/BangungotHospital.txt26
1 files changed, 12 insertions, 14 deletions
diff --git a/npc/re/instances/BangungotHospital.txt b/npc/re/instances/BangungotHospital.txt
index 9e8e836c4..6972322e1 100644
--- a/npc/re/instances/BangungotHospital.txt
+++ b/npc/re/instances/BangungotHospital.txt
@@ -274,21 +274,19 @@ L_Enter:
switch(select(((getarg(0))?"Prepare to enter the second floor.":""), "Enter the second floor.", "Do not enter.")) {
case 1:
.@instance = instance_create(.@md_name$,getcharid(CHAR_ID_PARTY));
- if (.@instance < 0) {
- mes "[Nurse Maenne]";
- mes "A critical situation has happened.";
- mes "You can't go up to the 2nd floor.";
- close2;
- cutin "",255;
- end;
- }
- if (instance_attachmap("1@ma_h",.@instance) == "") {
- mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
- instance_destroy(.@instance);
- close;
+ if (.@instance >= 0) {
+ if (instance_attachmap("1@ma_h", .@instance) == "") {
+ mes("[Nurse Maenne]");
+ mes("A critical situation has happened.");
+ mes("You can't go up to the 2nd floor.");
+ instance_destroy(.@instance);
+ close2();
+ cutin("", 255);
+ end;
+ }
+ instance_set_timeout(3600, 300, .@instance);
+ instance_init(.@instance);
}
- instance_set_timeout 3600,300,.@instance;
- instance_init(.@instance);
mes "[Nurse Maenne]";
mes "We are preparing to go up";
mes "to the second floor.";