summaryrefslogtreecommitdiff
path: root/npc/020-1/neko.txt
blob: d4c38dd3bca433176bf7a4b7a9331dd2144680f8 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
// Evol scripts.
// Author:
//    Micksha (mifritscher gave him some food ;-) )
// Description:
//    Neko, the Trader in Legion area in Tulimshar.
// THIS IS A PLACEHOLDER!

020-1,278,99,0	script	Neko	NPC_DESERT_HAT_MAN,{
    if (shopcount(Blueberries) <= 0 && shopcount(BottleOfWater) <= 0
        && shopcount(Tentacles) <= 0 && shopcount(CommonCarp) <= 0
        && shopcount(Aquada) <= 0 && shopcount(Curshroom) <= 0) {

        speech
            l("Hi there."),
            l("Sorry, we are sold out for today."),
            lg("Come back later.");

    } else {
        speech
            l("Hi there."),
            l("We got new supplies of food and drinks!");

        next;

        closeclientdialog;
        shop .name$;
    }

    close;

OnInit:
    .distance = 4;
    tradertype(NST_MARKET);

// Blueberries are still placeholders
//    sellitem Blueberries, -1, 2000+rand2(500);
    sellitem BottleOfWater, -1, 200+rand2(50);
    sellitem CommonCarp, -1, 400+rand2(50);
    sellitem Tentacles, -1, 1000+rand2(100);
    sellitem Aquada, -1, 800+rand2(200);
    sellitem Curshroom, -1, 1500+rand2(400);
    end;

OnClock0002:
//    restoreshopitem Blueberries, 2000+rand2(500);
    restoreshopitem BottleOfWater, 200+rand2(50);
    restoreshopitem CommonCarp, 400+rand2(50);
    restoreshopitem Tentacles, 1000+rand2(100);
    restoreshopitem Aquada, 800+rand2(200);
    restoreshopitem Curshroom, 1500+rand2(400);
    end;
}