Jump to content
Ana

🏆 ​[800$] Around the Globe: Cambodia ​🇰🇭​

Recommended Posts

Well, this was an interesting one to hunt! Not too tough to script though.

77.00

placed by Serlite on 20/10/2020

Wagered

4.40000000doge.svg

Multiplier

2.00x

Profit

4.40000000doge.svg

75.00

placed by Serlite on 20/10/2020

Wagered

4.40000000doge.svg

Multiplier

2.00x

Profit

4.40000000doge.svg

As for the script, just some basic logic operating on the digits of the rolled number:

chance   = 49.5
nextbet  = 4.4
bethigh  = true
currency = "Doge"

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 isValidPattern(digit1, digit2, digit3, digit4) and win then
        print (lastBet.Roll)
        print (lastBet.Id)
        ching()
        stop()
    end
end

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

function isValidPattern(digit1, digit2, digit3, digit4)
    return (digit1 + digit2 >= 10) and digit3 == 0 and digit4 == 0
end

 

Share this post


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

×