Jump to content
  • 0

Pick 1 skill to reset only


Eross

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

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

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

  

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.

 

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