Ikariam Army Helper

By GrAndAG Last update Jan 16, 2011 — Installed 219,435 times.

Battlefield Sea+Town

in
Subscribe to Battlefield Sea+Town 7 posts, 2 voices



TorfDrottel Scriptwright
FirefoxWindows

nice plugin, but

-the correct Sea-Battle-Size is always 5.
-a town 5 has 5 slots, not 3

 
GrAndAG Script's Author
FirefoxX11

Sorry, I did not catch your first sentence.
Regarding the second, you are correct. And my script shows 5 slots. Where is the issue?

 
TorfDrottel Scriptwright
FirefoxWindows

the first issue: the Sea-battle has always 5 slots front line, 5 slots mortar/catapults and 1 slot submarine independent of the current city size.

second: hmm, I am pretty sure that it did show only 3 slots, but I can not reproduce it. I did hit the correct city, I attacked several times and only after the last upgrade I noticed that the preview displayed some units in reserve.
Unless I can reproduce it you needn't worry, otherwise I will provide a screen shot.

 
GrAndAG Script's Author
FirefoxX11

Ok. It appears you are right regarding sea-battle field size. I do not use fleet (and looks like almost nobody uses it), therefore couldn't be noticed about mismatch in number of slots.

 
TorfDrottel Scriptwright
FirefoxWindows

I am sorry but I was right. It is a IkaTools - bug.

  var targetLevel = IkaTools.getVal("ikariamArmyHelper.targetCityLevel." + targetId);
  if (typeof(targetLevel) == 'object') {
    targetLevel = 1;
  }

to reproduce the bug, jump via a link to the town to attack (from an old pillage report). When you attack without changing the selection, the town level is said to be 1.

 
GrAndAG Script's Author
FirefoxWindows

As I understand, the additional condition is you never attacked (clicked to this city on an island) before. Otherwise the level of target city would be recorded. The script stores target level on click event. Perhaps it is needed to change the algorithm to scan whole island and save target levels for all cities on it.

Actually I presume the situation when target level is not defined (i.e. going to pillage page using direct links provided by other scripts, etc.). But which level to use in this case?

 
TorfDrottel Scriptwright
FirefoxWindows

I use several computers -> ergo on some of them your script did not store the town size.
I suggest to assume the worst case (10) when the town size is unknown, better be save than sorry ;)