Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEventListener("mousemove", function(e) {
- custom_mouse.x = e.clientX;
- custom_mouse.y = e.clientY;
- });
- window.addEventListener("keydown", CaptureKeyPress);
- window.addEventListener("keyup", CaptureKeyPress);
- window.addEventListener('beforeunload', onbeforeunload);
- function onbeforeunload(e) {
- e.returnValue = "false";
- };
- var Edown = false;
- function CaptureKeyPress(a) {
- if (game.chat.info.input.info.state == 0 && game.is_run == true) {
- if (a.key == "e") {
- if (a.type == "keydown" && Edown == false) {
- Edown = true;
- incre();
- }
- if (a.type == "keyup" && Edown == true) {
- Edown = false;
- }
- }
- }
- }
- function scan() {
- let GameOibs = lapa28426mauve.lapa28388mauve;
- let My_Oibs = new Array();
- let My_Queen = new Object();
- let k = 0;
- for (k = 0; k < GameOibs.length; k++) {
- if (GameOibs[k] != undefined) {
- if (GameOibs[k].id == player.id) {
- if (GameOibs[k].queen == true) {
- My_Queen = GameOibs[k];
- } else {
- My_Oibs.push(GameOibs[k]);
- }
- }
- }
- }
- var Oibs = {
- My_Oibs: My_Oibs,
- My_Queen: My_Queen
- }
- return Oibs;
- }
- function move(x, y) {
- lapa28344mauve[_0xda98("0xd9")]({
- x: parseInt(x.toString(), 10),
- y: parseInt(y.toString(), 10)
- });
- }
- function move_origin_queen(r) {
- lapa28344mauve[_0xda98("0xd9")]({
- x: parseInt((r.x + player.cam.rx).toString(), 10),
- y: parseInt((r.y + player.cam.ry).toString(), 10)
- });
- }
- function move_mouse_oib() {
- lapa28344mauve[_0xda98("0xd9")]({
- x: parseInt((custom_mouse.x).toString(), 10),
- y: parseInt((custom_mouse.y).toString(), 10)
- });
- }
- function incre(mul) {
- var My_Queen = scan().My_Queen;
- var My_Oibs = scan().My_Oibs;
- for (var x = 0; x < My_Oibs.length; x++) {
- player.select.units = [];
- player.select.units.push(My_Oibs[x]);
- move_mouse_oib();
- player.select.units = [];
- }
- if (Edown == true) {
- setTimeout(() => {
- incre();
- }, 17);
- }
- }
- var custom_mouse = {
- x: 0,
- y: 0
- };
- Math.ceil(Math.sqrt(My_Oibs.length));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement