summaryrefslogtreecommitdiff
path: root/npc/001-2-32/doors.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-17 05:08:35 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-17 05:08:35 -0300
commit654d54d42079e21ac0541cb1e5f28c08cc935d5d (patch)
treeced30475ba31099de02627b57fb264958193d70d /npc/001-2-32/doors.txt
parent3cb4b0171536a04e177d823213a1aff51ab56f8d (diff)
parent4e242e64460a5548b77d512f317a8cd66967a95f (diff)
downloadserverdata-kfahr.tar.gz
serverdata-kfahr.tar.bz2
serverdata-kfahr.tar.xz
serverdata-kfahr.zip
Merge branch 'master' into kfahrkfahr
Diffstat (limited to 'npc/001-2-32/doors.txt')
-rw-r--r--npc/001-2-32/doors.txt23
1 files changed, 19 insertions, 4 deletions
diff --git a/npc/001-2-32/doors.txt b/npc/001-2-32/doors.txt
index ba33200f..828366d2 100644
--- a/npc/001-2-32/doors.txt
+++ b/npc/001-2-32/doors.txt
@@ -1,23 +1,38 @@
// Evol scripts.
// Author:
// Reid
+// Jesusalva
// Description:
// Doors NPCs.
001-2-32,33,29,0 script ToFightRoom#001-2-32 NPC_HIDDEN,0,0,{
OnTouch:
- if (mobcount("001-2-35","all") > 0)
+ if (getq(Artis_Legion_Progress) < 3)
{
narrator
l("You hear some sound behind the door."),
- l("Somebody is probably training, better wait for him to finish.");
+ l("Somebody is probably training, better wait for them to finish.");
}
else
{
- warp "001-2-35", 24, 29;
+ .@q2=getq2(Artis_Legion_Progress);
+ .@mapn$="atl2@"+getcharid(0);
+ // FIXME This code is extremely unreliable
+ if (isinstance(.@q2) && .@q2 >= 0)
+ {
+ instance_set_timeout(3600, 3600, .@q2);
+ warp .@mapn$, 24, 29;
+ } else {
+ .@inst = instance_create("ATL "+getcharid(0), getcharid(3), IOT_CHAR);
+ instance_attachmap("001-2-35", .@inst, false, .@mapn$);
+ // Instance lasts one hour
+ instance_set_timeout(3600, 3600, .@inst);
+ instance_init(.@inst);
+ setq2 Artis_Legion_Progress, .@inst;
+ }
+
}
- closeclientdialog;
close;
}