Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. // ==UserScript==
  2. // @name 999mainButton
  3. // @namespace *999dice*
  4. // @description button
  5. // @include *999dice*
  6. // @version 1
  7. // @grant GM_xmlhttpRequest
  8. // ==/UserScript==
  9. var DiceApiUrl = 'https://www.999dice.com/api/web.aspx';
  10. var baseBet = 1001;
  11. var low = 0;
  12. var High = 749999;
  13. var numBets = 10;
  14. var lossMult = 100;
  15. //USER
  16. var SessionId = $.cookie("SessionId");
  17. function autoBets() {
  18. new GM_xmlhttpRequest({
  19. method: 'POST',
  20. url: 'https://www.999dice.com/api/web.aspx',
  21. data: "a=PlaceAutomatedBets&s="+SessionId+"&BasePayIn="+baseBet+"&Low="+low+"&High="+High+"&MaxBets="+numBets+"&ResetOnWin=1&ResetOnLose=0&IncreaseOnWinPercent=0&IncreaseOnLosePercent=1.0&MaxPayIn=0&ResetOnLoseMaxBet=0&StopOnLoseMaxBet=0&StopMaxBalance=0&StopMinBalance=0&Compact=0&ClientSeed:22212803&Currency=doge&ProtocolVersion=2",
  22. headers: {
  23. "Content-Type": "application/x-www-form-urlencoded"
  24. },
  25. responseType: 'json',
  26. onload: function(res) {
  27. console.log(res.response);
  28. if(res.response.BetId){
  29. console.log(res.statusText);
  30. pipe.events.balanceUpdated();
  31. }
  32. },
  33. onerror: function(res){
  34. console.log("xhr onerror:");
  35. console.log(res.statusText);
  36. }
  37. });
  38. }
  39. var buttons='<div class="BetButtonContainer"><div class="BetButton" id="BetAutoButton"><span class="BetControlTitle">BET Script</span></div></div>';
  40. $('#AutoBetHighButton').after(buttons);
  41. $('.BetActionBox').css('maxWidth', '600px');
  42. $('#BetAutoButton').click(function(){autoBets();});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement