// 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;
tradertype(NST_MARKET);
sellitem YellowDye, -1, 1;
sellitem CottonCloth, -1, 3;
sellitem ArrowAmmoBox, -1, 5;
end;
OnClock1250:
OnClock0112:
restoreshopitem YellowDye, -1, 1;
restoreshopitem CottonCloth, -1, 3;
restoreshopitem ArrowAmmoBox, -1, 5;
end;
}
// Anagram for 'Demure'.
// Sells wands (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;
tradertype(NST_MARKET);
sellitem TrainingWand, -1, 3;
sellitem NoviceWand, -1, 2;
restoreshopitem ArrowAmmoBox, -1, 5;
restoreshopitem IronAmmoBox, -1, 2;
end;
OnSun0346:
restoreshopitem TrainingWand, -1, 3;
restoreshopitem NoviceWand, -1, 2;
OnClock0848:
OnClock2023:
restoreshopitem ArrowAmmoBox, -1, 5;
restoreshopitem IronAmmoBox, -1, 2;
end;
// Pay your taxes!
OnBuyItem:
debugmes("Purchase confirmed");
PurchaseTaxes();
end;
OnSellItem:
debugmes("Sale confirmed");
SaleTaxes();
end;
}