summaryrefslogtreecommitdiff
path: root/npc/test/npc5.txt
blob: faa655e8f1dedddff47980f01517f09621b70fcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Evol scripts.
// Author:
//    Travolta
// Description:
//    test npc5

function	script	npc5TestFunc	{
    npctalk getarg(0);
    return 0;
}

test,45,25,0	script	npc5	NPC_PLAYER,{
    close;

OnTimer1000:
    dographmovestep;

OnInit:
    // .debug = 1;
    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;
}