Advertisement
LGPvS

Untitled

Sep 10th, 2017
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Buttons OWOP Bot
  3. // @version 0.1
  4. // @description add buttons-pixels
  5. // @author LudwigOS
  6. // @match http://www.ourworldofpixels.com/beta/*
  7. // @grant none
  8. // ==/UserScript==
  9. //colorinfostatus =1;
  10.  
  11. randomnumber = selfRandom;
  12. function selfRandom(min, max)
  13. {
  14. return Math.floor(Math.random() * (max - min + 1)) + min;
  15. }
  16.  
  17. WorldOfPixels.net.sendMessage = function(message) {
  18. if (message.length && this.net.isConnected()) {
  19. if (this.net.chatBucket.canSpend(1)) {
  20. this.net.connection.send(message + String.fromCharCode(10));
  21. } else {
  22. }
  23. }
  24. }.bind(WorldOfPixels);
  25.  
  26. activatebot = function(x,y){WorldOfPixels.net.updatePixel(x+0,y+0,[0,0,255]);
  27. numcolormassive = [];
  28. numcolorinfo = -1;
  29. //WorldOfPixels.net.updatePixel(-1,-3,[0,255,0]); WorldOfPixels.net.updatePixel(0,-3,[0,255,0]); WorldOfPixels.net.updatePixel(1,-3,[0,255,0]);
  30. //setInterval(function(){if(numcolorinfo >2){numcolorinfo = -1;}},-Infinity);
  31. colorinfoz = "";
  32.  
  33. //if(numcolorinfo <-1){numcolorinfo = -1;}
  34. clrlolinfoz2 = [];
  35. lolinfozlength2 = -1;
  36. //if(colorinfo=="0,0,0"){setTimeout(function(){WorldOfPixels.net.updatePixel(0,0,[0,255,0]); WorldOfPixels.net.sendMessage("You clicked on this button");},1000); }
  37. 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);
  38. setInterval(function(){colorinfoz = ""+WorldOfPixels.getPixel(x+0,y+0)+"";},-Infinity);
  39. //if(numcolormassive.length>0){}
  40.  
  41.  
  42. };
  43.  
  44. //if(colorinfo == "null"){colorinfo = ""+WorldOfPixels.getPixel(0,0)+"";}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement