Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. var percentageWanted = 1; //
  2. var currentBet = (percentageWanted * 1 * engine.getBalance()) * 100;
  3. var loss = 0;
  4. var lossTolerance = 6; // how many loses before restarting?
  5. var lastGameLost = false;
  6. var cashOut = 3;
  7. engine.on('game_starting', function() {
  8. if (engine.lastGamePlay() == 'LOST') {
  9. loss += 1;
  10. if (loss < lossTolerance + 1) { //not inclusive of int-lossTolerance originally
  11. if (cashOut < 400) { // increase these if needed
  12. currentBet *= 2000;
  13. cashOut *= 100;
  14. } else {
  15. currentBet *= 1; // increase these if needed
  16. cashOut = 3;
  17. cashOut *= 3;
  18. }
  19.  
  20. } else { // restart the bot after X loss streaks
  21. currentBet = (percentageWanted * 0.0001 * engine.getBalance()) *
  22. 100;
  23. cashOut = 160;
  24. loss = 0;
  25. }
  26. } else if (engine.lastGamePlay() == 'WON') {
  27. currentBet = (percentageWanted * 0.0001 * engine.getBalance()) *
  28. 100;
  29. cashOut = 160;
  30. loss = 0;
  31. }
  32. if (currentBet <= engine.getBalance() && currentBet <= engine.getMaxBet()) {
  33. engine.placeBet(Math.round(currentBet / 100) * 100, Math.round(
  34. cashOut / 1) * 1, false);
  35. } else {
  36. engine.stop();
  37. console.log(
  38. 'You ran out of bits or exceeded the max bet :(');
  39. }
  40. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement