Guest User

Untitled

a guest
Dec 4th, 2017
1,792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.64 KB | None | 0 0
  1. --Script by CttCJim
  2. --For seintjie's dicebot, developed on v3.3.9
  3. --Be a bro: BTC 1JP3tHhToThgS81Wu8P8wD7Ymu29YB3upT
  4.  
  5. chance=20 --sets your chance for placing a bet
  6. basebet = 1
  7.  
  8.  
  9. nextbet=basebet --sets your first bet.
  10.  
  11. bethigh=true --bet high when true, bet low when false
  12.  
  13. enablezz=true --set to true to use high/low switching
  14. --settings from advanced mode
  15.  
  16. enablesrc=true --set to true to use stop/reset conditions
  17. --settings from advanced mode
  18.  
  19. losscount = 0 --to count until set of losses
  20. prerolllimit = 4 --length of loss set before gambit
  21. gambit = 0 -- flag for when doing 3-bet runs
  22. multiplier = 2 --multiplier for gambit bets
  23. gambitcount = 0 --number of gambit bets performed currently
  24. gambitmult = 0 --gambit multiplier/counter
  25. gambitlimit = 3 --number of gambit bets to make
  26.  
  27.  
  28. function dobet()
  29.  
  30.     if win then
  31.         if gambit == 0 then --win, regular roll
  32.             losscount = 0
  33.         else --win, gambit roll; reset everything
  34.             gambitcount=0
  35.             gambit=0
  36.             gambitmult = 0
  37.             nextbet = basebet          
  38.         end
  39.     else --lost last roll
  40.         if gambit == 0 then --lose, regular roll
  41.             losscount = losscount + 1
  42.             if losscount >= prerolllimit then --turn on the gambit
  43.                 gambit = 1
  44.                 gambitcount=1
  45.                 gambitmult = gambitmult + 1
  46.                 nextbet = basebet * (multiplier^gambitmult)
  47.                 losscount = 0 --primed for after the gambit
  48.             end
  49.         else --lose, gambit roll
  50.             if gambitcount<gambitlimit then --next bet is another gambit
  51.                 gambitcount = gambitcount + 1
  52.             else --gambit set over; go back to base bet but preserve gambitmult
  53.                 nextbet = basebet
  54.                 gambitcount = 0
  55.                 gambit = 0
  56.             end    
  57.         end
  58.     end
  59.  
  60. end
Advertisement
Add Comment
Please, Sign In to add comment