Remember warehouse level
|
|
Great script. As it is now, when I'm doing my pillaging, I have to first view the city to see the warehouse level, then go back, do the spy, type in the level, then go back and view the city again to get to the island and attack. 1) If you could get it to remember the warehouse level from the last time you visited that city, it would be really awesome. 2) If you could add a link in the spy report to go to the island and possibly also select the city for easy attacking, that would be great too. Thanks. =) |
|
|
Hey, nice job on the new version. I was up all night learning Grease Monkey and just finished modifying your script to remember the warehouses and I was coming to post my changes. =) I think the next thing to add is to add a direct link to pillage that city from the spy report (we can do this by remembering the city ID and constructing a pillage link), and then on the pillage screen, fill in the number of extra boats to send. I was also wanting to remember the level of the city wall and then automatically fill in the troops to send assuming the target has zero military score. I can help out with this a little bit with the part that I've figured out so far. Saving the city ID from the city view screen:
function gup( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
var cityID = gup('id');
GM_setValue(cityName + "_ID", cityID);
I have about 35 spies in cities with zero military score that I would like to go through and pillage twice a day if it wasn't so damn boring. With the proposed integration, we could just click on the hideout, spy on the city, click on the pillage link, and then hit send. It would be so easy and fast. |
|
|
Thanks for the remembering of the warahouse level. The 'return to hideout, hideout tab' is the best button I've seen all day. =D |
|
|
@ Bedevere I've also implemented that myself in the script. Now I'm looking for a way to remember the island ID of a city to add a spy link. |
|
|
Yeh I did it. Kabji if you give your contact details I will send you my updated version of the script. This includes attack links and a spy link on report pages. |