Jump to content
Sign in to follow this  
gainster81

Fairy marriage (angela JR) not working

Recommended Posts

Hey guys, my fairy marriage system isnt working. I edited forge.lua to make sure i could marry angelas to get angela jr. I gave item ID 983 and 984 to both pets. I leveled 2 angelas to lv20 and marriage them and instead of getting an angela JR i got a fairy of luck. What is wrong with my forge? It looks like the following.

 

 

    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
        elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
        if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
        elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
        elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
        elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
        elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
        elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
            r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
        else
            r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
        end
        local Item_newJL = GetChaItem ( role , 2 , r2 )            --ȡо«ÁéµÀ¾ßÖ¸Õë
        local Item_newJL_ID = GetItemID ( Item_newJL )
        local Num_newJL = GetItemForgeParam ( Item_newJL , 1 )
        local Part1_newJL = GetNum_Part1 ( Num_newJL )    --Get Num Part 1 µ½ Part 7
        local Part2_newJL = GetNum_Part2 ( Num_newJL )    
        local Part3_newJL = GetNum_Part3 ( Num_newJL )
        local Part4_newJL = GetNum_Part4 ( Num_newJL )
        local Part5_newJL = GetNum_Part5 ( Num_newJL )
        local Part6_newJL = GetNum_Part6 ( Num_newJL )
        local Part7_newJL = GetNum_Part7 ( Num_newJL )            
        if lv_JLone>=20 and lv_JLother >=20 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 1                        ---------³õ¼¶½×¶Î
        end
        if lv_JLone>=25 and lv_JLother >=25 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 2                        ---------Öм¶½×¶Î
        end
        if lv_JLone>=35 and lv_JLother >=35 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 3                        ---------¸ß¼¶½×¶Î
        end
        local rad1 = math.random ( 1, 100 )
        if Part3_newJL==3 then
            GiveItem ( role , 0 , 609  , 1 , 4 )    --Expert Fairy Possession
            GiveItem ( role , 0 , 612  , 1 , 4 )    --Expert Self Destruct
        end

Share this post


Link to post
Share on other sites

I think you forgot one line?

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

 

TIP: Do not make pets above line 500 if you do, the stats will bug when possing, it will grant random stats also passively.

 

Also, if it  doesn't work, try changing mordo jr id 681 to your Angela Jr Id and marry 2 mordos?

Edited by Joah

Nissan-GT-R.gif

Share this post


Link to post
Share on other sites

i hope this will help you

 

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   --------- delete this line
                  r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck  ------------- delete this line
           end   ------------- delete this line
  elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then

and also

elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
        if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
               r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
               elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
               r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
               elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
               r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
               elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
               r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
        else
                r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
        end

end   ----------add this line

so the script become


 

 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 == 983 and Item_JLother_ID == 983 then
                if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                        elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                        elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                        elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                        elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
                        elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                        r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                  else
                        r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
                 end

        end
        local Item_newJL = GetChaItem ( role , 2 , r2 )            --ȡо«ÁéµÀ¾ßÖ¸Õë
        local Item_newJL_ID = GetItemID ( Item_newJL )
        local Num_newJL = GetItemForgeParam ( Item_newJL , 1 )
        local Part1_newJL = GetNum_Part1 ( Num_newJL )    --Get Num Part 1 µ½ Part 7
        local Part2_newJL = GetNum_Part2 ( Num_newJL )    
        local Part3_newJL = GetNum_Part3 ( Num_newJL )
        local Part4_newJL = GetNum_Part4 ( Num_newJL )
        local Part5_newJL = GetNum_Part5 ( Num_newJL )
        local Part6_newJL = GetNum_Part6 ( Num_newJL )
        local Part7_newJL = GetNum_Part7 ( Num_newJL )            
        if lv_JLone>=20 and lv_JLother >=20 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 1                        ---------³õ¼¶½×¶Î
        end
        if lv_JLone>=25 and lv_JLother >=25 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 2                        ---------Öм¶½×¶Î
        end
        if lv_JLone>=35 and lv_JLother >=35 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 3                        ---------¸ß¼¶½×¶Î
        end
        local rad1 = math.random ( 1, 100 )
        if Part3_newJL==3 then
            GiveItem ( role , 0 , 609  , 1 , 4 )    --Expert Fairy Possession
            GiveItem ( role , 0 , 612  , 1 , 4 )    --Expert Self Destruct
        end

 

Edited by opexone78

Share this post


Link to post
Share on other sites

Did you try replacing mordo jr ID of if 2x mordo then give mordo jr -> to Angela Jr ID? and test if it works?

Also I don't remember, but I think it might be Game.exe sided

Edited by Joah

Nissan-GT-R.gif

Share this post


Link to post
Share on other sites
On 5/29/2018 at 11:31 PM, opexone78 said:

i hope this will help you

 


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   --------- delete this line
                  r1,r2 =MakeItem ( role , 231  , 1 , 4 )    --Fairy of Luck  ------------- delete this line
           end   ------------- delete this line
  elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then

and also


elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
        if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
               r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
               elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
               r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
               elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
               r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
               elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
               r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
        else
                r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
        end

end   ----------add this line

so the script become


 


 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 == 983 and Item_JLother_ID == 983 then
                if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                        elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                        elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                        elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                        elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                        r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
                        elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                        r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                  else
                        r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
                 end

        end
        local Item_newJL = GetChaItem ( role , 2 , r2 )            --ȡо«ÁéµÀ¾ßÖ¸Õë
        local Item_newJL_ID = GetItemID ( Item_newJL )
        local Num_newJL = GetItemForgeParam ( Item_newJL , 1 )
        local Part1_newJL = GetNum_Part1 ( Num_newJL )    --Get Num Part 1 µ½ Part 7
        local Part2_newJL = GetNum_Part2 ( Num_newJL )    
        local Part3_newJL = GetNum_Part3 ( Num_newJL )
        local Part4_newJL = GetNum_Part4 ( Num_newJL )
        local Part5_newJL = GetNum_Part5 ( Num_newJL )
        local Part6_newJL = GetNum_Part6 ( Num_newJL )
        local Part7_newJL = GetNum_Part7 ( Num_newJL )            
        if lv_JLone>=20 and lv_JLother >=20 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 1                        ---------³õ¼¶½×¶Î
        end
        if lv_JLone>=25 and lv_JLother >=25 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 2                        ---------Öм¶½×¶Î
        end
        if lv_JLone>=35 and lv_JLother >=35 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 3                        ---------¸ß¼¶½×¶Î
        end
        local rad1 = math.random ( 1, 100 )
        if Part3_newJL==3 then
            GiveItem ( role , 0 , 609  , 1 , 4 )    --Expert Fairy Possession
            GiveItem ( role , 0 , 612  , 1 , 4 )    --Expert Self Destruct
        end

 

Edited your way but it still fails and gives me fairy of luck. here is my updated file:

 

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 == 983 and Item_JLother_ID == 983 then
            if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
            elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
            elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
            elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
            elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
            elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
        else
            r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
        end
    end

 

 

 

On 5/29/2018 at 10:53 PM, Joah said:

I think you forgot one line?

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

 

TIP: Do not make pets above line 500 if you do, the stats will bug when possing, it will grant random stats also passively.

 

Also, if it  doesn't work, try changing mordo jr id 681 to your Angela Jr Id and marry 2 mordos?

Where should that line go? I read that the id should be below 1000 and the stats and poss are both working fine.

Share this post


Link to post
Share on other sites

try this

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        
                      end          
          elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
                      if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                      r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
                      elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
                      r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                      elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
                      r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                      elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
                      r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
                      elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
                      r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
                      elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
                      r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
                      end
         else 
                      r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
         end

hope it work

Edited by opexone78

Share this post


Link to post
Share on other sites
12 hours ago, Joah said:

 

 

