Bustabit CoolCoop


SUBMITTED BY: Schizophrenia

DATE: April 23, 2016, 6:38 p.m.

UPDATED: April 24, 2016, 12:32 a.m.

FORMAT: Text only

SIZE: 1.2 kB

HITS: 767

  1. // Bustabit Pluscoup Bot
  2. // By: MartinG
  3. // Version 0.0.0.0.0.0.1.5
  4. // Pluscoup betting explained http://www.onlinerouletter.com/pluscoup.html
  5. /******************/
  6. var baseBet = 70;
  7. var cashout = 1.75;
  8. /******************/
  9. baseBet = Math.round(baseBet) * 100;
  10. cashout = Math.round(cashout * 100);
  11. var n = 1;
  12. var p = 0;
  13. var currentGameData;
  14. var playedLast = false;
  15. var wonLast = true;
  16. engine.on('game_started', function(data) {
  17. currentGameData = data;
  18. });
  19. engine.on('game_starting', function(info) {
  20. if(playedLast) {
  21. if(wonLast) {
  22. p += (n * baseBet * (cashout/100 - 1));
  23. if(p > 0) p = 0;
  24. if(p < 0) {
  25. n++;
  26. } else {
  27. n = 1;
  28. }
  29. } else {
  30. p -= (n * baseBet);
  31. }
  32. }
  33. var currentBet = n * baseBet;
  34. console.log("{n:" + n + ", p:" + p/100 + ", currentBet:" + currentBet/100 + "}");
  35. engine.placeBet(Math.round(currentBet), cashout);
  36. });
  37. engine.on('game_crash', function(data) {
  38. if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) {
  39. playedLast = false;
  40. return;
  41. };
  42. playedLast = true;
  43. wonLast = data.game_crash >= cashout;
  44. });

comments powered by Disqus