From 1526af36e9f74f781bc6297c4baea601c01a9490 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 24 May 2018 11:28:17 -0300 Subject: Touch/Untouch Alige --- npc/002-1/alige.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'npc/002-1/alige.txt') 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; + } -- cgit v1.2.3-70-g09d2