imblad3 Posted October 9, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 24 Reputation: 2 Joined: 03/13/12 Last Seen: February 11 Share Posted October 9, 2013 Hi there, well maybe I'm too dumb or blind and did not see any document in wiki or doc (server folder). It seems I can't find the docs that explain skill table (I'm currently using latest rathena (git) and sql database) so Here is the question: -- -- Table structure for table `skill` -- 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; I need to know the function of "flag", because my royal guard has skill heal say lv 5 and when I look at the table the flag say 4 and I can't reset it. So if possible can you guys tell me the number means? like 4 = no reset? Hope you all can help me thanks in advance Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 9, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Tuesday at 05:38 PM Share Posted October 9, 2013 doc/script_commands.txt#L5100 Flag is 0 if the skill is given permanently (will get written with the characterdata) or 1 if it is temporary (will be lost eventually, this is meant for carditem scripts usage.). The flag parameter is optional, and defaults to 1 in'skill' and to 2 in 'addtoskill'.Flag 2 means that the level parameter is to be interpreted as a stackableadditional bonus to the skill level. If the character did not have that skillpreviously, they will now at 0+the level given.Flag 4 is the same as flag 1 in that it saves to the database. However, these skillsare ignored when any action is taken that adjusts the skill tree (reset/job change). Quote Link to comment Share on other sites More sharing options...
Question
imblad3
Hi there, well maybe I'm too dumb or blind and did not see any document in wiki or doc (server folder).
It seems I can't find the docs that explain skill table (I'm currently using latest rathena (git) and sql database)
so Here is the question:
I need to know the function of "flag", because my royal guard has skill heal say lv 5 and when I look at the table the flag say 4
and I can't reset it. So if possible can you guys tell me the number means? like 4 = no reset?
Hope you all can help me thanks in advance
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.