summaryrefslogtreecommitdiff
path: root/npc/001-1/doors.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2014-06-02 01:22:47 +0200
committerReid <reidyaro@gmail.com>2014-06-02 01:22:47 +0200
commit1258389641734f32ebd2563a23311333bf55a677 (patch)
tree1aac184f4053b7c4925717ea039f81b5387c413a /npc/001-1/doors.txt
parent5dc8de7a041b03126780800e11b3b91937d2feb1 (diff)
downloadserverdata-1258389641734f32ebd2563a23311333bf55a677.tar.gz
serverdata-1258389641734f32ebd2563a23311333bf55a677.tar.bz2
serverdata-1258389641734f32ebd2563a23311333bf55a677.tar.xz
serverdata-1258389641734f32ebd2563a23311333bf55a677.zip
Add basic door script by 4144.
Diffstat (limited to 'npc/001-1/doors.txt')
-rw-r--r--npc/001-1/doors.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/npc/001-1/doors.txt b/npc/001-1/doors.txt
new file mode 100644
index 00000000..0cdc449a
--- /dev/null
+++ b/npc/001-1/doors.txt
@@ -0,0 +1,32 @@
+// Evol scripts.
+// Authors:
+// 4144, Reid
+// Description:
+// Doors warp and animations in map 001-1
+//
+
+001-1.gat,54,41,0 script #Door1 313,1,1{
+ close;
+
+OnTouchFirst:
+ setnpcdir 2;
+ stopnpctimer;
+ initnpctimer;
+ close;
+
+OnUnTouchAll:
+ setnpcdir 4;
+ initnpctimer;
+ startnpctimer;
+ close;
+
+OnTouchCenter:
+ warp "001-1", 54, 55;
+ close;
+
+OnTimer340:
+ stopnpctimer;
+ if (getnpcdir ("") == 2) setnpcdir 6;
+ if (getnpcdir ("") == 4) setnpcdir 8;
+ end;
+}