summaryrefslogtreecommitdiff
path: root/npc/001-2-22/chest.txt
blob: 8cab6cf8d3a53c45df8c04ce7f99ba99775fcac3 (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
// Evol scripts.
// Authors:
//    4144
//    Reid
//    gumi
// Description:
//    A box with clothes for new players.

001-2-22,51,37,0	script	Chest#Artis	NPC_CHEST_BIG,{

    if (.busy == false)
    {
        misceffect .dir == 0 ? 24 : 25; // closed ? opening : closing
        .dir = .dir == 0 ? 2 : 6; // closed ? opening : closing
        .busy = true; // lock until available again
        initnpctimer;
    }
    end;

OnTimer220:
    .dir = .dir == 6 ? 0 : 4; // closing ? closed : open
    end;

OnTimer500:
    stopnpctimer;
    .busy = false; // unlock
    end;

OnInit:
    .distance = 2;
    end;
}