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




               
                                      
 
                                            
                                   

                                                                             

         
        
                                                                                        

























                                                                                













                                                                                                                                                     
       
                               
                                               
                                                        

                                                      

                                            




                  
// TMW2 script.
// Author:
//    Saulc
//    Jesusalva
// Description:
//    Luca, of Physical Science Class.

003-0,34,41,0	script	Luca	NPC_PLAYER,{
    if (!MAGIC_LVL) goto L_NoMagic;
    mes l(".:: Scholarship Class ::.");
    mesc l("Specialized in support, buff, debuff and strengthening skills.");
    next;
    mesn;
    do {
    mesc l("You have @@/@@ magic skill points available.", sk_points(), sk_maxpoints());
    next;
    mesc l("Healing - The most basic healing skill, requires no items to use.");
    mesc l("Mana Wisdom - Raise Mana EXP Gain rate");
    menuint
        "Healing", AL_HEAL,
        "Mana Wisdom", TMW2_SAGE,
        "Cancel", 0;
    mes "";

    switch (@menuret) {
        case AL_HEAL:
            if (!mlearn(AL_HEAL, 1, 1, SpellBookPage, 1))
                mesc l("You do not meet all requisites for this skill."), 1;
            break;
        case TMW2_SAGE:
            if (!mlearn(TMW2_SAGE, 1, 1, SpellBookPage, 1))
                mesc l("You do not meet all requisites for this skill."), 1;
            break;
        default:
            if (@menuret)
                Exception("ERROR skill not implemented", RB_DEFAULT|RB_SPEECH);
            else
                closeclientdialog;
            break;
    }
    } while (@menuret);
    close;

L_NoMagic:
    next;
    mesn;
    mesq l("Your lack of magical power is critical. I dare say, you might never in your life get access to a Mana Stone.");
    next;
    mesn;
    mesq l("Besides the Magic Council, Andrei Sakar have his own Mana Stone, but I doubt he would train the likes of you, or share his Mana Stone.");
    next;
    mesn;
    mesq l("Perhaps, in the city, someone knows rumors about Mana Stones and can teach you. Other than that, you're on your own.");
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
    setunitdata(.@npcId, UDT_HEADMIDDLE, BromenalChest);
    setunitdata(.@npcId, UDT_HEADBOTTOM, JeansShorts);
    setunitdata(.@npcId, UDT_WEAPON, DeepBlackBoots);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 21);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 6);

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