summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2011-12-27 13:04:15 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2011-12-27 13:07:26 +0100
commitedd66e03e98fc18a2de2165aadb658b4d774f7aa (patch)
tree46831dfb0f3c156596372581e9f0febc70589663 /npc
parent2fedb6aef9fa2517895522ca1077331c6372edd7 (diff)
downloadclientdata-edd66e03e98fc18a2de2165aadb658b4d774f7aa.tar.gz
clientdata-edd66e03e98fc18a2de2165aadb658b4d774f7aa.tar.bz2
clientdata-edd66e03e98fc18a2de2165aadb658b4d774f7aa.tar.xz
clientdata-edd66e03e98fc18a2de2165aadb658b4d774f7aa.zip
Made Alige opening his eyes if a player is near
Diffstat (limited to 'npc')
-rw-r--r--npc/000-2-1/alige.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/000-2-1/alige.txt b/npc/000-2-1/alige.txt
index 7b31d138..568363de 100644
--- a/npc/000-2-1/alige.txt
+++ b/npc/000-2-1/alige.txt
@@ -19,6 +19,22 @@
if (geta2(ShipQuests, ShipQuests_Alige) > 0) close;
doevent "Alige::OnFirstEncounter";
close;
+ OnTouchFirst:
+ setnpcdir "Alige" 2;
+ stopnpctimer;
+ initnpctimer;
+ // OnTouch will not be called otherwise when OnTouchFirst got called
+ goto OnTouch;
+ OnUnTouchAll:
+ setnpcdir "Alige" 4;
+ stopnpctimer;
+ initnpctimer;
+ close;
+ OnTimer340:
+ if (getnpcdir ("Alige") == 2) setnpcdir "Alige", 6;
+ if (getnpcdir ("Alige") == 4) setnpcdir "Alige", 8;
+ stopnpctimer;
+ end;
}
000-2-1.gat,33,31,0,1 script Alige 301,{