Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. window.addEventListener("mousemove", function(e) {
  2. custom_mouse.x = e.clientX;
  3. custom_mouse.y = e.clientY;
  4. });
  5. window.addEventListener("keydown", CaptureKeyPress);
  6. window.addEventListener("keyup", CaptureKeyPress);
  7. window.addEventListener('beforeunload', onbeforeunload);
  8.  
  9. function onbeforeunload(e) {
  10. e.returnValue = "false";
  11. };
  12. var Edown = false;
  13.  
  14. function CaptureKeyPress(a) {
  15. if (game.chat.info.input.info.state == 0 && game.is_run == true) {
  16. if (a.key == "e") {
  17. if (a.type == "keydown" && Edown == false) {
  18. Edown = true;
  19. incre();
  20. }
  21. if (a.type == "keyup" && Edown == true) {
  22. Edown = false;
  23. }
  24. }
  25. }
  26. }
  27.  
  28. function scan() {
  29. let GameOibs = lapa28426mauve.lapa28388mauve;
  30. let My_Oibs = new Array();
  31. let My_Queen = new Object();
  32. let k = 0;
  33. for (k = 0; k < GameOibs.length; k++) {
  34. if (GameOibs[k] != undefined) {
  35. if (GameOibs[k].id == player.id) {
  36. if (GameOibs[k].queen == true) {
  37. My_Queen = GameOibs[k];
  38. } else {
  39. My_Oibs.push(GameOibs[k]);
  40. }
  41. }
  42. }
  43. }
  44. var Oibs = {
  45. My_Oibs: My_Oibs,
  46. My_Queen: My_Queen
  47. }
  48. return Oibs;
  49. }
  50.  
  51. function move(x, y) {
  52. lapa28344mauve[_0xda98("0xd9")]({
  53. x: parseInt(x.toString(), 10),
  54. y: parseInt(y.toString(), 10)
  55. });
  56. }
  57.  
  58. function move_origin_queen(r) {
  59. lapa28344mauve[_0xda98("0xd9")]({
  60. x: parseInt((r.x + player.cam.rx).toString(), 10),
  61. y: parseInt((r.y + player.cam.ry).toString(), 10)
  62. });
  63. }
  64.  
  65. function move_mouse_oib() {
  66. lapa28344mauve[_0xda98("0xd9")]({
  67. x: parseInt((custom_mouse.x).toString(), 10),
  68. y: parseInt((custom_mouse.y).toString(), 10)
  69. });
  70. }
  71.  
  72. function incre(mul) {
  73. var My_Queen = scan().My_Queen;
  74. var My_Oibs = scan().My_Oibs;
  75. for (var x = 0; x < My_Oibs.length; x++) {
  76. player.select.units = [];
  77. player.select.units.push(My_Oibs[x]);
  78. move_mouse_oib();
  79. player.select.units = [];
  80. }
  81. if (Edown == true) {
  82. setTimeout(() => {
  83. incre();
  84. }, 17);
  85. }
  86. }
  87. var custom_mouse = {
  88. x: 0,
  89. y: 0
  90. };
  91. Math.ceil(Math.sqrt(My_Oibs.length));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement