Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Función para redondear al número más cercano divisible por 10
- function roundBal(num)
- return (10 ^ math.floor((math.log(num))/(math.log(10))))
- end
- -- Parámetros de estrategia --
- minPayout = 1.3
- maxPayout = 4.5
- incPayout = 1.5
- maxLoss = 1000
- -- Inicialización de variables --
- baseBet = roundBal(balance/100000)
- currBet = baseBet
- currPayout = minPayout
- chance = 99/currPayout
- startingBalance = balance
- rolls = 0
- -- Función principal --
- function dobet()
- rolls = rolls + 1
- if (win) then
- currBet = baseBet
- currPayout = minPayout
- if (bethigh) then
- bethigh = false
- else
- bethigh = true
- end
- else
- currPayout = currPayout + incPayout
- if (currPayout > maxPayout) then
- currBet = baseBet
- currPayout = minPayout
- else
- currBet = roundBal(baseBet / currPayout)
- end
- end
- if (balance - startingBalance <= maxLoss * -1) then
- print("Max Loss Reached. Stopping")
- stop()
- end
- if (balance - startingBalance >= maxLoss) then
- startingBalance = balance
- resetseed()
- currBet = baseBet
- currPayout = minPayout
- end
- if (rolls % 10 == 0) then
- print("Starting Balance: " .. startingBalance .. " | Profit: " .. balance - startingBalance)
- end
- nextbet = currBet
- chance = 99 / currPayout
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement