summaryrefslogtreecommitdiff
path: root/npc/014-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-03 09:53:22 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-03 09:53:22 -0300
commit412d02f14c6ca1f903f75ba14b04422114a02fad (patch)
treef226add0b043d69612bf516acca694d6864f59b5 /npc/014-5
parentc6d19cbd0fb219722d9045df403955fbc8c7a478 (diff)
downloadserverdata-412d02f14c6ca1f903f75ba14b04422114a02fad.tar.gz
serverdata-412d02f14c6ca1f903f75ba14b04422114a02fad.tar.bz2
serverdata-412d02f14c6ca1f903f75ba14b04422114a02fad.tar.xz
serverdata-412d02f14c6ca1f903f75ba14b04422114a02fad.zip
Rewrite how saggy instance are built so they are unified
Diffstat (limited to 'npc/014-5')
-rw-r--r--npc/014-5/sagratha.txt19
1 files changed, 2 insertions, 17 deletions
diff --git a/npc/014-5/sagratha.txt b/npc/014-5/sagratha.txt
index 455ea04c8..d06a3e9b0 100644
--- a/npc/014-5/sagratha.txt
+++ b/npc/014-5/sagratha.txt
@@ -124,23 +124,8 @@ L_Open:
//addmapmask instance_mapname("014-5-1"), 1;
changemusic "014-5-1", "eric_matyas_ghouls.ogg";
*/
- .@q2=getq2(HurnscaldQuest_Sagratha);
- // Map name limit: 4 chars (sgt1)
- .@mapn$="sgt1@"+getcharid(0);
- .@map2$="sgt2@"+getcharid(0);
- if (isinstance(.@q2) && .@q2 != 0) {
- warp .@mapn$, 33, 44;
- } else {
- .@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 .@mapn$, 33, 44;
- }
+ .@mapn$=SaggyInstCheck();
+ warp .@mapn$, 33, 44;
changemusic .@mapn$, "eric_matyas_ghouls.ogg";
closeclientdialog;
close;