Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Inicialización de variables
- local basebet = 0.00000001
- local chance = 90
- local profitTarget = 2 -- 100% de ganancia
- -- Contadores para pérdidas consecutivas y aleatorias
- local consecutiveLosses = 0
- local randomLossesInLast10Bets = 0
- -- Función para aumentar la basebet según las condiciones dadas
- function increaseBaseBet()
- if consecutiveLosses == 1 then
- basebet = basebet * 1000
- elseif consecutiveLosses == 2 then
- basebet = basebet * 30000
- elseif consecutiveLosses == 3 then
- basebet = basebet * 10000
- elseif randomLossesInLast10Bets > 3 then
- basebet = basebet * 1000
- end
- end
- -- Función principal
- function main()
- while true do
- local result = math.random(100)
- if result < chance then
- print("Ganó")
- consecutiveLosses = 0
- randomLossesInLast10Bets = 0
- basebet = 0.00000001
- else
- print("Perdió")
- consecutiveLosses = consecutiveLosses + 1
- randomLossesInLast10Bets = randomLossesInLast10Bets + 1
- increaseBaseBet()
- if consecutiveLosses == 3 then
- chance = chance * 0.95 -- Disminuir el chance un 5%
- end
- end
- if basebet >= profitTarget then
- print("Alcanzó el objetivo de ganancia del 100%")
- break
- end
- end
- end
- -- Llamada a la función principal
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement