diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-09-05 16:51:43 +0300 |
---|---|---|
committer | Joseph Botosh <rumly111@gmail.com> | 2015-09-05 16:52:18 +0300 |
commit | 6fb2cdc2dbf40d6bc9cf2d65c7b8e039455c4089 (patch) | |
tree | 6fe0508f12ef0411cc6a7d933ea8a610d5b80968 | |
parent | 29e2e67b950bae3b848dcd842e8cc49fe8c4e37f (diff) | |
download | serverdata-6fb2cdc2dbf40d6bc9cf2d65c7b8e039455c4089.tar.gz serverdata-6fb2cdc2dbf40d6bc9cf2d65c7b8e039455c4089.tar.bz2 serverdata-6fb2cdc2dbf40d6bc9cf2d65c7b8e039455c4089.tar.xz serverdata-6fb2cdc2dbf40d6bc9cf2d65c7b8e039455c4089.zip |
add npc npc5 on test map for graph-based movement testing
-rw-r--r-- | npc/test/_import.txt | 1 | ||||
-rw-r--r-- | npc/test/npc5.txt | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/npc/test/_import.txt b/npc/test/_import.txt index 95322f03..9998f29a 100644 --- a/npc/test/_import.txt +++ b/npc/test/_import.txt @@ -5,3 +5,4 @@ npc: npc/test/npc1.txt npc: npc/test/npc2.txt npc: npc/test/npc3.txt npc: npc/test/npc4.txt +npc: npc/test/npc5.txt diff --git a/npc/test/npc5.txt b/npc/test/npc5.txt new file mode 100644 index 00000000..8b5546e3 --- /dev/null +++ b/npc/test/npc5.txt @@ -0,0 +1,38 @@ +// Evol scripts. +// Authors: +// Travolta +// Description: +// test npc5 + +function script npc5TestFunc { + npctalk getarg(0); + return; +} + +test,45,25,0 script npc5 NPC_PLAYER,{ + close; + +OnTimer1000: + if (!isunitwalking()) + { + movetonextpoint; + } + initnpctimer; + end; + +OnInit: + initmovegraph "topleft", 45, 25, + "topright", 55, 25, + "bottomright", 55, 34, + "bottomleft", 45, 34; + + setmovegraphcmd "topleft", "topright", 30, "dir 0; wait 1", + "topleft", "bottomright", 20, "class 104", + "topleft", "bottomleft", 50, "emote 8; wait 1; warp bottomright", + "topright", "bottomleft", 1, "emote 3; wait 5", + "bottomleft", "topleft", 25, "dir 2; wait 1; call npc5TestFunc Hello=)", + "bottomleft", "bottomright", 10, "speed 40", + "bottomright", "bottomleft", 1, "class 801; speed 100; dir 0; emote 1; wait 4"; + firstmove "wait 1; speed 100; dir 4; emote 7"; + initnpctimer; +} |