Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local strategy = {
- scriptname = 'Strategy wager november 2023',
- minbet = 1.7e-5,
- div = 1e3,
- startch = 50,
- minch = 1,
- maxch = 98,
- prebet = 0,
- base = balance / div,
- initbal = balance,
- nextbet = balance / div,
- autoroll = false,
- bethigh = false,
- preroll = false,
- chance = 50,
- bal = balance,
- limitroll = 100,
- ngeroll = 0,
- roll = 0,
- vaulted = 0,
- cprofit = 0,
- vno = 0
- }
- function resetPartialProfit()
- partialprofit = 0
- end
- function dobet()
- if vno > 0 then
- log("--- Vaulted \t" .. string.format("%.2f", vaulted) .. "\t #" .. vno .. " ")
- end
- cprofit = cprofit + currentprofit
- if preroll then
- ngeroll = ngeroll + 1
- nextbet = prebet
- chance = math.random(minch, maxch)
- if ngeroll > limitroll and win then
- preroll = false
- autoroll = false
- chance = maxch
- nextbet = strategy.base
- ngeroll = 0
- end
- else
- if partialprofit > 0 then
- resetPartialProfit()
- initbal = balance
- nextbet = balance / div
- chance = maxch
- if (cprofit / (balance - cprofit)) * 100 > 50 then
- roll = roll + 1
- if roll < 3 then
- vno = vno + 1
- vaulted = vaulted + (balance - cprofit)
- vault(balance - cprofit)
- cprofit = 0
- else
- if balance >= bal then
- roll = 0
- end
- end
- end
- if not preroll and autoroll then
- preroll = true
- nextbet = prebet
- end
- if lastBet.nonce > 10000 then
- bethigh = not bethigh
- resetseed()
- end
- else
- if win then
- if chance == 50 then
- chance = math.random(1, 30)
- if partialprofit < -initbal * 0.1 and partialprofit > -initbal * 0.3 then
- nextbet = ((partialprofit * -1) / ((99 / chance) - 1) / 7)
- elseif partialprofit < -initbal * 0.3 then
- nextbet = ((partialprofit * -1) / ((99 / chance) - 1) / 10)
- else
- nextbet = ((partialprofit * -1) / ((99 / chance) - 1) / 3.5)
- end
- else
- chance = strategy.startch
- nextbet = partialprofit * -1
- end
- if previousbet > initbal * 0.1 then
- autoroll = true
- end
- else
- if chance < strategy.startch and currentstreak < -10 then
- if currentstreak == -11 then
- bethigh = not bethigh
- end
- chance = chance + 0.1
- if currentstreak == -15 or currentstreak == -20 then
- chance = strategy.startch
- end
- if chance < 10 and partialprofit < -initbal * 0.1 then
- chance = math.random(10, 30)
- end
- end
- if currentstreak == -1 and chance == strategy.maxch then
- chance = strategy.startch
- nextbet = previousbet
- else
- nextbet = previousbet * (1 + chance / 50)
- end
- if (chance == strategy.startch and currentstreak == -5) or
- (chance == 50 and (currentstreak == -7 or currentstreak == -9)) or
- (chance == 50 and partialprofit < -initbal * 0.3) then
- nextbet = previousbet / 2
- end
- end
- end
- if not preroll and nextbet < strategy.minbet then
- nextbet = strategy.minbet
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement