summaryrefslogtreecommitdiff
path: root/npc/003-1/shop.txt
blob: cf51a70fa085cac31fd66a3c196d2b4c0b1ef6e1 (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
53
54
55
56
57
58
59
60
// TMW2 scripts.
// Author:
//    Saulc

003-1,108,110,0	trader	Shop#bazar1	NPC_NO_SPRITE,{

OnInit:
    tradertype(NST_MARKET);

    sellitem YellowDye, -1, 2;
    sellitem RoundLeatherShield, -1, 2;
    sellitem Knife, -1, 5;
	sellitem TrainingAmmoBox, -1, rand(2,5);
	sellitem ArrowAmmoBox, -1, rand(2,4);
    sellitem Arrow, -1, 30000;
    sellitem TreasureMap, 600, 1;
    sellitem DesertHat, -1, 8;
    sellitem SilkRobe, -1, 1;
    sellitem CottonCloth, -1, 2;
    sellitem Bread, -1, 15;
    sellitem CroconutBox, rand(2800,2900), 6;
    sellitem EmptyBottle, -1, 3; // You can buy some empty bottles here, but they're scarse
    sellitem EmptyBox, -1, 4;

    .sex = G_OTHER;
    .distance = 3;
    end;

OnClock0621:
OnClock1210:
OnClock1757:
OnClock0000:
    restoreshopitem YellowDye, 2;
    restoreshopitem RoundLeatherShield, 2;
    restoreshopitem Knife, 5;
	restoreshopitem TrainingAmmoBox, rand(2,5);
	restoreshopitem ArrowAmmoBox, rand(2,4);
    restoreshopitem Arrow, rand(10000,30000);
    restoreshopitem TreasureMap, 600, 1;
    restoreshopitem DesertHat, 8;
    restoreshopitem SilkRobe, 1;
    restoreshopitem CottonCloth, 2;
    restoreshopitem Bread, 15;
    restoreshopitem CroconutBox, rand(2800,3050), 6;
    restoreshopitem EmptyBottle, 3;
    restoreshopitem EmptyBox, 4;
    end;

// Pay your taxes!
OnBuyItem:
    debugmes("Purchase confirmed");
    PurchaseTaxes();
    end;

OnSellItem:
    debugmes("Sale confirmed");
    SaleTaxes();
    end;
}