summaryrefslogblamecommitdiff
path: root/npc/017-3/doug.txt
blob: a7d2643fc402b2500f3145d35176a0f4eabcaec4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                    


                    






                                                               
                                                                 
         
                                                                                                     

          
                                                                 


                        


                                                     

                                     
             
     





                                                                                            

                                                       
                                                  







                                           
// TMW2/LoF scripts.
// Authors:
//      TMW-LoF Team
//      Jesusalva
//      Saulc
// Description:
//    Permanently repeatable quest, without any special limit

017-3,68,87,0	script	Doug	NPC_PLAYER,{
    mesn;
    mesq l("This room is too dark. I want to brighten it up.");
    next;
    .@price=(getiteminfo(CaveSnakeLamp, ITEMINFO_SELLPRICE)*3)*8;
    mesn;
    mesq l("I am willing to pay @@ GP for 10 @@ you bring me!", .@price, getitemlink(CaveSnakeLamp));
    next;
    select
        rif(countitem(CaveSnakeLamp) >= 10, l("Here they are!")),
        l("Not now...");
    mes "";
    if (@menu == 1) {
        delitem CaveSnakeLamp, 10;
        Zeny=Zeny+.@price; //864
        getexp (.@price*rand(1,2)), 10; // 864 - 1728
        mesn;
        mesq l("Many, many thanks!");
        next;
    }
    mesn;
    mesq l("Too bad these lamps wear off after a while... I am making stocks of them now!");
    close;

OnInit:
    .@npcId = getnpcid(0, .name$);
    setunitdata(.@npcId, UDT_HEADMIDDLE, CreasedShirt);
    setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
    setunitdata(.@npcId, UDT_WEAPON, JeansShorts);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 2);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 4);

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