Jump to content
maat

Seuntjie programming mode script to hunt specific numbers.

Recommended Posts

Currently there is a primedice competition on bitcointalk to collect as much points as we can. And hunting 11.11, 22.22, 33.33, etc will give us some points. The best part is we are allowed to submit as much entries as we can. Here is a script that we can use to hunt such numbers with the help of Seuntjie dice bot programming mode. It will stop when we hit the desired numbers. I wish this will help some people who wants to participate on that competitions.

 

 

nextbet = 0.00001001chance = 98target = 11.11target1 = 22.22target2 = 33.33target3 = 44.44target4 = 55.55target5 = 66.66target6 = 77.77target7 = 88.88target8 = 99.99function dobet()   	if lastBet.roll == target thenching();stop()   	endif lastBet.roll == target1 thenching();      	stop()   	endif lastBet.roll == target2 thenching();      stop()   	endif lastBet.roll == target3 thenching();      stop()   	endif lastBet.roll == target4 thenching();      stop()   	endif lastBet.roll == target5 thenching();      stop()   	endif lastBet.roll == target6 thenching()      stop()   	endif lastBet.roll == target7 thenching();      stop()   	endif lastBet.roll == target8 thenching();      stop()   	endend

 

 

Thanks!

Share this post


Link to post
Share on other sites

Another way to do it.

 

 

-- array for recording bets

--Icnt = 0

--asize = 30

--IDBet = {}

--for n = 0, asize do

--    IDBet[n] = 0

--end

-- END

 

-- array of bet rolls

--tsize = 9

--IDRoll = {}

--for n = 0, tsize do

--    IDRoll[n] = (n + 1) * 11.11

--end

-- END array for recording bets

 

aRoll = lastBet.Roll

 

-- Bet ID recording

--for n = 0, tsize do

--    if Icnt < asize then

--        if (aRoll == IDRoll[n]) then

--            IDBet[icnt] = lastBet.ID

--            Icnt += 1

--        end

--    else

--        for n = 0, asize do

--            print(IDBet[n])

--        end

--        print("Done")

--        stop()

--    end

--end

-- END Bet ID recording

 

--for n = 0, asize do

--    if (IDBet[n] > 0) then

--        print("BetID: " .. IDBet[n])

--    end

--end

 

You'll have to figure out where to put it in your script.

 

Share this post


Link to post
Share on other sites

I also used such script but you could do it way easier. Just let it roll and open at the end the dicebot.db. this is a database file and then just query those roll numbers.

 

 

what did you use to query the db?

Share this post


Link to post
Share on other sites

 

I also used such script but you could do it way easier. Just let it roll and open at the end the dicebot.db. this is a database file and then just query those roll numbers.

 

 

what did you use to query the db?

 

 

You can use the built in bet history form and use the search option (drop down, top left), or you can use something sqlitebrowser and query it directly using SQL

Share this post


Link to post
Share on other sites

I use this inloop.github.io/sqlite-viewer/ to view the db

 

Then this to query the roll numbers

 

SELECT * FROM 'bet' where (lucky LIKE '11.11' OR lucky LIKE '22.22' OR lucky LIKE '33.33' OR lucky LIKE '44.44' OR lucky LIKE '55.55' OR lucky LIKE '66.66' OR lucky LIKE '77.77' OR lucky LIKE '88.88' OR lucky LIKE '99.99')

 

 

what did you use to query the db?

 

 

This what I use Glen

 

SELECT * FROM 'bet' where (lucky LIKE '11.11' OR lucky LIKE '22.22' OR lucky LIKE '33.33' OR lucky LIKE '44.44' OR lucky LIKE '55.55' OR lucky LIKE '66.66' OR lucky LIKE '77.77' OR lucky LIKE '88.88' OR lucky LIKE '99.99')

Share this post


Link to post
Share on other sites

I use this inloop.github.io/sqlite-viewer/ to view the db

 

Then this to query the roll numbers

 

SELECT * FROM 'bet' where (lucky LIKE '11.11' OR lucky LIKE '22.22' OR lucky LIKE '33.33' OR lucky LIKE '44.44' OR lucky LIKE '55.55' OR lucky LIKE '66.66' OR lucky LIKE '77.77' OR lucky LIKE '88.88' OR lucky LIKE '99.99')

 

 

what did you use to query the db?

 

 

This what I use Glen

 

SELECT * FROM 'bet' where (lucky LIKE '11.11' OR lucky LIKE '22.22' OR lucky LIKE '33.33' OR lucky LIKE '44.44' OR lucky LIKE '55.55' OR lucky LIKE '66.66' OR lucky LIKE '77.77' OR lucky LIKE '88.88' OR lucky LIKE '99.99')

 

 

lucky is a decimal field,not a varchar, and since you're not using wildcards (for example to look for rolls >=77.00 and <78) you should use = instead of like. Like is much much slower. A better/faster query would be:

 

SELECT *

FROM bet

where lucky =11.11

OR lucky =22.22

OR lucky =33.33

OR lucky =44.44

OR lucky =55.55

