Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- FlatBet
- -- by Weslley Moura
- -- Last updated 17/11/2023
- -- Donate please (Stake TIP): schnoo98
- -- balance = 2 -- Disable to play for real money
- div = 1000
- basebet = balance / div
- maxMultiplier = 500 -- Max Multiplier
- activeVault = true -- Activate the auto-vault
- vaultStop = false -- When playing in the Vault the value of `vaultProfit`
- vaultProfit = 0.1;
- vaultProfitBets = 500;
- resetBetVault = false;
- -- Console logs and seed reset
- resetSeedCount = 1000 -- Defines every X bets, resets the seed
- printStats = 200 -- Defines every X bets, shows logs in the console
- -- Notification variables
- currency = "usdt" -->> Coin
- -- Default variables
- win_count = 0
- hits = 0
- hitsProfit = 0
- pre_roll_bet = 0
- nextbet = basebet
- metaVerify = 0
- chance = baseChance
- baseChance = 49.5
- multiplier = 2
- TB = 0
- loss_count = 0
- betcount = 0
- resetSeed = 0
- highestBet = 0
- highestLosses = 0
- highestLossesAcc = 0
- highestLossesValue = 0
- highestProfit = 0
- lowestBalanceHistorical = nil
- wager = 0
- vaulted = 0
- playtime = os.clock()
- startTime = os.clock()
- startBalance = balance
- lossbet = basebet
- resetstats()
- resetseed()
- function updateLowestBalance(balance)
- if lowestBalanceHistorical == nil or balance < lowestBalanceHistorical then
- lowestBalanceHistorical = balance
- end
- end
- function checkVault()
- if activeVault then
- if (bets % vaultProfitBets == 0 and profit > 0) then
- vaulted += profit
- vault(profit)
- resetstats()
- stats()
- end
- if (profit >= vaultProfit and profit > 0) then
- vaulted += profit
- vault(profit)
- resetstats()
- stats()
- end
- if (resetBetVault and profit > 0) then
- nextbet = basebet
- end
- end
- end
- function multiplierToWinChance(multiplier)
- return (100-1)/multiplier
- end
- function dobet()
- TB += 1
- if (vaulted >= vaultProfit and vaultStop) then
- stop()
- end
- betcount += 1
- if (win) then
- win_count += 1
- loss_count = 0
- highestLossesAcc = 0
- multiplier = 2
- chance = baseChance
- nextbet = basebet
- else
- win_count = 0
- loss_count += 1
- if loss_count % 5 == 0 then
- multiplier += 5
- end
- if (multiplier >= maxMultiplier) then
- multiplier = maxMultiplier
- end
- chance = multiplierToWinChance(multiplier)
- nextbet = basebet
- ----------------------------------------------------------------------
- -- Check the maximum loss
- highestLossesAcc += previousbet
- if highestLossesAcc >= highestLossesValue then
- highestLossesValue = highestLossesAcc
- end
- end
- -- Conditionals for notification
- wager += nextbet
- if loss_count >= highestLosses then
- highestLosses = loss_count
- end
- if nextbet >= highestBet then
- highestBet = nextbet
- end
- if (profit >= highestProfit) then
- highestProfit = profit
- end
- if (TB % resetSeedCount == 0) then
- resetSeed += 1
- resetseed()
- end
- if (bets % printStats == 0) then
- stats()
- end
- if nextbet < basebet then
- nextbet = basebet
- end
- checkVault()
- updateLowestBalance(balance)
- end
- function format_number_with_decimal_point(number)
- local formatted_number = tostring(number)
- local k
- while true do
- formatted_number, k = string.gsub(formatted_number, "^(-?%d+)(%d%d%d)", '%1.%2')
- if (k==0) then
- break
- end
- end
- return formatted_number
- end
- -- Display information in the console
- function stats()
- print("\n\n=======================================")
- print("---===>>> FlatBet")
- print("=======================================")
- print("")
- print("# Bets: " .. format_number_with_decimal_point(TB))
- print("")
- print("# Bets per: " .. string.format("%2.3f", betcount/(os.clock()-playtime)) .. " /second | " .. math.floor(0.5+betcount/(os.clock()-playtime)*60^2) .. " /hour | " .. math.floor(0.5+24*betcount/(os.clock()-playtime)*60^2) .. " /day")
- print("")
- print("->> Balance: "..string.format("%9.8f", balance) .. " " .. string.upper(currency))
- print("->> Wagered: "..string.format("%9.8f", wager) .. " " .. string.upper(currency))
- if lowestBalanceHistorical == nil then
- print("->> Lowest Balance: "..string.format("%9.8f", startBalance) .. " " .. string.upper(currency))
- else
- print("->> Lowest Balance: "..string.format("%9.8f", lowestBalanceHistorical) .. " " .. string.upper(currency))
- end
- print("")
- print("->> Basebet: "..string.format("%9.8f", basebet) .. " " .. string.upper(currency))
- print("->> Loss Seq: "..string.format(loss_count))
- print("->> Reset Seed count: " ..resetSeed)
- print("")
- print("->> Highest Bet: "..string.format("%9.8f", highestBet) .. " " .. string.upper(currency))
- print("->> Highest Profit: "..string.format("%9.8f", highestProfit) .. " " .. string.upper(currency))
- print("->> Highest Loss: "..string.format("%9.8f", highestLossesValue) .. " " .. string.upper(currency))
- print("->> Highest Loss Seq: ".. highestLosses)
- print("")
- print("# Vaulted: " .. string.format("%9.8f", vaulted) .. " " .. string.upper(currency))
- print("")
- print(string.format("->> Bet: %.8f | Chance: %.2f | Bethigh: %s", nextbet, chance, tostring(bethigh)))
- print("---------------------------------------------")
- print("by Weslley Moura")
- print("\n")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement