//===== rAthena Script =======================================
//= Reset NPC
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.06
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= Resets skills, stats, or both.
//= https://rathena.org/board/topic/102190-stat-reset-with-dynamic-price/
//===== Additional Comments: =================================
//= 1.00 First Version
//= 1.01 Optimized for the greater good. [Kisuka]
//= 1.02 Cleaning [Euphy]
//= 1.03 All statuses removed upon skill reset. [Euphy]
//= 1.04 Compressed Script [Stolao]
//= 1.05 Added limit use option [Stolao]
//= 1.06 Added Dynamic Pricing For Bisuke on Rathena [Stolao]
//============================================================
prontera,150,193,4 script Reset Girl 124,{
// Skills, Stats, Both, Limit
if(BaseLevel > 85){ set .@Reset, 100000, 100000, 90000, 0;
else if(BaseLevel > 75){ set .@Reset, 75000, 75000, 70000, 0;
else if(BaseLevel > 45){ set .@Reset, 50000, 50000, 50000, 0;
else { set .@Reset, 10000, 10000, 9000, 0; }
mes "[Reset Girl]";
if(.@Reset[3] && reset_limit > .@Reset[3]) {
mes "Sorry you can only reset "+.@Reset[3]+" time in your life.";
close;
}
mes "I am the Reset Girl.";
mes "Reset Stats: "+ callfunc("F_InsertComma",.@Reset[1]) +"z";
mes "Reset Skills: "+ callfunc("F_InsertComma",.@Reset[0]) +"z";
mes "Reset Both: "+ callfunc("F_InsertComma",.@Reset[2]) +"z";
mes "Please select the service you want:";
next;
set .@i,(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Cancel"));
if(.@i > 3) close;
mes "[Reset Girl]";
if (Zeny < .@Reset[.@i-1]) {
mes "Sorry, you don't have enough Zeny.";
close;
}
if(.@Reset[3]){
mes "You can only reset "+.@Reset[3]+" time in your life, are you sure?";
if(select("Let me think:Thats fine") == 1) close;
}
set Zeny, Zeny-.@Reset[.@i-1];
if(.@i&1){
sc_end SC_ALL;
ResetSkill;
}
if(.@i&2) ResetStatus;
mes "There you go!";
if(.@Reset[3]) set reset_limit,reset_limit + 1;
close;
}
here you are although an easier option would be to make it x cost per leveleg:
set .@Reset, BaseLevel * BaseLevel * 10, JobLevel * JobLevel * 15, BaseLevel * JobLevel * 9, 0;
hmm? set ?? or setarray ??
>.>
<.<