Jump to content
  • 0

Reset Stats/Skills


Question

Posted

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;

2 answers to this question

Recommended Posts

  • 0
Posted


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;

  • 0
Posted

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;

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...