Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. ! function(oldU, __g) {
  2. var i = 0;
  3. var ready_to_runboost = false;
  4. var box1 = document.createElement("div");
  5. box1.id = "speed";
  6. box1.style = "width: 15px; height: 15px; background: red; position: absolute; top: 240px; left: 122px; border-radius: 50%";
  7. document.querySelector("#panel").appendChild(box1);
  8. document.addEventListener("keyup", function(e) {
  9. if (e.target.tagName != "INPUT" && e.target.tagName != "TEXTAREA" && e.which == 71 && ready_to_runboost == true && !g.battle) {
  10. ready_to_runboost = false;
  11. i = 0;
  12. box1.style.background = "orange";
  13. var runboost = setInterval(gameThread, 150);
  14. setTimeout(function() {
  15. box1.style.background = "red";
  16. clearInterval(runboost);
  17. }, 2000);
  18. }
  19. })
  20. hero._u = function(e) {
  21. i++;
  22. if (i * 0.52 >= 10 && ready_to_runboost == false && box1.style.background == "red") {
  23. box1.style.background = "green";
  24. ready_to_runboost = true;
  25. }
  26. oldU.apply(this, arguments);
  27. }
  28. //ukrycie choinki
  29. let s = document.createElement("style");
  30. s.type = "text/css";
  31. s.appendChild(document.createTextNode("#npc77002{display:none}#speed{width: 15px;height: 15px;background: red;position: absolute;top: 240px;left: 122px;border-radius: 50%}"));
  32. document.head.appendChild(s);
  33. //dla dodatku szybszeladowanie
  34. _g = (a, b) => {
  35. if(a.indexOf("init&initlvl=4") > -1){
  36. i = 0;
  37. ready_to_runboost = false;
  38. box1.style.background = "red";
  39. }
  40. return __g.apply(this, [a, b]);
  41. }
  42. }(hero._u, _g)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement