Jump to content
  • 0
Sign in to follow this  
nasagnilac

Reset Skills Issue

Question

Anyone know how to fix this problem? Is this a source problem or client side.

 

Scenario Sample.

I got my new platinum skill and I take a reset from an npc or used @skreset. The platinum skill will be reset too..

 

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Copied from custom/resetnpc.txt and platinum_skills.txt

 

careful: this doesn't check if the player did the quest/had the platinum skills before. It just applies all the related plat skills.

 

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

prontera,150,193,4	script	Reset Girl	4_F_TELEPORTER,{

	set .@ResetStat,5000;	// Zeny for stat reset
	set .@ResetSkill,5000;	// Zeny for skill reset
	set .@ResetBoth,9000;	// Zeny for resetting both together

	mes "[Reset Girl]";
	mes "I am the Reset Girl.";
	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;
		}
		Zeny -= .@ResetSkill;
		sc_end SC_ALL;
		resetskill;
		callsub L_Reset;
		mes "There you go!";
		close;
	case 2:
		mes "[Reset Girl]";
		if (Zeny < .@ResetStat) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		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;
		}
		Zeny -= .@ResetBoth;
		sc_end SC_ALL;
		resetskill;
		callsub L_Reset;
		resetstatus;
		mes "There you go!";
		close;
	case 4:
		close;
	}
	
L_Reset:
	skill 142,1,0;
	switch(BaseClass) {
		case 0: if (Class !=23) skill 143,1,0; return;
		case 1: skill 144,1,0; skill 145,1,0; skill 146,1,0; return;
		case 2: skill 157,1,0; return;
		case 3: skill 147,1,0; skill 148,1,0; return;
		case 4: skill 156,1,0; return;
		case 5: skill 153,1,0; skill 154,1,0; skill 155,1,0; return;
		case 6: skill 149,1,0; skill 150,1,0; skill 151,1,0; skill 152,1,0; return;
		default: return;
	}
	switch(BaseJob) {
		case 7: skill 1001,1,0; return;
		case 8: skill 1014,1,0; return;
		case 9: skill 1006,1,0; return;
		case 10: skill 1012,1,0; skill 1013,1,0; return;
		case 11: skill 1009,1,0; return;
		case 12: skill 1003,1,0; skill 1004,1,0; return;
		case 14: skill 1002,1,0; return;
		case 15: skill 1015,1,0; skill 1016,1,0; return;
		case 16: skill 1007,1,0; skill 1008,1,0; skill 1017,1,0; skill 1018,1,0; skill 1019,1,0; return;
		case 17: skill 1005,1,0; return;
		case 18: skill 238,1,0; return;
		case 19: skill 1010,1,0; return;
		case 20: skill 1011,1,0; return;
		default: return;
	}
	
}

Share this post


Link to post
Share on other sites
  • 0

why should there be a problem? resetting skills is resetting skills, if you want to spare some skills (example the plat skills) you need to edit that command to your linking.

Another option would be to move the reset to the label and then trigger it via bindatcommand (replace normal @skreset)

Share this post


Link to post
Share on other sites
  • 0

I am using 20130807 client and after reseting my skill using command @skreset or npc script. It will also remove the quest skills. This means their is a problem with the lua or herc source?

Share this post


Link to post
Share on other sites
  • 0

Looks like this is a bug in linux server. I am testing it in my localhost and it works on the latest herc. but while testing in linux server the skill still reset. I just need to make an adjustment using script.

Edited by GM Fenrir™

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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