Home 50 Report post Posted April 26, 2018 (edited) Hi. I recently faced an little bug in Fairy Skills related to the client, and it is in every client i tested (top1, pko). For some reason when you put certain combinations of skills like Meditation, Magic, Protection it does not shows the last skill or even shows a diferent level to it, like Expert when suposed to be novice. The solution is pretty simple. 1 - Go to your "Game Folder/scripts/lua/table/scripts.lua 2 - Add this function anywhere function GetNum_Fixed ( Num ) Num = tostring(Num) a = string.sub(Num, -1) a = tonumber(a) return a end 3 - Search for function GetElfSkill 4 - Replace: local Part7 = GetNum_Part7 ( Num ) To local Part7 = GetNum_Fixed ( Num ) And its done. Edited April 26, 2018 by Home 5 Quote Share this post Link to post Share on other sites
Dan 184 Report post Posted April 29, 2018 Hm, problem still occurs when I feed 3 skills, ( I have to feed multiple times until I get all 3 skills, which already happens without this solution you provided.) 1 Quote Share this post Link to post Share on other sites
Jakku 3 Report post Posted April 29, 2018 It works well now. Thank you. 1 Quote Share this post Link to post Share on other sites
Home 50 Report post Posted April 29, 2018 20 hours ago, Vang said: Hm, problem still occurs when I feed 3 skills, ( I have to feed multiple times until I get all 3 skills, which already happens without this solution you provided.) In this case you just need to change success rate in feeding fairy. Quote Share this post Link to post Share on other sites
Dan 184 Report post Posted April 30, 2018 3 hours ago, Home said: In this case you just need to change success rate in feeding fairy. Where can I find this success rate of fairy in? Quote Share this post Link to post Share on other sites
Home 50 Report post Posted April 30, 2018 (edited) edited Edited April 30, 2018 by Home Quote Share this post Link to post Share on other sites
Home 50 Report post Posted April 30, 2018 17 hours ago, Vang said: Where can I find this success rate of fairy in? function AddElfSkill at functions.lua if you dont know how to edit, this is the function done im using on my server function AddElfSkill(Item, SkillType, SkillNum) local Num = GetItemForgeParam(Item, 1) local Part1 = GetNum_Part1(Num) local Part2 = GetNum_Part2(Num) local Part3 = GetNum_Part3(Num) local Part4 = GetNum_Part4(Num) local Part5 = GetNum_Part5(Num) local Part6 = GetNum_Part6(Num) local Part7 = GetNum_Part7(Num) if Part2 == SkillNum then Part3 = SkillType Num = SetNum_Part3(Num, Part3) Num = SetNum_Part2(Num, Part2) SetItemForgeParam(Item, 1, Num) return end if Part4 == SkillNum then Part5 = SkillType Num = SetNum_Part5(Num, Part5) Num = SetNum_Part4(Num, Part4) SetItemForgeParam(Item, 1, Num) return end if Part6 == SkillNum then Part7 = SkillType Num = SetNum_Part7(Num, Part7) Num = SetNum_Part6(Num, Part6) SetItemForgeParam(Item, 1, Num) return end --local rad = math.random(1, 100) if Part2 == 0 and Part3 == 0 then Part2 = SkillNum Part3 = SkillType Num = SetNum_Part3(Num, Part3) Num = SetNum_Part2(Num, Part2) SetItemForgeParam(Item, 1, Num) return --[[ else -- Go Pirate King Custom Feature 0% chance to override if rad == 0 then Part2 = SkillNum Part3 = SkillType Num = SetNum_Part3(Num, Part3) Num = SetNum_Part2(Num, Part2) SetItemForgeParam(Item, 1, Num) return end ]]-- end if Part4 == 0 and Part5 == 0 then Part4 = SkillNum Part5 = SkillType Num = SetNum_Part5(Num, Part5) Num = SetNum_Part4(Num, Part4) SetItemForgeParam(Item, 1, Num) return --[[ else -- Go Pirate King Custom Feature 0% chance to override if rad == 0 then Part4 = SkillNum Part5 = SkillType Num = SetNum_Part5(Num, Part5) Num = SetNum_Part4(Num, Part4) SetItemForgeParam(Item, 1, Num) return end ]]-- end if Part6 == 0 and Part7 == 0 then Part6 = SkillNum Part7 = SkillType Num = SetNum_Part7(Num, Part7) Num = SetNum_Part6(Num, Part6) SetItemForgeParam(Item, 1, Num) return else Part6 = SkillNum Part7 = SkillType Num = SetNum_Part7(Num, Part7) Num = SetNum_Part6(Num, Part6) SetItemForgeParam(Item, 1, Num) return end end 1 Quote Share this post Link to post Share on other sites
mkhzaleh 132 Report post Posted August 24, 2018 @Home i tried it but this was the result another test used Expert Recover Expert Magic Expert Meditation for normal pets work fine without this Quote Share this post Link to post Share on other sites
nunb2560 1 Report post Posted September 12, 2018 (edited) Works fine for normal pets or 2nd gen pets(made by cod), but dont work for 2nd gen pets that were made by marriage. Edited September 13, 2018 by nunb2560 Quote Share this post Link to post Share on other sites