summaryrefslogtreecommitdiff
path: root/npc/008-2-2/shop.txt
blob: b3e9b798fe9dffeffbd5482d995ff45a707178d7 (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:
//    4144
//    jesusalva
//    Reid
//    toams
// Description:
//    Inn hidden shop.

008-2-2,40,30,0	trader	#Invisible008-2-2	NPC_HIDDEN,{

OnInit:
    tradertype(NST_MARKET);

    sellitem Beer, -1, 50;
    sellitem Bread, -1, 50;
    sellitem RedPlushWine, -1, 50;
    sellitem Cheese, -1, 50;
    sellitem CherryCake, -1, 50;
    sellitem SmallHealing, -1, 50;
    sellitem MaggotSlimePotion, -1, 50;

    .distance = 10;
    end;

// FIXME Note: "20" doesn't means "restock 20 units".
// It means "restock if less than 20 units are being sold".
// Is this behavior intended? Seems like a bug.
OnClock0000:
OnClock0800:
OnClock1600:
    restoreshopitem Beer, 20;
    restoreshopitem Bread, 20;
    restoreshopitem RedPlushWine, 20;
    restoreshopitem Cheese, 20;
    restoreshopitem CherryCake, 20;
    restoreshopitem SmallHealing, 20;
    restoreshopitem MaggotSlimePotion, 50;
}