Jump to content
  • 0
Jedzkie

Skill is not saving when log out

Question

hi all! i tried to make a passive skill and then it worked perfectly, i already learned it, but when i logged out, the skill returns to being unlearned

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Check skill_tree.conf, if you have proper data there, also check lua side, or maybe check map server for any error about sql.

Share this post


Link to post
Share on other sites
  • 0

Skills should be stored via sql, make sure you have skill table

 

CREATE TABLE IF NOT EXISTS `skill` (  `char_id` int(11) unsigned NOT NULL DEFAULT '0',  `id` smallint(11) unsigned NOT NULL DEFAULT '0',  `lv` tinyint(4) unsigned NOT NULL DEFAULT '0',  `flag` tinyint(1) unsigned NOT NULL DEFAULT '0',  PRIMARY KEY (`char_id`,`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Share this post


Link to post
Share on other sites
  • 0

Check skill_tree.conf, if you have proper data there, also check lua side, or maybe check map server for any error about sql.

 

i already checked it, there's no map-server error or any sql errors. btw, i set the skill as quest skill.

 

 

Skills should be stored via sql, make sure you have skill table

 

CREATE TABLE IF NOT EXISTS `skill` (  `char_id` int(11) unsigned NOT NULL DEFAULT '0',  `id` smallint(11) unsigned NOT NULL DEFAULT '0',  `lv` tinyint(4) unsigned NOT NULL DEFAULT '0',  `flag` tinyint(1) unsigned NOT NULL DEFAULT '0',  PRIMARY KEY (`char_id`,`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1;

 

i do have skill table in my sql, but still its not saving.

Share this post


Link to post
Share on other sites
  • 0

if your skill table is empty, your console will have a debug as to why it isn't saving. This is common problem if the field names are mismatching or the column count isn't correct

Share this post


Link to post
Share on other sites
  • 0

i noticed the id of my skill is in the skill table, but still removes the skill when i logged out.

Share this post


Link to post
Share on other sites
  • 0

i've already fixed this issue, try to put the skill on the last slot of your skill tree.

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

×
×
  • Create New...

Important Information

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