summaryrefslogtreecommitdiff
path: root/npc/re/instances/BangungotHospital.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/BangungotHospital.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/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.";