diff options
author | Reid <reidyaro@gmail.com> | 2015-02-03 03:22:32 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2015-02-03 03:22:32 +0100 |
commit | e37699bf31cc37d55324e05b8c4bb508464cb040 (patch) | |
tree | c72e8effddd3c1e2615838e5232270ae84fabefa /npc/001-2-22 | |
parent | 01e6fcdca77db1183ee38f9fb46c92869240040c (diff) | |
download | serverdata-e37699bf31cc37d55324e05b8c4bb508464cb040.tar.gz serverdata-e37699bf31cc37d55324e05b8c4bb508464cb040.tar.bz2 serverdata-e37699bf31cc37d55324e05b8c4bb508464cb040.tar.xz serverdata-e37699bf31cc37d55324e05b8c4bb508464cb040.zip |
Fix alige animation.
Diffstat (limited to 'npc/001-2-22')
-rw-r--r-- | npc/001-2-22/alige.txt | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/npc/001-2-22/alige.txt b/npc/001-2-22/alige.txt index 53cb9f800..24db23877 100644 --- a/npc/001-2-22/alige.txt +++ b/npc/001-2-22/alige.txt @@ -20,30 +20,33 @@ 001-2-22,43,32,0 script AligeTrigger#Artis 32767,1,1,{ OnTouch: + if (getareausers() <= 1) + { + setnpcdir "Alige#Artis", 2; + stopnpctimer; + initnpctimer; + } + if (getq(ShipQuests_Alige) > 0) close; - doevent "Alige::OnFirstEncounter"; + doevent "Alige#Artis::OnFirstEncounter"; close; -OnTouchFirst: - setnpcdir "Alige", 2; - stopnpctimer; - initnpctimer; - - goto OnTouch; - -OnUnTouchAll: - setnpcdir "Alige", 4; - stopnpctimer; - initnpctimer; - +OnUnTouch: + if (getareausers() == 0) + { + setnpcdir "Alige#Artis", 4; + stopnpctimer; + initnpctimer; + } close; OnTimer190: - if (getnpcdir ("Alige") == 2) setnpcdir "Alige", 6; - if (getnpcdir ("Alige") == 4) setnpcdir "Alige", 8; stopnpctimer; + if (getnpcdir ("Alige#Artis") == 2) setnpcdir "Alige#Artis", 6; + if (getnpcdir ("Alige#Artis") == 4) setnpcdir "Alige#Artis", 8; + end; } |