Advertisement
dicekode

dicebot-edit-01

Oct 30th, 2020
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. resetstats()
  2. chance  = math.random(9000,9100)/100
  3. base    = 0.01
  4. nextbet = base
  5. bethigh = false
  6. target  = balance * 1.2
  7. bethigh = false
  8.  
  9. function dobet()
  10.  
  11.     if (balance > target) then
  12.         stop();
  13.         print("Berhenti..!!")
  14.     end
  15.  
  16.     chance = math.random(9000,9100)/100
  17.     multiplier = previousbet * 0.1
  18.  
  19.     if (win) then
  20.         resetseed()
  21.         bethigh = !bethigh
  22.         nextbet = base
  23.     else
  24.         nextbet = previousbet * multiplier
  25.     end
  26.  
  27.     if (currentstreak <= -1) then
  28.         chance = math.random(3300,3400)/100
  29.         nextbet = previousbet * 0.1
  30.     end
  31.  
  32.     if (currentstreak <= -2) then
  33.         chance  = math.random(3300,3400)/100
  34.         nextbet = previousbet * 1.59738
  35.     end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement