From 6fb2cdc2dbf40d6bc9cf2d65c7b8e039455c4089 Mon Sep 17 00:00:00 2001 From: Joseph Botosh Date: Sat, 5 Sep 2015 16:51:43 +0300 Subject: add npc npc5 on test map for graph-based movement testing --- npc/test/_import.txt | 1 + npc/test/npc5.txt | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 npc/test/npc5.txt (limited to 'npc/test') diff --git a/npc/test/_import.txt b/npc/test/_import.txt index 95322f038..9998f29a9 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 000000000..8b5546e38 --- /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; +} -- cgit v1.2.3-60-g2f50