Advertisement
SerlitePD

Primedice Dicebot NY Challenge Script

Dec 31st, 2018
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | None | 0 0
  1. chance=98
  2. bethigh=false
  3.  
  4. -- Betting with Doge
  5. nextbet=1.6
  6. currency="Doge"
  7.  
  8. -- To bet with BTC, uncomment this section and comment out the last section
  9. --nextbet=0.00000100
  10. --currency="Btc"
  11.  
  12. -- Switch between these groups to hunt as you hit them
  13. groupA = {01.29, 01.92, 02.19, 02.91, 09.12, 09.21}
  14. groupB = {10.29, 10.92, 12.09, 12.90, 19.02, 19.20}
  15. groupC = {20.19, 20.91, 21.09, 21.90, 29.01, 29.10}
  16. groupD = {90.12, 90.21, 91.02, 91.20, 92.01, 92.10}
  17. groupLast = {20.19}
  18.  
  19. function dobet()
  20.     -- Enter the group to hunt here, as the second argument for containedInSet()
  21.     if containedInSet(lastBet.Roll, groupA) then
  22.         print(lastBet.Roll)
  23.         print(lastBet.Id)
  24.         stop()
  25.     end
  26. end
  27.  
  28. function containedInSet(x, set)
  29.     -- Format the roll to 2 decimal places before comparison
  30.     local formattedRoll = tonumber(string.format("%.2f", x))
  31.     print(formattedRoll)
  32.     for key, value in pairs(set) do
  33.         if value == formattedRoll then
  34.             return true
  35.         end
  36.     end
  37.     return false
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement