From edd66e03e98fc18a2de2165aadb658b4d774f7aa Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Tue, 27 Dec 2011 13:04:15 +0100 Subject: Made Alige opening his eyes if a player is near --- npc/000-2-1/alige.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'npc') 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,{ -- cgit v1.2.3-70-g09d2