summaryrefslogtreecommitdiff
path: root/npc/005-4/shop.txt
blob: 01ec2d57d2d7fe96441fcc70213059898b36f54d (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
// TMW2 scripts.
// Author:
//    Saulc
// Description:
//    Rosen sells basic armor on Candor. Logic by Reid.

005-4,30,37,0	trader	Shop#Candor	NPC_NO_SPRITE,{

OnInit:
    tradertype(NST_MARKET);

    sellitem RoundLeatherShield, -1, 2;
    sellitem Knife, -1, 5;
    sellitem TolchiArrow, -1, 30000;
    sellitem TolchiAmmoBox, -1, 4;
    sellitem LousyMoccasins, -1, 4;
    sellitem TrainingBow, -1, 3;

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

OnClock0602:
OnClock1206:
OnClock1811:
OnClock0004:
    restoreshopitem RoundLeatherShield, -1, 2;
    restoreshopitem Knife, -1, 5;
    restoreshopitem TolchiArrow, -1, 30000;
    restoreshopitem TolchiAmmoBox, -1, 4;
    restoreshopitem LousyMoccasins, -1, 4;
    restoreshopitem TrainingBow, -1, 3;
    end;


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

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