summaryrefslogtreecommitdiff
path: root/npc/001-2-2
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-23 19:14:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-23 19:14:55 +0300
commit73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547 (patch)
tree8e07ac831910ddeb844e6425221ad3d8b53fcafd /npc/001-2-2
parent40f4c1b085e909f467fcf319e2cbb068c86e561c (diff)
downloadserverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.tar.gz
serverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.tar.bz2
serverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.tar.xz
serverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.zip
Move timer logic for simple npcs to function.
Diffstat (limited to 'npc/001-2-2')
-rw-r--r--npc/001-2-2/moon.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/npc/001-2-2/moon.txt b/npc/001-2-2/moon.txt
index a50a8435..44b07e17 100644
--- a/npc/001-2-2/moon.txt
+++ b/npc/001-2-2/moon.txt
@@ -189,14 +189,7 @@ L_Close:
close;
OnTimer1000:
- if (isunitwalking())
- {
- initnpctimer;
- end;
- }
- movetonextpos;
- initnpctimer;
- end;
+ domovestep;
OnTouch:
SayRandomGreeting;