Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arrivoa = 19600;var takeRand = function(elem) {
- var x = elem.getBoundingClientRect().left,
- y = elem.getBoundingClientRect().top,
- h = elem.getBoundingClientRect().bottom,
- w = elem.getBoundingClientRect().right;
- return {
- x: Math.floor(Math.random()*(w - x + 1) + x),
- y: Math.floor(Math.random()*(h - y + 1) + y),
- }
- }
- /////////////////
- if(typeof winint != 'undefined') clearInterval(winint);
- if(typeof temptim != 'undefined') clearTimeout(temptim);
- if(typeof randms != 'undefined') clearInterval(randms);
- if(typeof int != 'undefined') clearInterval(int);
- /////////////////
- document.getElementById("mutesounds").checked = false;
- var num = window.prompt("Inserisci un numero da 0 a 14!");
- var xd = document.documentElement.innerHTML.indexOf('coinstext');
- var id = document.documentElement.innerHTML.substring(xd + 9, xd + 14);
- if (!isNaN(id.substring(id.length - 1, id.length))) id = id.substring(0, id.length - 1);
- id = id.replace(/(["|>])/g, '');
- /////////////////
- var betat = Math.floor(Math.random() * (17 - 1)) + 1;
- var int = setInterval(timer, 1000);
- var winint = setInterval(winnumb, 500);
- 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);
- /////////////////
- function timer() {
- if (document.documentElement.innerHTML.indexOf('NOT LOGGED') > -1) {
- alert('Premi f5 e rilogga xd')
- clearInterval(int);
- }
- if (document.querySelector('#warningboxbot').offsetParent != null){
- alert('Captcha');
- clearInterval(int);
- int = false;
- }
- if (document.getElementById('coinstext' + id).innerHTML < arrivoa && document.getElementById('timetorolltexttimewinner').innerHTML == betat + ' seconds to next roll') {
- if (document.getElementById('coinstext' + id).innerHTML > 2000) {
- document.getElementById('bet' + id).value = '2000'
- } else {
- eval('setbetv' + id + '(0)');
- eval('setbetv' + id + '(5000)');
- }
- var fikomasuka = takeRand(document.querySelector('.button[value="'+num+'"]'));
- xpos = fikomasuka.x;
- ypos = fikomasuka.y;
- eval('setbet' + id + '(' + num + ')');
- }
- if (document.getElementById('coinstext' + id).innerHTML >= arrivoa) {
- alert('Hai vinto xddd');
- clearInterval(int);
- }
- }
- /////////////////
- function winnumb() {
- var loll = eval('winnernumbersocket' + id);
- if (loll.length == 7) {
- betat = Math.floor(Math.random() * (17 - 1)) + 1;
- clearInterval(winint);
- if(typeof temptim != 'undefined') clearTimeout(temptim);
- var temptim = setTimeout(function() {
- winint = setInterval(winnumb, 500);
- }, 10000);
- loll = parseInt(loll, 16);
- loll = loll - gameid;
- loll = loll - 100000000;
- console.log(loll);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement