diff options
author | Reid <reidyaro@gmail.com> | 2015-02-05 02:58:09 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2015-02-05 02:58:09 +0100 |
commit | fec91f992d31a4dd4e880ccad48ee66b6815656f (patch) | |
tree | 82505c0c71588565aa6864eb4536d6bd208cf86b /npc/functions/harbours.txt | |
parent | 68b697cb70e3998d9143f3cb03aca36099120e34 (diff) | |
download | serverdata-fec91f992d31a4dd4e880ccad48ee66b6815656f.tar.gz serverdata-fec91f992d31a4dd4e880ccad48ee66b6815656f.tar.bz2 serverdata-fec91f992d31a4dd4e880ccad48ee66b6815656f.tar.xz serverdata-fec91f992d31a4dd4e880ccad48ee66b6815656f.zip |
Add harbour NPC.
Diffstat (limited to 'npc/functions/harbours.txt')
-rw-r--r-- | npc/functions/harbours.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/npc/functions/harbours.txt b/npc/functions/harbours.txt new file mode 100644 index 00000000..eae24e24 --- /dev/null +++ b/npc/functions/harbours.txt @@ -0,0 +1,39 @@ +// Evol scripts. +// Authors: +// Reid +// Description: +// Harbour utility functions +// Animation: +// Length: 1680 +// Values: +// 2 Hook moving down. +// 4 Hook moving up. +// 6 Hook down. +// 8 Hook up. + +function script harbourClic { + if (getnpcdir () == 0) + { + setnpcdir 2; + + initnpctimer; + startnpctimer; + close; + } + + if (getnpcdir () == 6) + { + setnpcdir 4; + + initnpctimer; + startnpctimer; + close; + } +} + +function script harbourTimer { + stopnpctimer; + if (getnpcdir () == 2) setnpcdir 6; + if (getnpcdir () == 4) setnpcdir 0; + end; +} |