Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Configuración del script #1
- script1Balance = balance
- script1NextBet = balance / 1000000
- script1Chance = math.random(1, 80)
- -- Configuración del script #2
- script2Balance = balance
- script2NextBet = balance / 1000000
- script2MinChance = 10
- script2MaxChance = 35
- -- Otras configuraciones específicas del script #2
- -- Variables generales
- switchToScript2Threshold = balance * 0.01
- stopLossThreshold = balance * 0.1
- profitTarget = balance * 0.5
- currentScript = 1
- function switchToScript2()
- currentScript = 2
- end
- function switchToScript1()
- currentScript = 1
- end
- function dobet()
- if balance <= stopLossThreshold then
- stop()
- print("Pérdida igual o mayor al 10% del balance original. Deteniendo.")
- elseif profit >= profitTarget then
- stop()
- print("Profit alcanzado el 50%. Deteniendo.")
- else
- if currentScript == 1 then
- -- Lógica del script #1
- -- Calcular nextbet y chance para el script #1
- script1NextBet = balance * (increaseOnLoss / 100) / ((1 + (increaseOnLoss / 100)) ^ lossStreaks - 1)
- script1Chance = math.random(1, 80)
- -- Cambiar a script #2 si es necesario
- if script1NextBet >= switchToScript2Threshold then
- switchToScript2()
- end
- elseif currentScript == 2 then
- -- Lógica del script #2
- -- Calcular nextbet y chance para el script #2
- script2NextBet = balance / 1000000
- script2Chance = math.random(script2MinChance * 100.00, script2MaxChance * 100.00) / 100.00
- -- Otras lógicas específicas del script #2
- -- Cambiar a script #1 si es necesario
- if balance >= script2Balance then
- switchToScript1()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement