summaryrefslogblamecommitdiff
path: root/npc/003-1/inar.txt
blob: 79c775327b6de85126476df60e1a8fe201256b71 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
              


           
                                                   
 





                                 
 
                
                        





                

       
                               
                                                


                                                                    


                                           
                  
                  
        










                                   
 
// TMW2 Script
// Author:
//    Saulc

003-1,109,109,0	script	Inar	NPC_PLAYER_TONORI,{

    mesn;
    mesq l("Only finest wares!");
    mes "";
    menu
        l("Trade"), -,
        l("Leave"), L_Close;

    closedialog;
    shop2 "Shop#bazar1";
    close;

L_Close:
    closedialog;
    goodbye;
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, NPCEyesT);
    setunitdata(.@npcId, UDT_HEADMIDDLE, SilkRobe);
    //setunitdata(.@npcId, UDT_HEADBOTTOM, LeatherTrousers); // TODO
    setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // Boots
    setunitdata(.@npcId, UDT_HAIRSTYLE, 4);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 1);

    .sex = G_MALE;
    .distance = 5;
    end;

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

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