Shinko to Kuma

Still Going Strong
Reaction score
788
Author
Shinko to Kuma
Contributors
Sass
Quickbar Entry
javascript:$.getScript("https://shinko-to-kuma.com/scripts/map_filterTWSophie.js");
Public?
Public
Approved ticket nr. t13576151

Another script, this time to grab all barbs in a specific radius (unlimited range) around your current village. This will be usefull specifically for C-farming, since it will automatically make a script for you that will allow you to send 1 scout to each of the barbs afterwards. Note, this script can only get updated data once an hour from the server, so it's possible if someone just barbed, it won't pick it up straight away. This is no limitation on my end, rather on TW's side.

Inner radius: Set to 0 if you want to search for all barbs, set higher if you want to exclude a circle around your village.
Outer radius: Furthest range you want to search for.

Example:
Inner=20, Outer = 30. The script will search for all the barbarians in a donut shape around your current village, from 20 tiles away till 30 tiles away.

Screenshot:

FAxPu.png


Script:


Code:
javascript:
$.getScript("https://shinko-to-kuma.com/scripts/map_filterTWSophie.js");

As always, let me know in the comments what you think

Sophie


Update: Added inner and outer radius
 
Changelog
19/4/2021 - Changed host
Last edited:
Upvote 3

Your High-ness

Well-Known Member
Reaction score
22
perefect!!! greaat!!

can there be 2 radius? so to grab barb in sort of a donut way?
set a min and max radius
 

Deleted User - 11592019

Guest
Whoaa, that´s so simple but yet so usefull!! Thank you so much!

Just tried it, and it works fine :))
 
Last edited by a moderator:

valtheran88

Non-stop Poster
Reaction score
93
Is there a way you could set this up to organize the villages by radius sequence...all barbs in radius then barbs in radius 2 then 3...when you are starting with a small amount of scouts to start a scouting run for example you would want to begin scouting closest first.
 

JawJaw

Awesomest CM Ever
Reaction score
2,204
Is there a way you could set this up to organize the villages by radius sequence...all barbs in radius then barbs in radius 2 then 3...when you are starting with a small amount of scouts to start a scouting run for example you would want to begin scouting closest first.

You can literally do this with the min max radius though...

Your first max radius becomes your second min radius, and so on...
 

valtheran88

Non-stop Poster
Reaction score
93
Yes I could donut out one section at a time...I have not experimented with the script extensively yet though will do that and see how it handles before requesting any other changes.
 

Deleted User - 11595623

Guest
Its a great script - works really well - I love the bonus animation - would be great to be able to change troop numbers , and have the villages sorted by distance too! :)
thank you for the work.
 

SwindlerBoy

New Member
Reaction score
11
Hi, this script is great!
Just a question, is there anyway of adding an option to only find barbs that are not currently being attacked?

Was thinking of setting a big radius, then finding X amount of barbs in that radius that im not hitting - then sending the 1 scout in to see what it has?

Thank you in advance.
 

jaro

Active Member
Reaction score
7
Hi, this script is great!
Just a question, is there anyway of adding an option to only find barbs that are not currently being attacked?

Was thinking of setting a big radius, then finding X amount of barbs in that radius that im not hitting - then sending the 1 scout in to see what it has?

Thank you in advance.
that would be awesome if you can add it
 

Shinko to Kuma

Still Going Strong
Reaction score
788
Changed host, new link:

Code:
javascript:
$.getScript("https://shinko-to-kuma.com/scripts/map_filterTWSophie.js");
 

Zorakir

New Member
Reaction score
0
is it just me that have problems with the script that get out after you run this? i have used it on 116 alott and it worked perfektly but tried it today on HP server and it only gives the first villa in the list.

javascript:coords='

!CORDS!

';var doc=document;if(window.frames.length>0 && window.main!=null)doc=window.main.document;url=doc.URL;if(url.indexOf('screen=place')==-1)alert('Use the script in the rally point page!');coords=coords.split(' ');index=0;farmcookie=document.cookie.match('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if(index>=coords.length)alert('All villages were extracted, now start from the first!');if(index>=coords.length)index=0;coords=coords[index];coords=coords.split('|');index=index+1;cookie_date=new Date(2021,3,27);document.cookie ='farm='+index+';expires='+cookie_date.toGMTString();doc.forms[0].x.value=coords[0];doc.forms[0].y.value=coords[1];$('#place_target').find('input').val(coords[0]+'|'+coords[1]);doc.forms[0].spy.value=1;end();


Ps. LOVE youre work with scripts you are a rolemodel for people that wana script!
 

Shinko to Kuma

Still Going Strong
Reaction score
788
is it just me that have problems with the script that get out after you run this? i have used it on 116 alott and it worked perfektly but tried it today on HP server and it only gives the first villa in the list.

javascript:coords='

!CORDS!

';var doc=document;if(window.frames.length>0 && window.main!=null)doc=window.main.document;url=doc.URL;if(url.indexOf('screen=place')==-1)alert('Use the script in the rally point page!');coords=coords.split(' ');index=0;farmcookie=document.cookie.match('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if(index>=coords.length)alert('All villages were extracted, now start from the first!');if(index>=coords.length)index=0;coords=coords[index];coords=coords.split('|');index=index+1;cookie_date=new Date(2021,3,27);document.cookie ='farm='+index+';expires='+cookie_date.toGMTString();doc.forms[0].x.value=coords[0];doc.forms[0].y.value=coords[1];$('#place_target').find('input').val(coords[0]+'|'+coords[1]);doc.forms[0].spy.value=1;end();


Ps. LOVE youre work with scripts you are a rolemodel for people that wana script!

don't put enters in the coordinate location. the script splits the coordinates by the space character
 

ALL.MIGHT

New Member
Reaction score
0
i got the same issue! :( only first barb is popping on rally point
javascript:coords='480|411 482|406 482|434 498|402 505|424 503|429 505|425 507|418 507|416 507|422 505|429 506|427 507|425 508|420 461|417 473|439 508|410 476|395 509|425 486|393 507|430 506|404 508|407 501|438 509|409 510|424 508|430 508|406 507|404 466|436 507|403 485|445 507|434 511|409 506|436 506|400 503|397 512|425 513|419 501|395 466|439 504|397 513|423 514|419 482|389 508|436 489|447 490|389 511|404 505|396 475|446 508|399 492|389 461|400';var doc=document;if(window.frames.length>0 && window.main!=null)doc=window.main.document;url=doc.URL;if(url.indexOf('screen=place')==-1)alert('Use the script in the rally point page!');coords=coords.split(' ');index=0;farmcookie=document.cookie.match('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if(index>=coords.length)alert('All villages were extracted, now start from the first!');if(index>=coords.length)index=0;coords=coords[index];coords=coords.split('|');index=index+1;cookie_date=new Date(2021,3,27);document.cookie ='farm='+index+';expires='+cookie_date.toGMTString();doc.forms[0].x.value=coords[0];doc.forms[0].y.value=coords[1];$('#place_target').find('input').val(coords[0]+'|'+coords[1]);doc.forms[0].spy.value=1;end();
 

TWINT

New Member
Reaction score
0
Hello

I have the same problem. When I run the generated script with the coordinates in the rally point, the script inserts only one barbarian village. Then when I click on attack it only sends one attack.

Please help and thanks for the great script.

With kind regards
 

Restless

New Member
Reaction score
0
Is it possible to make a checkable option to exclude villages that are already in the farm manager?
Ty :)
 
Top