For some reason when you put 3 skills in your fairy, it does not show the last skill or even shows a different skill or level. In order to alleviate this problem, you need follow the guide presented by @Home.
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 )
Now, you change the skill implementation sucess rate. Go at functions.lua in your server files /resource/script/calculate/functions.lua
Search for
function AddElfSkill
Change booth lines
if rad<= 30 then
if rad> 30 and rad < 60 then
for
if rad == 0 then
Now its 100%.
This guide is just what @Home suggers. But this only works for normal pets and 2gen pets made by code, it does not work for 2gen pets that were made by fairy marriage.
So, you need to change fairy marriage. Go at forge.lua in your server files and search for
function jlborn_item
Now, you need to change what the function are doing for you. For each demonic fruit (3918-3925), you have this functions
-- demonic fruit 3918
else
r1,r2 =MakeItem ( role , 231 , 1 , 4 ) --Fairy of Luck
end
else
r1,r2 =MakeItem ( role , 231 , 1 , 4 ) --Fairy of Luck
This function represents what it gives to you. The function is doing a bugged pet from marriage, so you need to change this function for
else
r1,r2 =GiveItem ( role , 0 , 231 , 1 , 4 ) --Fairy of Luck
end
else
r1,r2 =GiveItem ( role , 0 , 231 , 1 , 4 ) --Fairy of Luck
In this case, the marriage will give the same 2 gen pet that was made by code (level 0, but at least works), but there's a problem about possession and self destruct skill. So you need to fix that.
Go at skilleffect.lua in your server files. Search for possession skill
function Skill_JLFT_BEGIN
change this line
local item_elf_type = GetItemType ( item_elf )
for
local item_elf_id = GetItemID ( item_elf )
then, change this other line
if item_elf_type ~= 59 or Part1~=1 then
for
if item_elf_id < 231 and item_elf_id > 237 then
Codes of 2gen pets are in 231-237.
Then search for
function State_JLFT_Add
change the line
local Part1 = GetNum_Part1 ( Num_JL )
for
local Part1 = 1 -- GetNum_Part1 ( Num_JL )
Search for self destruct skill
function Skill_jlzb_Begin
change the line
local item_elf_type = GetItemType ( item_elf )
for
local item_elf_id = GetItemID ( item_elf )
change the other line
if item_elf_type ~= 59 or Part1~=1 then
for
if item_elf_id < 231 and item_elf_id > 237 then
Then search for
function Skill_jlzb_End
change the line
local item_elf_type = GetItemType ( item_elf )
for
local item_elf_id = GetItemID ( item_elf )
change the other line
if item_elf_type == 59 then
for
if item_elf_id >= 231 and item_elf_id <= 237 then
So, thats all.