Jump to content
  • 0

Stat Reset with Dynamic Price


Bisuke

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

Can I request for a stat reset script that changes the price according to level?

 

1-45 - 10,000 (9,000 for both)

46-75 - 50,000 (45,000 for both)

76-85 - 75,000 (70,000 for both)

86-99 - 100,000 (95,000 for both)

 

Thanks in advance!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Can I request for a stat reset script that changes the price according to level?

 

1-45 - 10,000 (9,000 for both)

46-75 - 50,000 (45,000 for both)

76-85 - 75,000 (70,000 for both)

86-99 - 100,000 (95,000 for both)

 

Thanks in advance!

//===== 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 level

eg:

	set .@Reset,	BaseLevel * BaseLevel * 10,	JobLevel * JobLevel * 15,	BaseLevel * JobLevel * 9,	0;
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  144
  • Reputation:   19
  • Joined:  06/28/12
  • Last Seen:  

Take the script level check.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

Thanks Stolao! Big help!

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 

Can I request for a stat reset script that changes the price according to level?

 

1-45 - 10,000 (9,000 for both)

46-75 - 50,000 (45,000 for both)

76-85 - 75,000 (70,000 for both)

86-99 - 100,000 (95,000 for both)

 

Thanks in advance!

//===== 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 level

eg:

	set .@Reset,	BaseLevel * BaseLevel * 10,	JobLevel * JobLevel * 15,	BaseLevel * JobLevel * 9,	0;

 

hmm?  set ?? or setarray ??  /hmm

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

 

 

Can I request for a stat reset script that changes the price according to level?

 

1-45 - 10,000 (9,000 for both)

46-75 - 50,000 (45,000 for both)

76-85 - 75,000 (70,000 for both)

86-99 - 100,000 (95,000 for both)

 

Thanks in advance!

//===== 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 level

eg:

	set .@Reset,	BaseLevel * BaseLevel * 10,	JobLevel * JobLevel * 15,	BaseLevel * JobLevel * 9,	0;

 

hmm?  set ?? or setarray ??  /hmm

 

 

>.>

<.<

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

I finally get to try this on my test server, however there's an error that says, missing 3 curly. I tried adding the closing curlies to the first 3 conditional statement:

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;}

However, A new error occured, unexpected ";".

Edited by Bisuke
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

I finally get to try this on my test server, however there's an error that says, missing 3 curly. I tried adding the closing curlies to the first 3 conditional statement:

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;}

However, A new error occured, unexpected ";".

 

set should be setarray as Emistry mentioned

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...