Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. arrivoa = 19600;var takeRand = function(elem) {
  2. var x = elem.getBoundingClientRect().left,
  3. y = elem.getBoundingClientRect().top,
  4. h = elem.getBoundingClientRect().bottom,
  5. w = elem.getBoundingClientRect().right;
  6. return {
  7. x: Math.floor(Math.random()*(w - x + 1) + x),
  8. y: Math.floor(Math.random()*(h - y + 1) + y),
  9. }
  10. }
  11. /////////////////
  12. if(typeof winint != 'undefined') clearInterval(winint);
  13. if(typeof temptim != 'undefined') clearTimeout(temptim);
  14. if(typeof randms != 'undefined') clearInterval(randms);
  15. if(typeof int != 'undefined') clearInterval(int);
  16. /////////////////
  17. document.getElementById("mutesounds").checked = false;
  18. var num = window.prompt("Inserisci un numero da 0 a 14!");
  19. var xd = document.documentElement.innerHTML.indexOf('coinstext');
  20. var id = document.documentElement.innerHTML.substring(xd + 9, xd + 14);
  21. if (!isNaN(id.substring(id.length - 1, id.length))) id = id.substring(0, id.length - 1);
  22. id = id.replace(/(["|>])/g, '');
  23. /////////////////
  24. var betat = Math.floor(Math.random() * (17 - 1)) + 1;
  25. var int = setInterval(timer, 1000);
  26. var winint = setInterval(winnumb, 500);
  27. var randms = setInterval(function(){xpos = Math.floor(Math.random()*(document.body.clientWidth - 0 + 1));ypos = Math.floor(Math.random()*(document.body.clientHeight - 0 + 1)); }, 5000);
  28. /////////////////
  29. function timer() {
  30. if (document.documentElement.innerHTML.indexOf('NOT LOGGED') > -1) {
  31. alert('Premi f5 e rilogga xd')
  32. clearInterval(int);
  33. }
  34. if (document.querySelector('#warningboxbot').offsetParent != null){
  35. alert('Captcha');
  36. clearInterval(int);
  37. int = false;
  38. }
  39. if (document.getElementById('coinstext' + id).innerHTML < arrivoa && document.getElementById('timetorolltexttimewinner').innerHTML == betat + ' seconds to next roll') {
  40. if (document.getElementById('coinstext' + id).innerHTML > 2000) {
  41. document.getElementById('bet' + id).value = '2000'
  42. } else {
  43. eval('setbetv' + id + '(0)');
  44. eval('setbetv' + id + '(5000)');
  45. }
  46. var fikomasuka = takeRand(document.querySelector('.button[value="'+num+'"]'));
  47. xpos = fikomasuka.x;
  48. ypos = fikomasuka.y;
  49. eval('setbet' + id + '(' + num + ')');
  50. }
  51. if (document.getElementById('coinstext' + id).innerHTML >= arrivoa) {
  52. alert('Hai vinto xddd');
  53. clearInterval(int);
  54. }
  55. }
  56. /////////////////
  57. function winnumb() {
  58. var loll = eval('winnernumbersocket' + id);
  59. if (loll.length == 7) {
  60. betat = Math.floor(Math.random() * (17 - 1)) + 1;
  61. clearInterval(winint);
  62. if(typeof temptim != 'undefined') clearTimeout(temptim);
  63. var temptim = setTimeout(function() {
  64. winint = setInterval(winnumb, 500);
  65. }, 10000);
  66. loll = parseInt(loll, 16);
  67. loll = loll - gameid;
  68. loll = loll - 100000000;
  69. console.log(loll);
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement