// TMW2/LoF scripts.
// Authors:
// TMW-LoF Team
// Jesusalva
// Description:
// Heroes Hold Exchanger - Level 3
018-2-4,47,28,0 script Master Exchanger#0 NPC_M_COINKEEPER,{
.@q=getq2(LoFQuest_HH);
if (.@q & HH_ADVANCED)
openshop;
goodbye;
closedialog;
close;
OnInit:
.@npcId = getnpcid(.name$);
setunitdata(.@npcId, UDT_HEADTOP, TopHat);
setunitdata(.@npcId, UDT_HEADMIDDLE, WarlordPlate);
setunitdata(.@npcId, UDT_WEAPON, JeansChaps);
setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots);
setunitdata(.@npcId, UDT_HAIRSTYLE, 25);
setunitdata(.@npcId, UDT_HAIRCOLOR, 4);
.sex = G_OTHER;
.distance = 5;
npcsit;
tradertype(NST_CUSTOM);
sellitem Kanabo,5400;
sellitem IronShovel,2000;
sellitem MercBoxA,1200;
sellitem SilverGift,480;
sellitem Lockpicks,112;
end;
OnCountFunds:
setcurrency(countitem(HeroCoin));
end;
OnPayFunds:
if( countitem(HeroCoin) < @price )
end;
delitem HeroCoin,@price;
purchaseok();
end;
}
018-2-4,47,49,0 duplicate(Master Exchanger#0) Master Exchanger#1 NPC_M_COINKEEPER