summaryrefslogblamecommitdiff
path: root/npc/008-2-2/shop.txt
blob: 58c6002df8bcc85d5285686c469a9851c2fd4380 (plain) (tree)
1
2
3
4
5
6


                
               
          
           








                                                            




                                  
                                       
 
                           


                   


                                                           
            
            

                             




                                     
                                          
 
// Evol scripts.
// Authors:
//    4144
//    jesusalva
//    Reid
//    toams
// Description:
//    Inn hidden shop.

008-2-2,40,30,0	trader	#Invisible008-2-2	NPC_HIDDEN,{

OnInit:
    tradertype(NST_MARKET);

    sellitem Beer, -1, 50;
    sellitem Bread, -1, 50;
    sellitem RedPlushWine, -1, 50;
    sellitem Cheese, -1, 50;
    sellitem CherryCake, -1, 50;
    sellitem SmallHealing, -1, 50;
    sellitem MaggotSlimePotion, -1, 50;

    .bodytype = BODYTYPE_1;
    .distance = 10;
    end;

// FIXME Note: "20" doesn't means "restock 20 units".
// It means "restock if less than 20 units are being sold".
// Is this behavior intended? Seems like a bug.
OnClock0000:
OnClock0800:
OnClock1600:
    restoreshopitem Beer, 20;
    restoreshopitem Bread, 20;
    restoreshopitem RedPlushWine, 20;
    restoreshopitem Cheese, 20;
    restoreshopitem CherryCake, 20;
    restoreshopitem SmallHealing, 20;
    restoreshopitem MaggotSlimePotion, 50;
}