Jump to content
MarkoKu

🔱 [$800] The Greatest Minds: Friedrich Nietzsche 🔱

Recommended Posts

99.42

placed by Serlite on 07/07/2021

Wagered

0.00022260ltc.svg

Multiplier

44.00x

Profit

0.00957180ltc.svg

Pretty normal challenge to hunt - I just had to dig up an old script to use with dicebot! Here you go:

chance   = 2.2500
nextbet  = 0.00022260
bethigh  = true
currency = "Ltc"

local digitToHunt = 4

function dobet()
    -- break down roll number into comparable components
    local digit4 = round((lastBet.Roll * 100) % 10)
    local digit3 = round(((lastBet.Roll * 100) % 100 - digit4) / 10)
    local digit2 = round(((lastBet.Roll * 100) % 1000 - digit3 * 10 - digit4) / 100)
    local digit1 = round(((lastBet.Roll * 100) - digit2 * 100 - digit3 * 10 - digit4) / 1000)

    if win and isValidPattern(digit1, digit2, digit3, digit4) then
        print(tostring(lastBet.Roll))
        print(tostring(lastBet.Id))
        ching()
        stop()
    end
end

function round(x)
    return math.floor(x + 0.5)
end

function isValidPattern(digit1, digit2, digit3, digit4)
    if  digit1 == digitToHunt or
        digit2 == digitToHunt or
        digit3 == digitToHunt or
        digit4 == digitToHunt then
        return true
    end

    return false
end

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×