Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
56
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 speedhack v3
  3. // @version 0.1
  4. // @description dsadsadsa
  5. // @author adison
  6. // @match http://jaruna.margonem.pl/
  7. // @match http://game2.margonem.pl/
  8. // @match http://zorza.margonem.pl/
  9. // @match http://fobos.margonem.pl/
  10. // @match http://experimental.margonem.pl/
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. ! function(oldU, oldN) {
  15. var i = 0;
  16. var ready_to_runboost = false;
  17. var box1 = document.createElement("div");
  18. box1.id = "speed";
  19. box1.style = "width: 15px; height: 15px; background: red; position: absolute; top: 228px; left: 95px; border-radius: 50%";
  20. document.querySelector("#panel").appendChild(box1);
  21. document.addEventListener("keyup", function(e) {
  22. if (e.target.tagName != "INPUT" && e.target.tagName != "TEXTAREA" && e.which == 71 && ready_to_runboost == true) {
  23. ready_to_runboost = false;
  24. i = 0;
  25. document.querySelector("#speed").style.background = "orange";
  26. var runboost = setInterval(gameThread, 150);
  27. setTimeout(function() {
  28. document.querySelector("#speed").style.background = "red";
  29. clearInterval(runboost);
  30. }, 2000);
  31. }
  32. })
  33. hero._u = function(e) {
  34. i++;
  35. if (i * 0.52 >= 10 && ready_to_runboost == false && document.querySelector("#speed").style.background == "red") {
  36. document.querySelector("#speed").style.background = "green";
  37. ready_to_runboost = true;
  38. }
  39. oldU.apply(this, arguments);
  40. }
  41. //ukrycie tej jebanej choinki w ithan pod ktora sie chowają cepy
  42. newNpc = e => {
  43. oldN(e);
  44. for(var i in e){
  45. var npc = e[i];
  46. if(npc.id == "77002"){
  47. document.querySelector(`#npc${npc.id}`).style.display = `none`;
  48. break;
  49. }
  50. }
  51. }
  52. }(hero._u, newNpc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement