Jump to content
Sign in to follow this  
tellon

Skill bug

Recommended Posts

Hi guys, i have a bug with the skills, idk why and i never see it, my skills dont level up, i click some and dont work, PLS HELP ME i try to change variable,function,skillinfo,skilleffect,itemeffect,attrcalculate,int_attr, all calculate files, and dont work pls save me 

cap00000.png

Share this post


Link to post
Share on other sites
On 6/26/2017 at 7:10 AM, tellon said:

Hi guys, i have a bug with the skills, idk why and i never see it, my skills dont level up, i click some and dont work, PLS HELP ME i try to change variable,function,skillinfo,skilleffect,itemeffect,attrcalculate,int_attr, all calculate files, and dont work pls save me 

cap00000.png

How you do to fix it. In my own pc have the same problem and not know how to fix

Share this post


Link to post
Share on other sites

Hello @tellon and @V1k1NGO!

 

Add the following scripts to your files:

 

 

functions.lua

-- The function checks if skill can be learned or upgraded
function CheckCanUpgradeSkill(role, skill_id) 

       -- Check if player has skill
       local skill = GetSkillLv(role, skill_id) 
       if (skill > 0) then 
           
          -- Looking for the skill in 'special' skill list which can't be upgraded using 'plus' button in skill form (Fairy possession for example) 
          local Data 
          for Data in SkillList do 
              
             if SkillList [Data] == skill_id then   
                SystemNotice(role, "It is impossible to upgrade the skill!") 
                return 0 
             end 
              
          end 
              
          -- Player has skill and it is not 'special' skill. It is OK!
          return 1 
           
       end 
           
       -- Player hasn't the skill
       SystemNotice(role, "You haven't learned this skill. It is impossible to increase the level!") 
       return 0 

end

 

variable.lua

SkillList        = {} 
SkillList[1]     = 0280 
SkillList[2]     = 0311 
SkillList[3]     = 0312 
SkillList[4]     = 0313 
SkillList[5]     = 0314 
SkillList[6]     = 0315 
SkillList[7]     = 0316 
SkillList[8]     = 0317 
SkillList[9]     = 0318 
SkillList[10]    = 0319 
SkillList[11]    = 0321 
SkillList[12]    = 0322 
SkillList[13]    = 0323 
SkillList[14]    = 0324 
SkillList[15]    = 0338 
SkillList[16]    = 0339 
SkillList[17]    = 0340 
SkillList[18]    = 0341 
SkillList[19]    = 0453 
SkillList[20]    = 0454 
SkillList[21]    = 0455 
SkillList[22]    = 0456 
SkillList[23]    = 0457 
SkillList[24]    = 0458 
SkillList[25]    = 0459 
SkillList[26]    = 0467

 


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
Reply to this topic...

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

Sign in to follow this  

×
×
  • Create New...