summaryrefslogblamecommitdiff
path: root/npc/custom/jobs/reset.txt
blob: 8d69650dfa0f96e51dcf6f2b94aa9ed58457c761 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              



                                                              
       


                                                              
                                  
                                                              

                                                

                                                              
                                                     


                                                                                    

                                 


                                           

                                                  
                                                                                  

                                   
                                     
                                                                 
                              

                                                                                                           
                                      



                                   
                                    
                                                                 
                              

                                                                                                           
                                     



                                   
                                    
                                                                 
                              

                                                                                                           
                                     



                            
                                       
                      
         
 
//===== rAthena Script =======================================
//= Reset NPC
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Resets skills, stats, or both.
//===== Additional Comments: =================================
//= 1.0 First Version
//= 1.1 Optimized for the greater good. [Kisuka]
//============================================================

prontera,150,193,4	script	Reset Girl	124,{
	set @rskill,5000; // Set value in zeny for skill reset here
	set @rstat,5000; // Set value in zeny for stat reset here
	set @rboth,9000; // Set value for "package deal" (i.e.: reseting both) here.
	mes "[Reset Girl]";
	mes "I am a Reset Girl.";
	mes "Reset Stats: "+ @rstat +"z";
	mes "Reset Skills: "+ @rskill +"z";
	mes "Reset Both: "+ @rboth +"z";
	mes "Please select the service you want:";
	next;
	switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Quit")) {
	case 1:
		mes "[Reset Girl]";
		if (Zeny < @rskill) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
		set Zeny,Zeny-@rskill;
		ResetSkill;
		close;
	case 2:
		mes "[Reset Girl]";
		if (Zeny < @rstat) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
		set Zeny,Zeny-@rstat;
		ResetStatus;
		close;
	case 3:
		mes "[Reset Girl]";
		if (Zeny < @rboth) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
		set Zeny,Zeny-@rboth;
		ResetSkill;
		ResetStatus;
		close;
	case 4:
		mes "Come again soon!";
		close;
	}
}