Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BlueSuede

Pages: [1]
1
Programmer Mode / Re: Need help creating script base on presetlist.
« on: September 18, 2019, 01:33:26 pm »
How many lines are in each presetlist?

You can contact me on discord: XclusiveDigital#8102

2
Programmer Mode / Re: rsest to base bet not work..
« on: August 14, 2019, 12:57:02 pm »
Can you show your settings in Dicebot?

3
Programmer Mode / Re: sum 10 roll
« on: August 14, 2019, 12:20:27 pm »
Code: [Select]
myBasebet = 0.0000001
nextbet = myBasebet
chance    = 50.00
bethigh   = true
betA = 0.0000001   -- Bet this amount if B < A
betB = 0.001    -- Bet this amount if B > A

debugInfo = true

maxProfit = 0.01  -- stop script after profit goal reached
target = balance+maxProfit


resetseed()  -- Reset seed at start of script
resetstats() -- Reset stats at start of script

-- Average Variables

arrayA = {}  -- Array to store last 10 rolls
arrayA_sum = 0
arrayA_avg = 0
arrayA_maxSize = 10


arrayB = {}  -- Array to store last 30 rolls
arrayB_sum = 0
arrayB_avg = 0
arrayB_maxSize = 30




function dobet()


table.insert(arrayA, lastBet.Roll)
if(table.getn(arrayA) > arrayA_maxSize) then
table.remove(arrayA, 1)
end
arrayA_sum = 0
for k, v in ipairs(arrayA) do
arrayA_sum += v
end
arrayA_avg = arrayA_sum / table.getn(arrayA)

table.insert(arrayB, lastBet.Roll)
if(table.getn(arrayB) > arrayB_maxSize) then
table.remove(arrayB, 1)
end
arrayB_sum = 0
for k, v in ipairs(arrayB) do
arrayB_sum += v
end
arrayB_avg = arrayB_sum / table.getn(arrayB)

if(arrayB_avg > arrayA_avg) then
nextbet = betB
else
nextbet = betA
end


if(debugInfo) then
print("=====Debug: Additional Info=====")
print("arrayA: " .. table.concat(arrayA,", "))
print("arrayA Size: " .. table.getn(arrayA))
print("arrayA Sum: " .. arrayA_sum)
print("arrayA Avg: " .. arrayA_avg)
print("================================")
print("arrayB: " .. table.concat(arrayB,", "))
print("arrayB Size: " .. table.getn(arrayB))
print("arrayB Sum: " .. arrayB_sum)
print("arrayB Avg: " .. arrayB_avg)
end



end


I believe this is what you're looking for. If you need any adjustments, please let me know.

4
Programmer Mode / Re: sum 10 roll
« on: August 14, 2019, 12:12:37 am »
actualyy, I want to sum last 10  99/Roll value(A)   and  sum last 30   99/Roll  Value(B)
while  A<B  I want to make bet amount 0.0001   else 0.0000001


I'm not sure I'm understanding clearly. Lets say the last 10 rolls are 14.72, 13.18, 18.05, 61.47, 8.04, 72.03, 98.04, 77.88, 43.59, 13.91. You want to add all these up, which comes out to 420.91. From here you want 99/420.91, which comes out to 0.235204675583854. This number gets added to variable A.

Then the same thing is done for B, but with the sum of the last 30 rolls.


5
Programmer Mode / Re: sum 10 roll
« on: August 13, 2019, 11:24:27 pm »
Do you want the sum of the last 10 rolls to be the next bet amount? The payout amount?

6
Programmer Mode / Re: how to write if win then change to 60%~90% chance
« on: August 13, 2019, 01:48:50 pm »
Thanks, I've updated the variable.

wins is an internal variable and cannot be used as in BlueSuedes example. See https://forum.seuntjie.com/index.php?topic=2.0 for a list a of variables. Or just look in the variables tab in DiceBot.

look at the internal variable currentstreak.

From https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables
Quote
currentstreak, type double. Permission: Read Only. Shows the current winning or losing streak. When positive (>0), it's a winning streak. When negative (<0) it's a losing streak. Can never be 0. Only set after first bet.

7
Programmer Mode / Re: how to write if win then change to 60%~90% chance
« on: August 13, 2019, 12:57:33 pm »
This should work..

chance = 49.50
bethigh = true
basebet = balance
nextbet = balance
myWins = 0

function dobet()
   if (win) then
   myWins+=1
   if (myWins == 1) then
      chance = 60
      nextbet = balance
   elseif (myWins == 2) then
      chance = 70
      nextbet = balance
   elseif (myWins == 3) then
      chance = 80
      nextbet = balance
   elseif (myWins == 4) then
      chance = 90
      nextbet = balance
   elseif (myWins == 5) then
      chance = 70
      nextbet = balance
   elseif (myWins == 6) then
      chance = 80
      nextbet = balance
   elseif (myWins == 7) then
      chance = 90
      nextbet = balance
   end
   end
end

Pages: [1]