Jump to content
  • 0
Sign in to follow this  
Alexandria

Reset NPC

Question

12 answers to this question

Recommended Posts

  • 0

Maybe this untested NPC edit could help you do that? I took a different approach than Happy's because I think it's a bit cleaner this way:

 

//===== Hercules Script ======================================//= Reset NPC//===== By: ==================================================//= Hercules Dev Team//===== Current Version: =====================================//= 1.3//===== Description: =========================================//= Resets skills, stats, or both.//===== Additional Comments: =================================//= 1.0 First Version//= 1.1 Optimized for the greater good. [Kisuka]//= 1.2 Cleaning [Euphy]//= 1.3 All statuses removed upon skill reset. [Euphy]//===== Custom Additions: ====================================//= 1.3a Custom reset limits. Modernized syntax [jaBote]//============================================================prontera,150,193,4	script	Reset Girl	4_F_TELEPORTER,{	.@ResetStat = 5000;	// Zeny for stat reset	.@ResetSkill = 5000;	// Zeny for skill reset	.@ResetBoth = 9000;	// Zeny for resetting both together	.@MaxReset = 3; // Max amount of resets. Must be positive.	mes "[Reset Girl]";	mes "I am the Reset Girl.";	if (.@MaxReset) {		mes "You can reset your character up to " + .@MaxReset + " times.";		if (ResetCount >= .@MaxReset) {			mes "Sorry, you've already used all of your available resets.";			close;		}		mes "You've already used this service for " + ResetCount + " time(s).";	}	mes "Reset Stats: "+ .@ResetStat +"z";	mes "Reset Skills: "+ .@ResetSkill +"z";	mes "Reset Both: "+ .@ResetBoth +"z";	mes "Please select the service you want:";	next;	switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Cancel")) {	case 1:		mes "[Reset Girl]";		if (Zeny < .@ResetSkill) {			mes "Sorry, you don't have enough Zeny.";			close;		}		if (.@MaxReset) ResetCount++;		Zeny -= .@ResetSkill;		sc_end SC_ALL;		resetskill;		mes "There you go!";		close;	case 2:		mes "[Reset Girl]";		if (Zeny < .@ResetStat) {			mes "Sorry, you don't have enough Zeny.";			close;		}		if (.@MaxReset) ResetCount++;		Zeny -= .@ResetStat;		resetstatus;		mes "There you go!";		close;	case 3:		mes "[Reset Girl]";		if (Zeny < .@ResetBoth) {			mes "Sorry, you don't have enough Zeny.";			close;		}		if (.@MaxReset) ResetCount++;		Zeny -= .@ResetBoth;		sc_end SC_ALL;		resetskill;		resetstatus;		mes "There you go!";		close;	case 4:		close;	}}

Share this post


Link to post
Share on other sites
  • 0

you mean you want it to stop resetting after 3 resets?

 

Assuming that's what you mean, feel free to test this one out: https://github.com/happyme9/AthenaScripts/blob/master/modification_requests/resetnpc_with_limit.txt

 

Limit is currently set to 3 per char. Please test it carefully before implementing on your production/online server.

Edited by Happy

Share this post


Link to post
Share on other sites
  • 0

you mean you want it to stop resetting after 3 resets?

 

Assuming that's what you mean, feel free to test this one out: https://github.com/happyme9/AthenaScripts/blob/master/modification_requests/resetnpc_with_limit.txt

 

Limit is currently set to 3 per char. Please test it carefully before implementing on your production/online server.

 

Thank you but It does not work. You can reset more than 3 times per character.

 

Can you also add a message at the beginning how many reset is remaining?

 

mess "You can reset until 3 times.";

mess "It is your numer '+numberreset+' of reset".

next;

Share this post


Link to post
Share on other sites
  • 0

Talk of the reset NPC of limit three times?
Isn't need to create a character variable data?

 

It is a talk when it wants to maintain reset count data after the restart of the server.

 


Sorry if I misunderstood it.

Share this post


Link to post
Share on other sites
  • 0

Talk of the reset NPC of limit three times?

Isn't need to create a character variable data?

 

It is a talk when it wants to maintain reset count data after the restart of the server.

 

 

Sorry if I misunderstood it.

 

Yeah, 3 times per character :)

 

Reset limit for 3 times :D

Share this post


Link to post
Share on other sites
  • 0

awesome.

data is maintained after the restart.

 

25sub2a.jpg


 

Edited by Lilystar

Share this post


Link to post
Share on other sites
  • 0

awesome.

data is maintained after the restart.

 

25sub2a.jpg

 

 

 

That's how permanent char variables are supposed to behave :P.

 

Thanks for testing!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.