Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. // ==UserScript==
  2. // @name SpeedHack V5 NEW NA PRZYCISK (G)
  3. // @version 0.1
  4. // @description jotpe
  5. // @author adison
  6. // @match katahha.margonem.pl
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. ! function(oldU, oldN) {
  11. var i = 0;
  12. var ready_to_runboost = false;
  13. var box1 = document.createElement("div");
  14. box1.id = "speed";
  15. box1.style = "width: 15px; height: 15px; background: red; position: absolute; top: 228px; left: 95px; border-radius: 50%";
  16. document.querySelector("#panel").appendChild(box1);
  17. document.addEventListener("keyup", function(e) {
  18. if (e.target.tagName != "INPUT" && e.target.tagName != "TEXTAREA" && e.which == 71 && ready_to_runboost == true) {
  19. ready_to_runboost = false;
  20. i = 0;
  21. document.querySelector("#speed").style.background = "orange";
  22. var runboost = setInterval(gameThread, 150);
  23. setTimeout(function() {
  24. document.querySelector("#speed").style.background = "red";
  25. clearInterval(runboost);
  26. }, 2000);
  27. }
  28. })
  29. hero._u = function(e) {
  30. i++;
  31. if (i * 0.52 >= 5 && ready_to_runboost == false && document.querySelector("#speed").style.background == "red") {
  32. document.querySelector("#speed").style.background = "green";
  33. ready_to_runboost = true;
  34. }
  35. oldU.apply(this, arguments);
  36. }
  37. //ukrycie tej jebanej choinki w ithan pod ktora sie chowają cepy
  38. newNpc = e => {
  39. oldN(e);
  40. for(var i in e){
  41. var npc = e[i];
  42. if(npc.id == "77002"){
  43. document.querySelector(`#npc${npc.id}`).style.display = `none`;
  44. break;
  45. }
  46. }
  47. }
  48. }(hero._u, newNpc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement