Jump to content
  • 0

Pick 1 skill to reset only


Question

Posted

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

2 answers to this question

Recommended Posts

  • 0
Posted
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 ?

  • 0
Posted

  

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

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.

 

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