OR lucky =66.66

OR lucky =77.77

OR lucky =88.88

OR lucky =99.99

 

Not that it matters, I guess most users DB files aren't large enough for these queries to have any noticible effect on the efficiency

Share this post


Link to post
Share on other sites

 

I use this inloop.github.io/sqlite-viewer/ to view the db

 

Then this to query the roll numbers

 

SELECT * FROM 'bet' where (lucky LIKE '11.11' OR lucky LIKE '22.22' OR lucky LIKE '33.33' OR lucky LIKE '44.44' OR lucky LIKE '55.55' OR lucky LIKE '66.66' OR lucky LIKE '77.77' OR lucky LIKE '88.88' OR lucky LIKE '99.99')

 

 

what did you use to query the db?

 

 

This what I use Glen

 

SELECT * FROM 'bet' where (lucky LIKE '11.11' OR lucky LIKE '22.22' OR lucky LIKE '33.33' OR lucky LIKE '44.44' OR lucky LIKE '55.55' OR lucky LIKE '66.66' OR lucky LIKE '77.77' OR lucky LIKE '88.88' OR lucky LIKE '99.99')

 

 

lucky is a decimal field,not a varchar, and since you're not using wildcards (for example to look for rolls >=77.00 and <78) you should use = instead of like. Like is much much slower. A better/faster query would be:

 

SELECT *

FROM bet

where lucky =11.11

OR lucky =22.22

OR lucky =33.33

OR lucky =44.44

OR lucky =55.55

OR lucky =66.66

OR lucky =77.77

OR lucky =88.88

OR lucky =99.99

 

Not that it matters, I guess most users DB files aren't large enough for these queries to have any noticible effect on the efficiency

 

 

Oh I see, better way to query I guess.. I just got that way from Stackoverflow and put the logic into mine.

Share this post


Link to post
Share on other sites

Currently there is a primedice competition on bitcointalk to collect as much points as we can. And hunting 11.11, 22.22, 33.33, etc will give us some points. The best part is we are allowed to submit as much entries as we can. Here is a script that we can use to hunt such numbers with the help of Seuntjie dice bot programming mode. It will stop when we hit the desired numbers. I wish this will help some people who wants to participate on that competitions.

 

 

nextbet = 0.00001001chance = 98target = 11.11target1 = 22.22target2 = 33.33target3 = 44.44target4 = 55.55target5 = 66.66target6 = 77.77target7 = 88.88target8 = 99.99function dobet()   	if lastBet.roll == target thenching();stop()   	endif lastBet.roll == target1 thenching();      	stop()   	endif lastBet.roll == target2 thenching();      stop()   	endif lastBet.roll == target3 thenching();      stop()   	endif lastBet.roll == target4 thenching();      stop()   	endif lastBet.roll == target5 thenching();      stop()   	endif lastBet.roll == target6 thenching()      stop()   	endif lastBet.roll == target7 thenching();      stop()   	endif lastBet.roll == target8 thenching();      stop()   	endend

 

 

Thanks!

 

https://bitcointalk.org/index.php?topic=1695352.msg17095432#msg17095432

 

Looks familiar.

Share this post


Link to post
Share on other sites
6 minutes ago, Ssociety said:

when I use start in the console it says "assignment statement expected, got 'lastBet'"

nextbet = 0.00001001
chance = 98
target = 33
target1 = 77.77
function dobet()
if lastBet.roll > target then  stop();
endif lastBet.roll == target1 then stop(); end end 

I feel like your dobet() function could look more like:

function dobet()

if lastBet.Roll == target then
stop()
end

end

And change your target from 33 to 77.77 after you hit the first one.

Share this post


Link to post
Share on other sites

nextbet = 0.000001
chance = 98
target = 22.22
target1 = 33.33
target2 = 44.44
target3 = 77.77
target4 = 99.99

function dobet()
    
       if lastBet.roll == target then
    ching();
                stop();
       end

       if lastBet.roll == target1 then
    ching();
                stop();
       end

       if lastBet.roll == target2 then
    ching();
                stop();
       end

       if lastBet.roll == target3 then
    ching();
                stop();
       end

       if lastBet.roll == target4 then
    ching();
                stop();
       end    
end

 

 

 

Above code does not work for me. anything wrong?

Share this post


Link to post
Share on other sites
26 minutes ago, BladeMaster said:

nextbet = 0.000001
chance = 98
target = 22.22
target1 = 33.33
target2 = 44.44
target3 = 77.77
target4 = 99.99

function dobet()
    
       if lastBet.roll == target then
    ching();
                stop();
       end

       if lastBet.roll == target1 then
    ching();
                stop();
       end

       if lastBet.roll == target2 then
    ching();
                stop();
       end

       if lastBet.roll == target3 then
    ching();
                stop();
       end

       if lastBet.roll == target4 then
    ching();
                stop();
       end    
end

 

 

 

Above code does not work for me. anything wrong?

Keep in mind that Lua is case-sensitive. That means that capital letters matter; so it's not lastBet.roll, but lastBet.Roll.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×