From c6d19cbd0fb219722d9045df403955fbc8c7a478 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 3 Jun 2019 09:49:24 -0300 Subject: You can now enter on Sagratha's Boss Room --- npc/015-8/config.txt | 3 ++- npc/015-8/sealedshrine.txt | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) (limited to 'npc/015-8') diff --git a/npc/015-8/config.txt b/npc/015-8/config.txt index a65afe93b..c7c8343d7 100644 --- a/npc/015-8/config.txt +++ b/npc/015-8/config.txt @@ -27,11 +27,12 @@ OnTouch: .@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, .@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); 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; } -- cgit v1.2.3-70-g09d2