diff options
-rw-r--r-- | npc/015-8/config.txt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/npc/015-8/config.txt b/npc/015-8/config.txt index c8f19a7f0..895a01ee2 100644 --- a/npc/015-8/config.txt +++ b/npc/015-8/config.txt @@ -24,9 +24,21 @@ OnTouch: mesc l("Return to Sagratha's House?"); if (askyesno() == ASK_YES) { - .@mapn$="sgt1@"+getcharid(0); - warp .@mapn$, 33, 44; - changemusic .@mapn$, "eric_matyas_ghouls.ogg"; + .@q2=getq2(HurnscaldQuest_Sagratha); + // Map name limit: 4 chars (sgt1) + .@mapn$="sgt1@"+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$); + // 20 minutes (1200s) inside, or 5 minutes (300s) outside + instance_set_timeout(1200, 30, .@inst); + instance_init(.@inst); + setq2 HurnscaldQuest_Sagratha, .@inst; + } + warp .@mapn$, 33, 35; + changemusic .@mapn$, "eric_matyas_ghouls.ogg"; } closeclientdialog; close; |