Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

destroyWalls.js #5

Open
Deswer60871 opened this issue Nov 27, 2021 · 0 comments
Open

destroyWalls.js #5

Deswer60871 opened this issue Nov 27, 2021 · 0 comments

Comments

@Deswer60871
Copy link

I would like to turn on this script in the help of looting (the script for the farm would be turned off) and the script would fill in the number of units and click sent (directly in the assistant looting)

javascript:/* :) /function Muralha () { let Coords = [];$('tr[id^=village_]').each( function(e) { let Muralhas = parseInt($(this).find('td').eq(6).text()); if (Muralhas > 0) { let Coord = $(this).find('td').eq(3).text().match(/(\d+)|(\d+)/g)[0]; Coords.push(Coord); } }); let x = Coords.toString().replace(/,/g, " "); alert(x);}/ :) */Muralha();void(0);

for example, the coordinates would be taken and filled in, and the script would rotate them all with a certain number of units

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant