summaryrefslogblamecommitdiff
path: root/npc/004-1/elanore.txt
blob: e66f8ef6161a13d2d7ad15a2dc519e9b5eba4abf (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                            
                                    


                                                
                                                              
                                                   


                                           


                            





                                                                                             
                                                                                                                        




                                           
                                    

        

                                                           

                                         
                                
 

                             

                         
                         
 


                                              
                      
     








                                                                                                                     
                                    












                                              


                                                              







                                            
// TMW-2 Script
// Author:
//    Jesusalva

004-1,75,62,0	script	Elanore the Healer	NPC_FEMALE,{
    .@price=Nurse(.name$, 10, 5, 1);
    mesq l("For you, it'll be @@ GP.", .@price);
    mes "";
    menu
        rif(Zeny >= .@price, l("Please heal me!")), L_Healing,
        l("Do you make Lifestones?"), L_Lifestones,
        l("Another time, maybe."), L_Close;


L_Healing:
    Nurse(.name$, 10, 5, 2);
    close;

L_Lifestones:
    mes "";
    mesn;
    mesq l("Lifestones have the potential to heal the user, and thus are used for potions.");
    next;
    mesq l("I will need 3 @@, 5 @@ and 100 GP to craft a single stone.", getitemlink(BugLeg), getitemlink(MaggotSlime));
    next;
    mes "";
    menu
        l("OK, I will get them."), L_Close,
        l("No way!"), L_Close,
        l("Here you are!"), L_Trade;

L_Trade:
    if (countitem("BugLeg") < 3) goto L_Trade_Missing;
    if (countitem("MaggotSlime") < 5) goto L_Trade_Missing;
    if (Zeny < 100) goto L_Trade_Missing;

    inventoryplace Lifestone, 1;

    delitem "BugLeg", 3;
    delitem "MaggotSlime", 5;
    set Zeny, Zeny - 100;

    getitem Lifestone, 1;

    // Only grant Experience on first craft
    if (getq(TulimsharQuest_Lifestone) == 0) {
        setq TulimsharQuest_Lifestone, 1;
        getexp 84, 10;
    }
    mesn;
    mesq l("These will do just fine.");
    next;
    mesn;
    mes l("Elanore casts a chant over the items, closes her hands, and vóila! A lifestone.");
    next;
    mesq l("I guess that you could use these lifestones to gain a regeneration effect, too, but I do not know how.");
    next;
    mes l("She smiles.");
    mes l("[40 experience points]");
    goto L_Close;

L_Trade_Missing:
    mesn;
    mesq l("This is not what I asked for.");
    goto L_Close;

L_Close:
    close;

OnInit:
    .@npcId = getnpcid(0, .name$);
    //setunitdata(.@npcId, UDT_HEADTOP, 2929);
    setunitdata(.@npcId, UDT_HEADMIDDLE, SorcererRobe);
    setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
    setunitdata(.@npcId, UDT_WEAPON, DeepBlackBoots); // Boots
    setunitdata(.@npcId, UDT_HAIRSTYLE, 8);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 17);

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

}