summaryrefslogblamecommitdiff
path: root/npc/017-1/shops.txt
blob: acf8ce7e2f1f54460d7d4892b9045d1ca97414d6 (plain) (tree)

































                                                                                    
// TMW2/LoF scripts.
// Authors:
//    Jesusalva
// Description:
//    Random Sellers

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

OnInit:
    .@npcId = getnpcid(0, .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;
    end;

OnClock1250:
OnClock0112:
    restoreshopitem YellowDye, -1, 1;
    restoreshopitem CottonCloth, -1, 3;
    end;

}