summaryrefslogblamecommitdiff
path: root/npc/003-1/itka.txt
blob: e6ac006f9e3ad47e24e6b0761b0a30a9dfdddd60 (plain) (tree)
1
2
3
4
5
6
7
8
9
               
          
               
 
                                                  
 


                                            
                                                                                                           
         
                                                                                                       
                                                                                     
         
                          

                
          

       
                               



                                                                                                  


                                            
                                                                         

                                                                 
 

                    
        
 



                                        









                                   
 
// TMW2 Script.
// Author:
//    Jesusalva

003-1,63,141,0	script	Itka	NPC_F_SHOPKEEPER,{

    mesn;
    mesq lg("Hello, madam!", "Hello, sir!");
    next;
    mesq l("Did you knew the casino on the inn up here was one of the most expensive on the whole world?");
    next;
    mesq l("Anyway, I am selling Cherry Cakes to sponsor my studies. Please buy as many as you want!");
    tutmes l("Ducks and Giant Maggots also drops Cherry Cakes."), l("Protip"), false;
    next;
    npcshopattach(.name$);
    openshop;
    closedialog;
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
    setunitdata(.@npcId, UDT_HEADMIDDLE, VneckSweater);
    setunitdata(.@npcId, UDT_HEADBOTTOM, RaidTrousers);
    setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // I prefer 1801 but the short doesn't match
    setunitdata(.@npcId, UDT_HAIRSTYLE, 17);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 19);

    // NOTE: To limit selling items must change trader type to NST_MARKET
    tradertype(NST_MARKET);
	sellitem CherryCake, 200, 50; // 50 cakes for 200 GP each

    .sex = G_FEMALE;
    .distance = 5;
    end;

OnMinute16:
    restoreshopitem CherryCake, 200, 50;
    end;

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

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