summaryrefslogblamecommitdiff
path: root/npc/006-2-1/server.txt
blob: 886c2277e57d233951caf1c7b4ef18ace598771c (plain) (tree)
1
2
3
4
5
6
7





                
                                                 














                                                                 




                                 





            




                                        












                                   
 
 
// TMW2 Script.
// Author:
//    Jesusalva
// Modified by:
//	  +seeds

006-2-1,41,74,0	script	Server	NPC_PIOU_SERVER,{

    mesn;
    mesq l("Hello! Would you like to try some piou delicacies?");
    next;
    closedialog;
    npcshopattach(.name$);
    shop .name$;
    close;

OnInit:

    .sex = G_OTHER;
    .distance = 5;

    tradertype(NST_MARKET);
    sellitem Piberries, -1, 20;
    sellitem Aquada, -1, 5;
    sellitem LettuceLeaf, -1, 15;
    sellitem Bread, -1, 10;
    sellitem Cheese, -1, 15;
    end;

OnClock0556:
OnClock1201:
OnClock1759:
OnClock0003:
    restoreshopitem Piberries, -1, 20;
    restoreshopitem Aquada, -1, 5;
    restoreshopitem LettuceLeaf, -1, 15;
    restoreshopitem Bread, -1, 10;
    restoreshopitem Cheese, -1, 15;
    end;


// Pay your taxes!
OnBuyItem:
    debugmes("Purchase confirmed");
    PurchaseTaxes();
    end;

OnSellItem:
    debugmes("Sale confirmed");
    SaleTaxes();
    end;

}