Post
Topic
Board Gambling
Re: Seuntjies DiceBot -Multi-Site, multi-strategy betting bot for dice. With Charts!
by
Astartes248
on 10/07/2025, 17:45:52 UTC
Sure

Here it is.  I was wondering if the bot can reset and restart everytime the profit is reached.

===================================

-- Base Configuration
base = 0.00000164
profitTarget = 0.00001647
resetAmount = 0.00000164

-- Initialize settings
function OnInit()
    NextBet.Chance = 66
    NextBet.High = true
    NextBet.Amount = base
end

-- Tracking Variables
currentStreak = 0
lastOutcome = nil

function CalculateBet()
    -- Always maintain these settings
    NextBet.Chance = 66
    NextBet.High = true
   
    -- Check profit condition
    if CurrentProfit > profitTarget then
        NextBet.Amount = resetAmount
        return
    end
   
    -- First bet handling (SIMPLIFIED)
    if PreviousBet == nil then
        NextBet.Amount = base
        return
    end
   
    -- Streak tracking (BULLETPROOF VERSION)
    if Win then
        currentStreak = math.max(1, (lastOutcome == "Win" and currentStreak + 1 or 1))
    else
        currentStreak = math.min(-1, (lastOutcome == "Loss" and currentStreak - 1 or -1))
    end
    lastOutcome = Win and "Win" or "Loss"
   
    -- Start with previous amount
    local newAmount = PreviousBet.Amount
   
    -- Apply conditions (PRIORITY ORDER)
    -- Condition 6: >4 Loss streak
    if currentStreak <= -4 then newAmount = newAmount * 0.80 end
   
    -- Condition 5: First loss
    if currentStreak == -1 then newAmount = newAmount * 0.57 end
   
    -- Condition 4: Every 2 losses
    if currentStreak < 0 and math.abs(currentStreak) % 2 == 0 then newAmount = newAmount * 0.85 end
   
    -- Condition 1: Every loss
    if currentStreak < 0 then newAmount = newAmount * 1.50 end
   
    -- Condition 3: <3 win streak
    if currentStreak > 0 and currentStreak < 3 then newAmount = newAmount * 1.50 end
   
    -- Condition 2: Every win
    if currentStreak > 0 then newAmount = newAmount * 1.50 end
   
    -- Final assignment
    NextBet.Amount = newAmount
end

function Reset()
    NextBet.Amount = base
    currentStreak = 0
    lastOutcome = nil
end

===============================================

Can you post your script that you've written so far?
[/quote]