summaryrefslogtreecommitdiff
path: root/npc/test/npc2.txt
blob: 8a2146f11f47f200f67ce8598381620faa99d345 (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
// Evol scripts.
// Author:
//    4144
// Description:
//    test npc2

test,20,10,0	trader	npc2	NPC_HAT_BOX,{
OnInit:
    tradertype(NST_MARKET);
    sellitem 505, -1, 10;
    sellitem 502, -1, 10;
    sellitem 513, -1, 10;
    sellitem 509, -1, 10;
    sellitem 2000, -1, 10;
    sellitem 1800, -1, 10;
    sellitem 3501, -1, 10;
    end;

OnClock0000:
    if (shopcount(505) < 10)
        sellitem 505, -1, 10;
    if (shopcount(502) < 10)
        sellitem 502, -1, 10;
    if (shopcount(513) < 10)
        sellitem 513, -1, 10;
    if (shopcount(509) < 10)
        sellitem 509, -1, 10;
    if (shopcount(2000) < 10)
        sellitem 2000, -1, 10;
    if (shopcount(1800) < 10)
        sellitem 1800, -1, 10;
    if (shopcount(3501) < 10)
        sellitem 3501, -1, 10;
    end;
}