Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Buttons OWOP Bot
- // @version 0.1
- // @description add buttons-pixels
- // @author LudwigOS
- // @match http://www.ourworldofpixels.com/beta/*
- // @grant none
- // ==/UserScript==
- //colorinfostatus =1;
- randomnumber = selfRandom;
- function selfRandom(min, max)
- {
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- WorldOfPixels.net.sendMessage = function(message) {
- if (message.length && this.net.isConnected()) {
- if (this.net.chatBucket.canSpend(1)) {
- this.net.connection.send(message + String.fromCharCode(10));
- } else {
- }
- }
- }.bind(WorldOfPixels);
- activatebot = function(x,y){WorldOfPixels.net.updatePixel(x+0,y+0,[0,0,255]);
- numcolormassive = [];
- numcolorinfo = -1;
- //WorldOfPixels.net.updatePixel(-1,-3,[0,255,0]); WorldOfPixels.net.updatePixel(0,-3,[0,255,0]); WorldOfPixels.net.updatePixel(1,-3,[0,255,0]);
- //setInterval(function(){if(numcolorinfo >2){numcolorinfo = -1;}},-Infinity);
- colorinfoz = "";
- //if(numcolorinfo <-1){numcolorinfo = -1;}
- clrlolinfoz2 = [];
- lolinfozlength2 = -1;
- //if(colorinfo=="0,0,0"){setTimeout(function(){WorldOfPixels.net.updatePixel(0,0,[0,255,0]); WorldOfPixels.net.sendMessage("You clicked on this button");},1000); }
- setInterval(function(){if(colorinfoz.split(",")[0]>0||colorinfoz.split(",")[1]>0||colorinfoz.split(",")[2]<255){colorinfoz="0,0,255"; WorldOfPixels.net.updatePixel(x+0,y+0,[0,0,255]); numcolormassive.push(numcolorinfo); setInterval(function(){WorldOfPixels.net.updatePixel(randomnumber(numcolormassive[0],numcolormassive[lolinfozlength2])+x,y+-3,[0,128,0]);},1000); lolinfozlength2 += 1; numcolorinfo+=1;}},2000);
- setInterval(function(){colorinfoz = ""+WorldOfPixels.getPixel(x+0,y+0)+"";},-Infinity);
- //if(numcolormassive.length>0){}
- };
- //if(colorinfo == "null"){colorinfo = ""+WorldOfPixels.getPixel(0,0)+"";}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement