Jump to content
Sign in to follow this  
blazi10

Add New pet to Fairy Marriage

Recommended Posts

Hello! I Decided Make this Guide because i think some people will need it :)

Let's start:

1.Go your server files-->Resource--> Script-->Calculate--> Forge.lua

2. Searsch (ctr+f ) for: "function jlborn_item ( Table )", scroll down a bit and you'll see:

Spoiler

    if Item_EMstone_ID ==3918 then ---Çŕɬ¶ńħąűʵ
        local j1 = TakeItem( role, 0,4530, 10 )            ---ĂŔζÎÚÔôČâ     
        local j2 = TakeItem( role, 0,3434, 10 )            ----·ĎÁéÎäĘżşˇąÇ 
        if j1==0 or j2==0 then
            SystemNotice ( role ,"Deletion of pet fairy reborn tools failed")
            return
        end 
        local rad = math.random ( 1, 100 )
        local r1 = 0
        local r2 = 0
        if Item_JLone_ID ==680 or Item_JLother_ID ==680 then
            if Item_JLone_ID==Item_JLother_ID then
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )    --Mordo JR        
            else
                r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
            end

        else
            r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
        end

So... Item_JLone_ID its pet ID from iteminfo.txt (Mordo here)

for add new Fairy to marriage without make new Demonic fruit we need add new lines, same as with mordo but with little change:

Spoiler

        elseif Item_JLone_ID ==xxx or Item_JLother_ID ==xxx then
            if Item_JLone_ID==Item_JLother_ID then
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of pet
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of pet
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of pet
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )    --pet      
            else
                r1,r2 =MakeItem ( role , zzzz  , 1 , 4 )    ----Pet what you get when use 1 custom fairy (made by you) and 1st gen
            end

add it below it:

Spoiler

     if Item_JLone_ID ==680 or Item_JLother_ID ==680 then
            if Item_JLone_ID==Item_JLother_ID then
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )    --Mordo JR        
            else
                r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
            end

so finnaly your script for marriage new pet should look like this:

Spoiler

    if Item_EMstone_ID ==3918 then ---Çŕɬ¶ńħąűʵ
        local j1 = TakeItem( role, 0,4530, 10 )            ---ĂŔζÎÚÔôČâ     
        local j2 = TakeItem( role, 0,3434, 10 )            ----·ĎÁéÎäĘżşˇąÇ 
        if j1==0 or j2==0 then
            SystemNotice ( role ,"Deletion of pet fairy reborn tools failed")
            return
        end 
        local rad = math.random ( 1, 100 )
        local r1 = 0
        local r2 = 0
        if Item_JLone_ID ==680 or Item_JLother_ID ==680 then
            if Item_JLone_ID==Item_JLother_ID then
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )
            elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Mordo JR
                r1,r2 =MakeItem ( role , 681  , 1 , 4 )    --Mordo JR        
            else
                r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
            end
        elseif Item_JLone_ID ==xxx or Item_JLother_ID ==xxx then
            if Item_JLone_ID==Item_JLother_ID then
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of Angela JR
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of Angela JR
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of Angela JR
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )    --Angela JR        
            else
                r1,r2 =MakeItem ( role , zzzz  , 1 , 4 )    ----Fairy of mystic
            end
        else
            r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck
        end

"xxx"= New 1st gen pet (pet what you want use to marriage for other pet)

"xxxx"= New generation of pet obtained from marriage two pets with "xxx" id

"zzzz"= Pet what you can get from marriage 1st gen pet( based) and one your new 1st gen pet.

i used it for Demonic fruit with ID==3918

and you need make the same thing for all Demonic fruit's what you want

REMEMBER! Copy only This line For no Crash Fairy marriage (Fairy of constitution etc)

Spoiler

       elseif Item_JLone_ID ==xxx or Item_JLother_ID ==xxx then
            if Item_JLone_ID==Item_JLother_ID then
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then    --12% Chance of pet
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then    --50% Chance of pet
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )
            elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then    --90% Chance of pet
                r1,r2 =MakeItem ( role , xxxx  , 1 , 4 )    --pet      
            else
                r1,r2 =MakeItem ( role , zzzz  , 1 , 4 )    ----Pet what you get when use 1 custom fairy (made by you) and 1st gen
            end

Log in the game and Enjoy! your new pet marriage work :) 

Edited by blazi10
  • Like 2
  • Thanks 1

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