999doge - saving basebet for streakwin


Script basebet menyesuaikan balance, minus dari streak loss di simpan, dan di bet saat streak win ke 2

Kalau berkenan referal

DiceBot 3.4.11

Source Code


--- script ---

chance  = 49 
div     = 250000
basebet = balance / div
maxbet  = balance * 0.1
maxbal  = balance * 1.1
minbal  = balance * 0.5
resets  = basebet * 10 
profits = 0
sesi    = 0
hibet   = 0
margin  = 0
stopwin = false
nextbet = basebet

function dobet()

    profits += currentprofit
    margin += currentprofit

    if margin >= 0 then
        margin  = 0
        basebet = balance / div
        resets  = basebet * 10
        nextbet = basebet
    end

    if profits > resets then 
        if stopwin then stop() end
        sesi += 1 
        profits = 0
    end
    
    if !win then  
        nextbet = basebet   
    end  

    if (currentstreak == 1) then
        nextbet = math.abs(profits) + (basebet * 2)
    end 
    
    if (nextbet > hibet) then
        hibet = nextbet
    end
    
    if (nextbet > maxbet) then 
        nextbet = basebet 
        resetstats()
    end
    
    if (nextbet < 0) then nextbet = basebet end
    if (balance > maxbal) then stop() end
    if (balance - nextbet < minbal) then stop() end
    
    print("\n\n")
    print("target "..maxbal)
    print("highest bet "..hibet)
    print("margin "..margin)
    print("risk "..profits)
    print("sesi "..sesi)
end


EmoticonEmoticon