emofc 4 Report post Posted April 21, 2020 hello how to make success rates from 100 to 110% now 110% fail much times.Thenks Quote Share this post Link to post Share on other sites
Tera 26 Report post Posted April 21, 2020 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 Quote Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted April 22, 2020 (edited) 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 April 22, 2020 by J0k3r Quote Kind regards, AG. Share this post Link to post Share on other sites
Tera 26 Report post Posted April 22, 2020 Sorry work for me T_T Quote Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted April 22, 2020 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 Quote Kind regards, AG. Share this post Link to post Share on other sites
Tera 26 Report post Posted April 22, 2020 (edited) Well sorry T_T can you help me on my other topic :v ? Edited April 22, 2020 by Tera Quote Share this post Link to post Share on other sites
Hydra 1 Report post Posted April 25, 2020 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? Quote Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted April 25, 2020 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. Quote Kind regards, AG. Share this post Link to post Share on other sites
JCarlosNewInScripts 0 Report post Posted Sunday at 03:36 PM How do I change the effectivenes that are in the teams, to put that give me the effetivenes in the appareales. Thank you Quote Share this post Link to post Share on other sites