Jump to content
Jelena

🏆 [0.1 BTC] Primedice & Chill: Hello, Friend!

Recommended Posts

This one wasn't too tough, but the conditions were at least more interesting than a vanilla rollhunt!

01.79

placed by Serlite on 20/05/2019

Wagered

0.00008700ltc.svg

Multiplier

8.00x

Profit

0.00060872ltc.svg

10.70

placed by Serlite on 20/05/2019

Wagered

0.00008700ltc.svg

Multiplier

8.00x

Profit

0.00060872ltc.svg

For the dicebot script, it's just a variation of the old digit pattern hunt:

chance=12.38
nextbet=0.000087
bethigh=false
currency="Ltc"

local hitFirst = false

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))
		if hitFirst then
			stop()
		else
			hitFirst = true
		end
	else
		hitFirst = false
	end
end

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

function isValidPattern(digit1, digit2, digit3, digit4)
	local digitSet = {digit1, digit2, digit3, digit4}

	local hit0 = containedInSet(0, digitSet)
	local hit1 = containedInSet(1, digitSet)

	return hit0 and hit1
end

function containedInSet(x, set)
	for key, value in pairs(set) do
		if x == value then
			return true
		end
	end
	return false
end

 

Share this post


Link to post
Share on other sites
Posted (edited)

placed by yololife2 on 20/05/2019

Wagered

0.00000100btc.svg

Multiplier

8.00x

Profit

0.00000700btc.svg

01.79

placed by yololife2 on 20/05/2019

Wagered

0.00000100btc.svg

Multiplier

8.00x

Profit

0.00000700btc.svg

10.00

http://prntscr.com/nqvw18

Edited by yololife2

Share this post


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

×