summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 19:54:27 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 19:54:27 -0300
commit95fd21c03463017299cd2db343459137609d1b02 (patch)
tree01dc08e8c8f2c836def2aab8f9de5227b2fe0725 /npc
parent3e3704730a574e34bfcfe700a3b9884bc9e07d99 (diff)
downloadserverdata-95fd21c03463017299cd2db343459137609d1b02.tar.gz
serverdata-95fd21c03463017299cd2db343459137609d1b02.tar.bz2
serverdata-95fd21c03463017299cd2db343459137609d1b02.tar.xz
serverdata-95fd21c03463017299cd2db343459137609d1b02.zip
Fix bugs
Diffstat (limited to 'npc')
-rw-r--r--npc/015-8/config.txt18
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;