Advertisement
Ypleitez

Untitled

Nov 18th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. --balance = 1
  2. basebet = balance / 200;
  3. nextbet = basebet;
  4.  
  5. initBet = basebet;
  6. initPay = 10; --this is starting payout target.
  7. betIncrease = basebet; --this is what is added to the base bet on each loss, it is not a percentage value.
  8. payIncrease = 0.37; --this is the Increasing payout amount, it is not a percentage value.
  9.  
  10. currentBet = initBet;
  11. currentPayout = initPay;
  12.  
  13. function getChance(multiplier)
  14. return 99 / multiplier;
  15. end
  16.  
  17. chance = getChance(10);
  18. bethigh = false
  19.  
  20. dobet = function()
  21. if (win) then
  22. currentBet = basebet;
  23. currentPayout = initPay;
  24. else
  25. currentBet = currentBet + betIncrease;
  26. currentPayout = currentPayout + payIncrease;
  27. end
  28. nextbet = currentBet;
  29. chance = getChance(currentPayout);
  30. print("Target: "..currentPayout.."x".. " | ".."Outcome: "..round(100 / lastBet.Roll, 2).."x");
  31. end
  32.  
  33. function round(number, decimals)
  34. dec = decimals - 1;
  35. dec2 = 10 / (10 * dec);
  36. output = number - ((number * 100) % dec2) / 100;
  37. return output;
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement