Jump to content
Sign in to follow this  
emofc

110% Apparel sucess rates Help

Recommended Posts

Script>Calculate>forge.lua open 

find 

function Check_CG_beuplv ( Item_Lv )

 

and replace

 

function Check_CG_beuplv ( Item_Lv )
    --[[
        local    ran = math.random ( 1, 100 )

    if Item_Lv <= 10 then                    --100% Success for Lv 10 apparels
        return 1
    end
    if Item_Lv>10 and Item_Lv <= 15 then    --75% Success for Lv 11 to Lv 15 apparel
        return 1

    end
    if Item_Lv>15 and Item_Lv <= 20 then    --50% Success for Lv 16 to Lv 20 apparels
        return 1

    end
end
 

 

 

let me know it doesn't work 😃

 

Share this post


Link to post
Share on other sites
21 hours ago, Tera said:

Script>Calculate>forge.lua open 

find 

function Check_CG_beuplv ( Item_Lv )

 

and replace

 

function Check_CG_beuplv ( Item_Lv )
    --[[
        local    ran = math.random ( 1, 100 )

    if Item_Lv <= 10 then                    --100% Success for Lv 10 apparels
        return 1
    end
    if Item_Lv>10 and Item_Lv <= 15 then    --75% Success for Lv 11 to Lv 15 apparel
        return 1

    end
    if Item_Lv>15 and Item_Lv <= 20 then    --50% Success for Lv 16 to Lv 20 apparels
        return 1

    end
end
 

 

 

let me know it doesn't work 😃

 

did u really read this before posting it? this script aint gonna work obviously...

try this:-
 

function Check_CG_beuplv ( Item_Lv )                --Apparel Upgrade
    local    ran = math.random ( 1, 100 )

    if Item_Lv <= 10 then                    --100% Success for Lv 10 apparels
        return 1
    end
    if Item_Lv>10 and Item_Lv <= 15 then            --75% Success for Lv 11 to Lv 15 apparels
        if ran <= 75 then
        return 1
        else
        return 0
        end
    end
    if Item_Lv>15 and Item_Lv <= 20 then            --50% Success for Lv 16 to Lv 20 apparels
        if ran <= 50 then
        return 1
        else
        return 0
        end
    end
end

 

Edited by J0k3r

Share this post


Link to post
Share on other sites
8 minutes ago, Tera said:

Sorry work for me T_T

nope it doesn't, this script just compares effectiveness level and returns 1 which is "True" regardless anything

Share this post


Link to post
Share on other sites

Hey @J0k3r,

Would you explain how your code achieves a 100% success rate because from what I can read the code you proposed has a 75% and 50% rate for lv10-15 and lv15-20?

Where as the code you said wont work will always return 1(true) thus making each call success?

Share this post


Link to post
Share on other sites
5 hours ago, Hydra said:

Hey @J0k3r,

Would you explain how your code achieves a 100% success rate because from what I can read the code you proposed has a 75% and 50% rate for lv10-15 and lv15-20?

Where as the code you said wont work will always return 1(true) thus making each call success?

It doesn't achieve 100%, i thought that he wants the opposite.

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