Jump to content
  • 0

Reset Stats/Skills


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

How can i make this script increase its amount everytime you reset the stats/job and both?

		mes "[Mr.Utilities]";
		mes "My services cost :";
		mes "^000000";
		mes "Reset Stats:  "+ callfunc("F_InsertComma",.@reset_cost[1]) +"z";
		mes "Reset Skills: "+ callfunc("F_InsertComma",.@reset_cost[2]) +"z";
		mes "Reset Both:   "+ callfunc("F_InsertComma",.@reset_cost[3]) +"z";
		next;
		.@s = select("Reset Stats:Reset Skills:Reset Both");
		mes "[Mr.Utilities]";
		if (Zeny < .@reset_cost[.@s]) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		Zeny -= .@reset_cost[.@s];
		if ( .@s&1 ) resetstatus;
		if ( .@s&2 ) resetskill;
		mes "Thanks for using my services!";
		end;
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  


mes "[Mr.Utilities]";

mes "My services cost :";

mes "^000000";

mes "Reset Stats: "+ callfunc("F_InsertComma",.@reset_cost[1] + reset_inc[1]) +"z";

mes "Reset Skills: "+ callfunc("F_InsertComma",.@reset_cost[2] + reset_inc[2]) +"z";

mes "Reset Both: "+ callfunc("F_InsertComma",.@reset_cost[3] + reset_inc[3]) +"z";

next;

.@s = select("Reset Stats:Reset Skills:Reset Both");

mes "[Mr.Utilities]";

if (Zeny < .@reset_cost[.@s] + reset_inc[.@s]) {

mes "Sorry, you don't have enough Zeny.";

close;

}

Zeny -= .@reset_cost[.@s] + reset_inc[.@s];

if ( .@s&1 ) resetstatus;

if ( .@s&2 ) resetskill;

setarray .@reset_inc[0],10000,10000,15000; // Increment rate

reset_inc[.@s] += .@reset_inc[.@s-1];

mes "Thanks for using my services!";

end;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

It didn't work out..

 

It says

unexpected arg type C_INT

I changed some things and no errors so far but the problem is the amount of reset dont changed. 

		mes "[Mr.Utilities]";
		mes "My services cost :";
		mes "^000000";
		mes "Reset Stats:  "+ callfunc("F_InsertComma",.@reset_cost[1] + reset_inc[1]) +"z";
		mes "Reset Skills: "+ callfunc("F_InsertComma",.@reset_cost[2] + reset_inc[2]) +"z";
		mes "Reset Both:   "+ callfunc("F_InsertComma",.@reset_cost[3] + reset_inc[3]) +"z";
		next;
		.@s = select("Reset Stats:Reset Skills:Reset Both");
		mes "[Mr.Utilities]";
		if (Zeny < .@reset_cost[.@s]) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		Zeny -= .@reset_cost[.@s];
		.@reset_cost[.@s] += .@reset_inc[.@s];
		if ( .@s&1 ) resetstatus;
		if ( .@s&2 ) resetskill;
		mes "Thanks for using my services!";
		end;
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...