summaryrefslogtreecommitdiff
path: root/npc/001-2-34/doors.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-2-34/doors.txt')
-rw-r--r--npc/001-2-34/doors.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/npc/001-2-34/doors.txt b/npc/001-2-34/doors.txt
new file mode 100644
index 00000000..6161dfa4
--- /dev/null
+++ b/npc/001-2-34/doors.txt
@@ -0,0 +1,29 @@
+// Evol scripts.
+// Author:
+// Reid
+// Omatt
+// Toams
+// Jesus
+// Description:
+// Doors NPCs.
+
+001-2-34,23,29,0 script ToTrainingRoom#001-2-34 NPC_HIDDEN,0,0,{
+OnTouch:
+
+ .@q2=getq2(ArtisQuests_TrainingLegion);
+ // Map name limit: 4 chars (atl1)
+ .@mapn$="atl1@"+getcharid(0);
+ if (isinstance(.@q2) && .@q2 > 0) {
+ warp .@mapn$, 36, 30;
+ } else {
+ .@inst = instance_create("Training Room "+getcharid(0), getcharid(3), IOT_CHAR);
+ instance_attachmap("001-2-36", .@inst, false, .@mapn$);
+ // 30 minutes (1800s) inside, or 5 minutes (300s) outside
+ instance_set_timeout(1800, 300, .@inst);
+ instance_init(.@inst);
+ setq2 ArtisQuests_TrainingLegion, .@inst;
+ warp .@mapn$, 36, 30;
+ }
+
+ end;
+}