Jump to content
  • 0

Reset Stats per status


Question

Posted

Hi ! everybody know that reseting stats can be done by using resetstatus; script .. But how about if I only want to reset is STR or AGI or Dex ?? How to do that ???

4 answers to this question

Recommended Posts

  • 0
Posted

may try something like this

prontera,155,181,5	script	Sample	757,{
	for (.@stat = bStr; .@stat <= bLuk; .@stat++)
		.@param[.@stat - bStr] = readparam(.@stat);
	mes "Select the stats to reset to 1.";
	do {
		.@menu$ += "Str - "+ .@param[0] + ":";
		.@menu$ += "Vit - "+ .@param[1] + ":";
		.@menu$ += "Int - "+ .@param[2] + ":";
		.@menu$ += "Agi - "+ .@param[3] + ":";
		.@menu$ += "Dex - "+ .@param[4] + ":";
		.@menu$ += "Luk - "+ .@param[5] + ":";
		.@menu$ += "Reset";
		.@i = select(.@menu$);
		.@param[.@i] = 1;
	} while (.@i <= 6);
	resetstatus;
	for (.@stat = bStr; .@stat <= bLuk; .@stat++) {
		while (readparam(.@stat) < .@param[.@stat - bStr])
			statusup .@stat;
	}
	end;
}

 

  • Upvote 2
  • 0
Posted

Here you have a list of possible commands to use in a script:

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt

 

I've read it quickly but I don't see any command to do what you're asking, so it is very possible that you need to implement the command in the source.

 

I might do that later if I have some time. It should be pretty easy by copying and pasting the `pc_resetstate` method.

  • 0
Posted
On 7/12/2021 at 11:44 AM, Origami said:

Hi ! everybody know that reseting stats can be done by using resetstatus; script .. But how about if I only want to reset is STR or AGI or Dex ?? How to do that ???

This is not a 'reset' tho,
But you can use @STR/AGI/DEX/VIT/INT/LUK (-)Number.
Example:
*I'm gonna 'reset' my STR to 1.*
@str - 98

11.png

  • 0
Posted
5 hours ago, nihkub said:

This is not a 'reset' tho,
But you can use @STR/AGI/DEX/VIT/INT/LUK (-)Number.
Example:
*I'm gonna 'reset' my STR to 1.*
@str - 98

11.png

Yes but your Status Point doesnt get refunded 

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...