Jump to content
  • 0
Eross

Pick 1 skill to reset only

Question

Hi ! Is it possible to pick just 1 skill only to reset and refund skillpoints at the same time ??? instead of resetting all my skills .. Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
8 hours ago, Origami said:

Hi ! Is it possible to pick just 1 skill only to reset and refund skillpoints at the same time ??? instead of resetting all my skills .. Thanks

I think that in order to do this you'll have to mess up with SQL skill id and level of charid. Basically what's your purpose on doing this? Just wondering 🙂

Link to comment
Share on other sites

  • 0

  

getskilllist();
for ([email protected] = 0; [email protected] < @skilllist_count; [email protected]++) {
	if (@skilllist_lv[[email protected]] > 0 && (@skilllist_flag[] == SKILL_PERM || @skilllist_flag[] == SKILL_PERM_GRANT) 
		[email protected]$ = [email protected]$ + "skill_id ["[email protected]_id[[email protected]]+"] lv = "+ @skilllist_lv[[email protected]];
	[email protected]$ = [email protected]$ + ":";
}
[email protected] = select([email protected]$) - 1;
addtoskill @skilllist_id[[email protected]], [email protected]_lv[[email protected]];
SkillPoint += @skilllist_lv[[email protected]];

however, this is not advised to use at server that doesn't allow to bypass skill tree

if you want to display the skill name, either create a src mod to retrieve the skill name from db/skill_db (or search forum)

or store it in an array and retrieve it.

 

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

Important Information

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