summaryrefslogblamecommitdiff
path: root/npc/012-1/shoppakep.txt
blob: b18dadc665a9c89759f796a5a20b1b88c3fb9688 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                     
                
                

          









                            
       
                                 







                                     
                                    









                                               
                                         



            
            
                                            
                                           









                                                      



                                         

        
// TMW2 Script.
// Author:
//    Jesusalva
// Description:
//    Random Hurnscald Shopper with random overpriced stuff and gifts

012-1,58,64,0	script	Shoppa Kep	NPC_SHOPPAKEP,{
    mesn;
    mesq lg("Welcome! Only the finest wares!");
    next;
    closedialog;
    shop .name$;
    close;

    function ShoppaKepItem {
    .@i=rand(0,100);
    if (.@i > 70)
        return Coal;
    else if (.@i < 30)
        return IronOre;
    else
        return HalfEggshell;
    }

OnInit:
    .CurrentItem=ShoppaKepItem();
    .ThisRebootAmou=rand(30,70);

    .sex = G_FEMALE;
    .distance = 5;


    tradertype(NST_MARKET);
    sellitem LeatherShirt, 125000, 1;
    sellitem JeansShorts, 125000, 1;
    sellitem CottonSkirt, 100000, 1;
    sellitem MiniSkirt, 100000, 1;
    sellitem ShortTankTop, 100000, 1;
    sellitem CottonTrousers, 100000, 1;

    sellitem Piberries, -1, 30;
    sellitem Plushroom, -1, 3;
    sellitem Chagashroom, -1, 3;

    sellitem PiouFeathers, -1, .ThisRebootAmou;
    sellitem .CurrentItem, -1, rand(1,4);

    end;

OnClock1759:
OnClock0546:
    restoreshopitem LeatherShirt, 125000, 1;
    restoreshopitem JeansShorts, 125000, 1;
    restoreshopitem CottonSkirt, 100000, 1;
    restoreshopitem MiniSkirt, 100000, 1;
    restoreshopitem ShortTankTop, 100000, 1;
    restoreshopitem CottonTrousers, 100000, 1;

    restoreshopitem Piberries, -1, 30;
    restoreshopitem Plushroom, -1, 3;
    restoreshopitem Chagashroom, -1, 3;

    restoreshopitem PiouFeathers, -1, .ThisRebootAmou;

    stopselling(.CurrentItem);
    .CurrentItem=ShoppaKepItem();
    sellitem .CurrentItem, -1, rand(1,4);
    end;
}