Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name 999mainButton
- // @namespace *999dice*
- // @description button
- // @include *999dice*
- // @version 1
- // @grant GM_xmlhttpRequest
- // ==/UserScript==
- var DiceApiUrl = 'https://www.999dice.com/api/web.aspx';
- var baseBet = 1001;
- var low = 0;
- var High = 749999;
- var numBets = 10;
- var lossMult = 100;
- //USER
- var SessionId = $.cookie("SessionId");
- function autoBets() {
- new GM_xmlhttpRequest({
- method: 'POST',
- url: 'https://www.999dice.com/api/web.aspx',
- 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",
- headers: {
- "Content-Type": "application/x-www-form-urlencoded"
- },
- responseType: 'json',
- onload: function(res) {
- console.log(res.response);
- if(res.response.BetId){
- console.log(res.statusText);
- pipe.events.balanceUpdated();
- }
- },
- onerror: function(res){
- console.log("xhr onerror:");
- console.log(res.statusText);
- }
- });
- }
- var buttons='<div class="BetButtonContainer"><div class="BetButton" id="BetAutoButton"><span class="BetControlTitle">BET Script</span></div></div>';
- $('#AutoBetHighButton').after(buttons);
- $('.BetActionBox').css('maxWidth', '600px');
- $('#BetAutoButton').click(function(){autoBets();});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement