Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. /*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  2. * Sweepabit.com martingal bot - Made by http://dexontech.net/
  3. * + When editing the variables, be careful to not remove any ';' or ',' character.
  4. * To stop the bot, refresh the page.
  5. * To change the amount of bets per second change the "setTimeout(function(){placeBet();},100);" on line 70 and 74. The "100" is 100ms
  6. *
  7. *
  8. *
  9. *
  10. *
  11. * Calculator: https://jsfiddle.net/ebr86pxj/1/embedded/result/
  12. *
  13. * /!\ BE CAREFUL: USING UNKNOWN SCRIPTS MAY COMPROMISE YOUR WALLET SECURITY.
  14. * /!\ USE ONLY IF YOU TRUST THE PERSON.
  15. */
  16.  
  17. var _settings = {
  18. baseBet: 0.18, // From a balance of 200573 bits. 11143 per 0.01 base.
  19. bombs: 4, // Alt. 8
  20. multiply: 5.7, // Alt. 3
  21. houseEdge: 1 // 1% House edge. Cannot be lower than 0.01 and max 100. (Do not touch if not sure)
  22. };
  23.  
  24. // --- Edit over this line --- \\
  25. var bet = _settings.baseBet, lastBet = 0, lastGame = null;
  26. var houseEdge, odds, next;
  27. var tilesClicked = 0;
  28.  
  29. console.log("[BOT] Starting Bot...")
  30. $.post("https://api.moneypot.com/v1/hashes?access_token="+access_token, '', function(json) {
  31. if(!connected) return;
  32. Hash = (typeof json.hash === "undefined"?false:json.hash);
  33. houseEdge = (_settings.houseEdge/100);
  34. odds = ( (25-_settings.bombs-tilesClicked) / (25-tilesClicked) );
  35. console.log("[BOT] Received first provably fair hash:", Hash);
  36. placeBet();
  37. });
  38.  
  39. function placeBet(){
  40. //console.log("[BOT] Betting...");
  41. var wager = (bet*100);
  42. var rangeWin = Math.floor(Math.pow(2,32)*(odds));
  43. next = ( bet * ((1.0-houseEdge)/odds) ) - bet;
  44. $.ajax({
  45. type: "POST",
  46. contentType: "application/json",
  47. url: "https://api.moneypot.com/v1/bets/custom?access_token="+access_token,
  48. data: JSON.stringify({
  49. client_seed: parseInt(game.clientSeed),
  50. hash: String(Hash),
  51. wager: wager,
  52. "payouts": [
  53. {from: 0, to: rangeWin, value: ((bet+next)*100)},
  54. {from: rangeWin, to: Math.pow(2,32), value: 0}
  55. ]
  56. }),
  57. dataType: "json",
  58. error: function(xhr, status, error) {
  59. console.error("[BET ERROR]",xhr.responseText);
  60. console.alert("Important: Remember to not show your access token to anyone.");
  61. return;
  62. }
  63. }).done(function(data){
  64. lastBet = bet;
  65. Hash = data.next_hash;
  66.  
  67. if(data.outcome >= rangeWin){ // lost
  68. //console.log("[BOT] Lost bet.");
  69. bet *= _settings.multiply;
  70. setTimeout(function(){placeBet();},25);
  71. }else{ // win
  72. //console.log("[BOT] Won bet.")
  73. bet = _settings.baseBet;
  74. setTimeout(function(){placeBet();},25);
  75. }
  76. });
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement