summaryrefslogblamecommitdiff
path: root/world/map/npc/002-1/rogue.txt
blob: 7358230cd3482ca06dd1d342c2cfd2d045010fda (plain) (tree)
1
2
3
4
5
6
7
8
9

  
                                      
 
                                              
 
                                            
 
                               
 










                                                    
 
                                   
 

                                      

        
                         
                
 



                           
                 

       

                                       
                 

          



                                                    



                 
          
 
//

002-1.gat,22,21,0|script|Malivox|103,{

// if (ResetA_charstate == 1) goto L_Multiple;

// set @cost, 10000000 / ($ResetA_uses + 1);

    set @cost, BaseLevel * 100;

    mes "[Rogue Mage]";
    mes "\"I have come across a spell that will";
    mes "reset your status points.";
    mes "Normally this spell is expensive, but";
    mes "due to an unusual constellation of the";
    mes "stars I can cast it very cheaply!";
    mes "For you it will cost only "+@cost+" gp.\"";
    next;
    menu
        "Reset my stats",-,
        "Forget about it",L_Pass;

    if (Zeny<@cost) goto L_NoMoney;

// set $ResetA_uses, $ResetA_uses + 1;
// set ResetA_charstate, 1;

L_Reset:
    set Zeny, Zeny-@cost;
    resetstatus;

    mes "[Rogue Mage]";
    mes "\"There you are.";
    mes "";
    mes "Good as new!\"";
    goto L_Close;

L_Pass:
    mes "[Rogue Mage]";
    mes "\"Very well then, see you.\"";
    goto L_Close;

L_NoMoney:
    mes "[Rogue Mage]";
    mes "\"Oh dear, the price cannot be bargained.";
    mes "";
    mes "Perhaps you can borrow from a friend?\"";
    goto L_Close;

L_Close:
    set @cost, 0;
    close;
}