Jump to content
Marija

🎂​ [0.06 BTC] Time for Champagne! [17th MAY]

Recommended Posts

Posted (edited)
10 hours ago, Serlite said:

Yaaay, finally another interesting one to try out! This took about how long I expected, bit over 3k rolls.

68.86

placed by Serlite on 16/05/2019

Wagered

2.60000000doge.svg

Multiplier

1.01x

Profit

0.02652000doge.svg

86.68

placed by Serlite on 16/05/2019

Wagered

2.60000000doge.svg

Multiplier

1.01x

Profit

0.02652000doge.svg

And now, the script. Yeah, you could do this with just the rollhunt script and some manual tracking...but hey, why not fully automate it! As usual, paste it into the Code tab of Programmer Mode in dicebot, and update the currency/bet as needed:


chance=98
nextbet=2.6
bethigh=false
currency = "Doge"

numbersToHunt = {06.60, 60.06, 16.61, 61.16, 26.62, 62.26, 36.63, 63.36, 46.64, 64.46, 56.65, 65.56, 76.67, 67.76, 86.68, 68.86, 96.69, 69.96}
numbersHit = {}

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 containedInSet(lastBet.Roll, numbersToHunt) then
		local fullRollNumber = tostring(digit1)..tostring(digit2).."."..tostring(digit3)..tostring(digit4)
		local invertedRollNumber = tostring(digit2)..tostring(digit1).."."..tostring(digit4)..tostring(digit3)
		if numbersHit[invertedRollNumber] == nil then
			numbersHit[fullRollNumber] = lastBet.Id
			print("Hit "..invertedRollNumber..", "..tostring(lastBet.Id))
		else
			print(numbersHit[invertedRollNumber])
			print(lastBet.Id)
			stop()
		end
	end
end

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

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

 

Hey @Serlite, once again, thanks for the script! But I've run into a situation, or t least I think i've run into one! I had to stop midhunt and then resume it again for some reason. Didn't close dicebot or logout or anything, just used the stop() command and then started the script again, my bet history shows all the bets since the beginning, but I fear the if script will only count the bets I made after the last start() command and not the rolls before that to determine if i've rolled a pair of targets. Is that the case? Do i have to go through the bet history and check rolls manually?

UPDATE: Ok so I believe I found all my bet history in DiceBot.db ... Is it possible to search the target rolls from it?

Edited by Absentt

Share this post


Link to post
Share on other sites

 

 

 

placed by hamato1020 on 17/05/2019

Wagered

0.00003700eth.svg

Multiplier

1.10x

Profit

0.00000370eth.svg

 

                  76.67

 

 

placed by hamato1020 on 17/05/2019

Wagered

0.00003700eth.svg

Multiplier

1.10x

Profit

0.00000370eth.svg

 

                  67.76

Share this post


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

×