summaryrefslogtreecommitdiff
path: root/npc/000-2-4/alige.txt
blob: fbfb79eebc4cf67a6b20c4fb4db1b1f0f0d78398 (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
35
36
37
38
39
// Evol scripts.
// Authors:
//    Reid
//    Travolta

000-2-4,38,22,0	script	Alige#000-2-4	NPC_ALIGE_BARREL,2,2,{
    npctalk3 l("Protect me, please...");
    end;

OnTouch:
    .dir = LEFT;
    stopnpctimer;
    initnpctimer;
    end;

OnUnTouch:
    .dir = UP;
    stopnpctimer;
    initnpctimer;
    end;

OnTimer190:
    switch (.dir)
    {
        case UP:
            .dir = DOWN;
            break;
        case LEFT:
            .dir = RIGHT;
            break;
    }
    stopnpctimer;
    end;

OnInit:
    .sex = G_MALE;
    .distance = 2;
    end;
}