summaryrefslogtreecommitdiff
path: root/npc/015-8/sealedshrine.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/015-8/sealedshrine.txt')
-rw-r--r--npc/015-8/sealedshrine.txt36
1 files changed, 35 insertions, 1 deletions
diff --git a/npc/015-8/sealedshrine.txt b/npc/015-8/sealedshrine.txt
index c356d1408..c892163f1 100644
--- a/npc/015-8/sealedshrine.txt
+++ b/npc/015-8/sealedshrine.txt
@@ -621,8 +621,42 @@ OnInit:
}
// Quest Status 5: Riddle solved, access granted
+ if (.@q == 5) {
+ enable_items();
+ mesc l(".:: The Mouboo Temple ::."), 3;
+ mesc l("WARNING: You are about to enter a HIGH-RISK zone."), 1;
+ mesc l("We advise you to change your equipment now."), 1;
+ if (getmapusers("015-8") > 1)
+ mesc l("THIS IS A SOLO FIGHT, TEAMS ARE NOT ALLOWED INSIDE."), 1;
+ next;
+ disable_items();
+ if (askyesno() == ASK_YES) {
+ closeclientdialog;
+
+ .@q2=getq2(HurnscaldQuest_Sagratha);
+ // Map name limit: 4 chars (sgt1)
+ .@mapn$="sgt1@"+getcharid(0);
+ .@map2$="sgt2@"+getcharid(0);
+ if (!(isinstance(.@q2) && .@q2 != 0)) {
+ .@inst = instance_create("Sagratha House "+getcharid(0), getcharid(3), IOT_CHAR);
+ instance_attachmap("014-5-1", .@inst, false, .@mapn$);
+ //instance_attachmap("015-8", .@inst, false, .@mapn$);
+ instance_attachmap("015-8-1", .@inst, false, .@map2$);
+ // 40 minutes (2400s) inside, or 5 minutes (300s) outside
+ instance_set_timeout(2400, 300, .@inst);
+ instance_init(.@inst);
+ setq2 HurnscaldQuest_Sagratha, .@inst;
+ }
+ warp .@map2$, 50, 78;
+ end;
+ }
+ close;
+ }
+
// Quest Status 6: Boss defeated, no instance needed
- dispbottom "ERROR";
+ if (.@q >= 6) {
+ warp "015-8-1", 50, 78;
+ }
end;
}