summaryrefslogtreecommitdiff
path: root/npc/test
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/test
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/test')
-rw-r--r--npc/test/npc4.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/npc/test/npc4.txt b/npc/test/npc4.txt
index 09f85bb7..a3acdd0e 100644
--- a/npc/test/npc4.txt
+++ b/npc/test/npc4.txt
@@ -7,14 +7,7 @@
test,25,20,0 script npc4 NPC_PLAYER,{
close;
OnTimer1000:
- if (isunitwalking())
- {
- initnpctimer;
- end;
- }
- movetonextpos;
- initnpctimer;
- end;
+ domovestep;
OnInit:
.walkmask = WALK_WATER;
initpath "move", 20, 20,