summaryrefslogtreecommitdiff
path: root/npc/017-1/shops.txt
blob: ac5affeb0964f6ec3046f3c38588c9847e07fa45 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// TMW2/LoF scripts.
// Authors:
//    Jesusalva
// Description:
//    Random Sellers

017-1,158,184,0	script	Billy	NPC_M_SHOPKEEPER,{
    npcshopattach(.name$);
    shop .name$;
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
    setunitdata(.@npcId, UDT_HEADMIDDLE, any(ShortTankTop, CandorShirt, Chainmail));
    setunitdata(.@npcId, UDT_HEADBOTTOM, RaidTrousers);
    setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // Boots
    setunitdata(.@npcId, UDT_HAIRSTYLE, 10);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 9);

    .sex = G_MALE;
    .distance = 4;
    sleep(SHOPWAIT);
    tradertype(NST_MARKET);

    sellitem LOFCoin, -1, 1;
    sellitem YellowDye, -1, 1;
    sellitem CottonCloth, -1, 3;
	sellitem ArrowAmmoBox, -1, 5;
	sellitem Bullet, -1, 2000;
    if (!rand2(4))
    	sellitem OolongTea, getiteminfo(OolongTea, ITEMINFO_BUYPRICE)*15/10, rand2(1,3);
    sellitem WoodenShield, -1, 1;
    sellitem LeatherShirt, -1, 1;
    end;

OnClock1250:
    restoreshopitem WoodenShield, 1;
    restoreshopitem LeatherShirt, 1;
OnClock0112:
    restoreshopitem LOFCoin, -1, 1;
    restoreshopitem YellowDye, -1, 1;
    restoreshopitem CottonCloth, -1, 3;
	restoreshopitem ArrowAmmoBox, -1, 5;
	restoreshopitem Bullet, -1, 2000;
    if (!rand2(4))
    	restoreshopitem OolongTea, getiteminfo(OolongTea, ITEMINFO_BUYPRICE)*15/10, rand2(1,3);
    end;

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

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

}

// Anagram for 'Demure'.
// Sells wands and ammo (therefore, not demure, who plays speed-melee, unless she have a secret shop quest)
017-1,135,185,0	script	Drueme	NPC_F_SHOPKEEPER,{
    npcshopattach(.name$);
    shop .name$;
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
    setunitdata(.@npcId, UDT_HEADMIDDLE, any(ShortTankTop, CandorShirt, Chainmail));
    setunitdata(.@npcId, UDT_HEADBOTTOM, RaidTrousers);
    setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // Boots
    setunitdata(.@npcId, UDT_HAIRSTYLE, 10);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 9);

    .sex = G_FEMALE;
    .distance = 4;
    sleep(SHOPWAIT);
    tradertype(NST_MARKET);

    sellitem TrainingWand, -1, 3;
    sellitem NoviceWand, -1, 2;
	restoreshopitem ArrowAmmoBox, -1, 5;
	restoreshopitem IronAmmoBox, -1, 2;
	restoreshopitem Bullet, -1, 5000;
    end;

OnSun0346:
    restoreshopitem TrainingWand, -1, 3;
    restoreshopitem NoviceWand, -1, 2;
OnClock0848:
OnClock2023:
	restoreshopitem ArrowAmmoBox, -1, 5;
	restoreshopitem IronAmmoBox, -1, 2;
	restoreshopitem Bullet, -1, 5000;
    end;

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

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

}