summaryrefslogtreecommitdiff
path: root/npc/000-2-4/alige.txt
blob: 500a57a4cdbfe0eef43ab05924dac65d0383fa5f (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
// 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:
    .distance = 2;
    end;
}