summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-24 11:28:17 -0300
committerJesusaves <cpntb1@ymail.com>2018-05-24 11:28:17 -0300
commit1526af36e9f74f781bc6297c4baea601c01a9490 (patch)
tree1cb3ed1bb4098f4f85d5612761f16ee3e207e5e0 /npc
parent35e1804b64aebdc313220ac5f7f44ad367ffd289 (diff)
downloadserverdata-1526af36e9f74f781bc6297c4baea601c01a9490.tar.gz
serverdata-1526af36e9f74f781bc6297c4baea601c01a9490.tar.bz2
serverdata-1526af36e9f74f781bc6297c4baea601c01a9490.tar.xz
serverdata-1526af36e9f74f781bc6297c4baea601c01a9490.zip
Touch/Untouch Alige
Diffstat (limited to 'npc')
-rw-r--r--npc/002-1/alige.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/002-1/alige.txt b/npc/002-1/alige.txt
index 2c76c9c3e..c21cb3f5f 100644
--- a/npc/002-1/alige.txt
+++ b/npc/002-1/alige.txt
@@ -12,8 +12,21 @@
mesq l("I don't want to be thrown to the sharks!");
close;
+
OnInit:
.sex = G_MALE;
.distance = 2;
end;
+
+
+OnTouch:
+ if (getareausers() <= 1)
+ setnpcdir "Alige", 2;
+ close;
+
+OnUnTouch:
+ if (getareausers() == 0)
+ setnpcdir "Alige", 4;
+ close;
+
}