summaryrefslogblamecommitdiff
path: root/npc/006-2-1/server.txt
blob: 8f0d04c6205a10bcb31c0944d5b33630915fbedc (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, 20, 20;
    sellitem Aquada, 120, 5;
    sellitem LettuceLeaf, 30, 15;
    sellitem Bread, 46, 10;
    sellitem Cheese, 55, 15;

    end;

OnClock0556:
OnClock1201:
OnClock1759:
OnClock0003:
    restoreshopitem Piberries, 20, 20;
    restoreshopitem Aquada, 120, 5;
    restoreshopitem LettuceLeaf, 30, 15;
    restoreshopitem Bread, 46, 10;
    restoreshopitem Cheese, 55, 15;
    end;


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

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

}