7 hours ago, NabSlayer said:

 

The first steps i did to add angela jr in pet marriage was following that guide. The first file i showed above was made following that guide.

Share this post


Link to post
Share on other sites
On 5/30/2018 at 1:22 AM, gainster81 said:

Hey guys, my fairy marriage system isnt working. I edited forge.lua to make sure i could marry angelas to get angela jr. I gave item ID 983 and 984 to both pets. I leveled 2 angelas to lv20 and marriage them and instead of getting an angela JR i got a fairy of luck. What is wrong with my forge? It looks like the following.

 

 

    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
        elseif Item_JLone_ID == 983 and Item_JLother_ID == 983 then
        if lv_JLone >= 20 and lv_JLone < 25 and lv_JLother >= 20 and lv_JLother < 25 and rad >= 90 then        --Pet Lv20-24 10% Chance of Angela JR
                r1,r2 = MakeItem ( role , 984  , 1 , 4 )-- Your Angela Jr ID
        elseif lv_JLone >= 25 and lv_JLone < 35 and lv_JLother >= 25 and lv_JLother < 35 and rad >= 80 then    --Pet Lv25-34 20% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
        elseif lv_JLone >= 35 and lv_JLone < 50 and lv_JLother >= 35 and lv_JLother < 50 and rad >= 70 then    --Pet Lv35-49 30% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
        elseif lv_JLone >= 50 and lv_JLone < 70 and lv_JLother >= 50 and lv_JLother < 70 and rad >= 60 then    --Pet Lv50-69 40% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID
        elseif lv_JLone >= 70 and lv_JLone < 85 and lv_JLother >= 70 and lv_JLother < 85 and rad >= 50 then    --Pet Lv70-84 50% Chance of Angela JR
            r1,r2 = MakeItem ( role , 984  , 1 , 4 ) --Your Angela Jr ID 
        elseif lv_JLone >= 85 and lv_JLother >= 85 and rad >= 25 then                        --Pet Lv85 above 75% Chance of Angela JR
            r1,r2 =MakeItem ( role , 984  , 1 , 4 )--Your Angela Jr ID
        else
            r1,r2 = MakeItem ( role , 231  , 1 , 4 )                            --Fairy of Luck
        end
        local Item_newJL = GetChaItem ( role , 2 , r2 )            --ȡо«ÁéµÀ¾ßÖ¸Õë
        local Item_newJL_ID = GetItemID ( Item_newJL )
        local Num_newJL = GetItemForgeParam ( Item_newJL , 1 )
        local Part1_newJL = GetNum_Part1 ( Num_newJL )    --Get Num Part 1 µ½ Part 7
        local Part2_newJL = GetNum_Part2 ( Num_newJL )    
        local Part3_newJL = GetNum_Part3 ( Num_newJL )
        local Part4_newJL = GetNum_Part4 ( Num_newJL )
        local Part5_newJL = GetNum_Part5 ( Num_newJL )
        local Part6_newJL = GetNum_Part6 ( Num_newJL )
        local Part7_newJL = GetNum_Part7 ( Num_newJL )            
        if lv_JLone>=20 and lv_JLother >=20 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 1                        ---------³õ¼¶½×¶Î
        end
        if lv_JLone>=25 and lv_JLother >=25 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 2                        ---------Öм¶½×¶Î
        end
        if lv_JLone>=35 and lv_JLother >=35 then
            Part2_newJL = 6                     ---------ÔËÖ®¾«Áé¼¼ÄܱàºÅ
            Part3_newJL = 3                        ---------¸ß¼¶½×¶Î
        end
        local rad1 = math.random ( 1, 100 )
        if Part3_newJL==3 then
            GiveItem ( role , 0 , 609  , 1 , 4 )    --Expert Fairy Possession
            GiveItem ( role , 0 , 612  , 1 , 4 )    --Expert Self Destruct
        end

Try make 100% chance for ajr, if it will fail then there's something with script, but with script i can help you  tommorow when i will be in home

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