summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2015-10-23 04:44:47 +0200
committerReid <reidyaro@gmail.com>2015-10-23 04:44:47 +0200
commitd19f9667d8d6d02de164be1082a883149f54ef6b (patch)
tree370cbf8e995c8fd20c2152b55db7a71c4d78b513
parent01cb2e3de648856901394329072b3d504ae25a60 (diff)
downloadserverdata-d19f9667d8d6d02de164be1082a883149f54ef6b.tar.gz
serverdata-d19f9667d8d6d02de164be1082a883149f54ef6b.tar.bz2
serverdata-d19f9667d8d6d02de164be1082a883149f54ef6b.tar.xz
serverdata-d19f9667d8d6d02de164be1082a883149f54ef6b.zip
Add door script to warp from #34 to #36.
-rw-r--r--npc/001-2-34/_import.txt1
-rw-r--r--npc/001-2-34/doors.txt23
2 files changed, 24 insertions, 0 deletions
diff --git a/npc/001-2-34/_import.txt b/npc/001-2-34/_import.txt
index 19b289f4..c79a8034 100644
--- a/npc/001-2-34/_import.txt
+++ b/npc/001-2-34/_import.txt
@@ -1,3 +1,4 @@
// Map 001-2-34
npc: npc/001-2-34/_warps.txt
+npc: npc/001-2-34/doors.txt
npc: npc/001-2-34/mapflags.txt
diff --git a/npc/001-2-34/doors.txt b/npc/001-2-34/doors.txt
new file mode 100644
index 00000000..f2182414
--- /dev/null
+++ b/npc/001-2-34/doors.txt
@@ -0,0 +1,23 @@
+// Evol scripts.
+// Author:
+// Reid
+// Description:
+// Doors NPCs.
+
+001-2-34,23,29,0 script ToTrainingRoom#001-2-34 NPC_HIDDEN,0,0,{
+
+OnTouch:
+ if (mobcount("001-2-36.gat","all") > 0)
+ {
+ narrator
+ l("You hear some sound behind the door."),
+ l("Somebody is probably training, better wait for him to finish.");
+ }
+ else
+ {
+ warp "001-2-36", 36, 29;
+ }
+
+ closedialog;
+ close;
+}