Untitled


SUBMITTED BY: Guest

DATE: Dec. 6, 2013, 11:44 a.m.

FORMAT: Text only

SIZE: 1.6 kB

HITS: 8785

  1. Just dice script
  2. /*
  3. Commands:
  4. start() - Start the Martingale Bot
  5. stopNow() - Stop the Martingale Bot
  6. stopAfterWin() - Stop the Martingale Bot After Winning
  7. */
  8. //Settings
  9. var initialBet = "0.0000005";//CHANGE THIS TO YOUR START BET LEAVE EVERYTHING ELSE ALONE
  10. var chanceToWin = "49.5";
  11. //Your don't need to change anything below here
  12. var payoutMultiplier;
  13. var martingaleMultiplier;
  14. var nextBet;
  15. var bStopNow = false;
  16. var bStopAfterWin = false;
  17. function start() {
  18. payoutMultiplier = 99/parseFloat(chanceToWin);
  19. martingaleMultiplier = payoutMultiplier/(payoutMultiplier-1);
  20. nextBet = parseFloat(initialBet);
  21. roll();
  22. }
  23. function stopNow() {
  24. bStopNow = true;
  25. }
  26. function stopAfterWin() {
  27. bStopAfterWin = true;
  28. }
  29. function roll() {
  30. var hi_lo = Math.round(Math.random());
  31. if (hi_lo == 0)
  32. hi_lo = 'hi';
  33. else
  34. hi_lo = 'hi';
  35. socket.emit("bet", csrf, { chance: chanceToWin, bet: nextBet.toFixed(8), which: hi_lo });
  36. }
  37. socket.on("wins", function (data) {
  38. if (bStopNow || bStopAfterWin)
  39. {
  40. bStopNow = false;
  41. bStopAfterWin = false;
  42. return;
  43. }
  44. nextBet = parseFloat(initialBet);
  45. roll();
  46. });
  47. socket.on("losses", function (data) {
  48. if (bStopNow)
  49. {
  50. bStopNow = false;
  51. return;
  52. }
  53. nextBet = nextBet * martingaleMultiplier;
  54. roll();
  55. });
  56. socket.on("jderror", function (data) {
  57. roll();
  58. });

comments powered by Disqus