ikariam alarm and overview table

By Suller Andras Last update Jun 2, 2008 — Installed 63,902 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 260 posts, 74 voices



fallenangel User

Hi, with patch v.0.2.5 the military table does not refreshes for me.

 
Abu-Azzam User

Any update soon? Things are messed up after v2.5

Thanks,

 
Samael Scriptwright

Greek

} else if (language == "gr") { //by Samael
buildings = {
"townHall" : ["Δημαρχείο", "Δημαρχείο"],
"academy" : ["Ακαδημία", "Ακαδημία"],
"port" : ["Εμπορικός Λιμένας", "Εμπορικός Λιμένας"],
"shipyard" : ["Ναυπηγείο", "Ναυπηγείο"],
"warehouse" : ["Αποθήκη", "Αποθήκη"],
"wall" : ["Τοίχος", "Τοίχος"],
"tavern" : ["Ταβέρνα", "Ταβέρνα"],
"museum" : ["Μουσείο", "Μουσείο"],
"palace" : ["Παλάτι", "Παλάτι"],
"palaceColony" : ["Κατοικία", "Κατοικία"],
"embassy" : ["Πρεσβεία", "Πρεσβεία"],
"branchOffice" : ["Αγορά", "Αγορά"],
"safehouse" : ["Καταφύγιο", "Καταφύγιο"],
"barracks" : ["Στρατώνας", "Στρατώνας"],
"workshop-army" : ["Εργαστήριο", "Εργαστήριο"],
};
texts = {
"cityName": "Όνομα Πόλης", "currentlyBuilding": "Τρέχουσα Εργασία", "summary": "Σύνοψη:",
"hide_settings": "Απόκρυψη Ρυθμίσεων", "show_settings": "Εμφάνιση Ρυθμίσεων",

 
Paul User

TO ALL WHO HAVE BROKEN SCRIPTS AS OF THE NEW VERSION. COOPS HAS POSTED SOLUTIONS BELOW.

I will repeat them for ease of finding.

Here is a fix for building detection.
Change line 631 to:
city_idmainView = getNode_value("//option[@class='avatarCities' and text()=' "+city_idmainView+"']", 0);
All I did was add a "space" after text()=', this allows the script to get the cityid as they have added an addtional whitespace to the front of the city names in the main drop down list.
This is my first ever go at greasemonkey script writing - but it works for me.

The fix for the pillage/navy info is similar - you need to trim the whitespace they have added to the start of the city names. In my script I added the following function:

/**************************************************************************************************
* Trim Whitespace Function *************************************************************************************************/
function Trim(str)
{ while(str.charAt(0) == (" ") )
{ str = str.substring(1);
}
while(str.charAt(str.length-1) == " " )
{ str = str.substring(0,str.length-1);
}
return str;
}

and then used it on line 1452:

cities[n.value] = Trim(n.innerHTML);

Again - I am new to writing greasemonkey scripts - but this fix works for me.

To find line 631, search for: id('breadcrumbs')
This is line 630. Replace the next line with the one posted above.

To find 1452, search for: cities[n.value] = n.innerHTML;
This is 1452. Replace it with the one posted above. Place the function chunk at the bottom of the script file.

Or, if you're lazy, just download it here.
http://www.mediafire.com/?t3wmgjvu3cy

 
LukiQ User

Change those lines from Polish translation:

"branchOffice" : ["Mercato", "Mercato"],
"safehouse" : ["Rudere", "Rudere"],

to
"branchOffice" : ["Bazar", "Bazar"],
"safehouse" : ["Kryjówka", "Kryjówka"],

 
Johan Sundström Scriptwright

The eager or lazy person which does not want to apply these patches may pick up a copy from http://ecmanaut.googlecode.com/svn/trunk/sites/... for the time being until Suller Andras gets to updating the original here.

 
Shakall User

They dont refresh the scores and bulidings if ended !
On the new version 0.2.5 !

 
Trigger User

Please specify the things you mean don't work.

I made a wrong assumption - corruption works.

 
Amoulier Scriptwright

Don't work whit the new version of Ikariam. (v.0.2.5)

 
Trigger User

Very very nice - thank you guys.

All 3 corrections works fine for me.

Now we just need a correction for the corruption.

--------------------------------------------------------

Just checked - corruption works, so everything works fine again..

 
Blackkflyer User

Danish

} else if (language == "dk") { //by Blackkflyer
buildings = {
"townHall" : ["Rådhus", "Rådhus"],
"academy" : ["Akademi", "Akademi"],
"port" : ["Handels havn", "Handels havn"],
"shipyard" : ["Skibsværft", "Skibsværft"],
"warehouse" : ["Lagerbygning", "Lagerbygning"],
"wall" : ["Bymur", "Bymur"],
"tavern" : ["Værtshus", "Værtshus"],
"museum" : ["Museum", "Museum"],
"palace" : ["Palads", "Palads"],
"palaceColony" : ["Guvernørs residens", "Guvernør"],
"embassy" : ["Ambassade", "Ambassade"],
"branchOffice" : ["Handelsstation", "Handelsstation"],
"safehouse" : ["Skjulested", "Skjulested"],
"barracks" : ["Kaserne", "Kaserne"],
"workshop-army" : ["Værksted", "Værksted"],
};
texts = {
"cityName": "By navn", "currentlyBuilding": "Bliver bygget",
"summary" : "Total:", "hide_settings": "skjul indstillinger", "show_settings": "Vis indstillinger",
};

 
Coops Scriptwright

The fix for the pillage/navy info is similar - you need to trim the whitespace they have added to the start of the city names. In my script I added the following function:

/**************************************************************************************************
* Trim Whitespace Function *************************************************************************************************/
function Trim(str)
{ while(str.charAt(0) == (" ") )
{ str = str.substring(1);
}
while(str.charAt(str.length-1) == " " )
{ str = str.substring(0,str.length-1);
}
return str;
}

and then used it on line 1452:

cities[n.value] = Trim(n.innerHTML);

Again - I am new to writing greasemonkey scripts - but this fix works for me.

 
Coops Scriptwright

Here is a fix for building detection.
Change line 631 to:
city_idmainView = getNode_value("//option[@class='avatarCities' and text()=' "+city_idmainView+"']", 0);
All I did was add a "space" after text()=', this allows the script to get the cityid as they have added an addtional whitespace to the front of the city names in the main drop down list.
This is my first ever go at greasemonkey script writing - but it works for me.

 
Trigger User

As Bman913 has pointed out the building detection has stopped when upgraded to 2.5 and it doesn't show results from looting/shipments any more either. The corruption who started in 2.5 is also not shown.

This is a very usefull script and absolutely a must.

If Suller Andres (who made this magnificent script) does'nt upgrade, maybe we can help each other.

I have a little knowledge of programming and maybe if Bman913 can give some input we might be able to solve the problems.

 
Bman_ User

the script will need some updating for 0.2.5
especially for the detection of when a building is being built/upgraded

 
geparddako User

Helló!
Nagyon zsír a scripted.Az érdekelne, hogy létezik-e módszer amivel hatásosan kitudják szűrni a moderátorok,hogy használom-e vagy sem a kiegészítésed.

 
Pheran User

@Suller: For whatever reason, wine used for military units (the cook is the only one) is worth 16 points, not 4. Thus a cook is:

2*520 + 16*103 = 2688

As long as you have at least one cook in your military, test it. You will see that the script is displaying the wrong military score.

See also:

http://board.ikariam.org/index.php?page=Thread&...

 
Abu-Azzam User

Very useful. Thanks a lot.

 
beg67 User

Hello

hát próbáltam belekontárkodni de nem sikerül:S
a játékosokról szóló táblázathoz próbáltam hozzágyógyítani a scorelinker scriptet de nem működik.
szal írd hozzá az ötletekhez, ahogy nézem mindenki akar még valamit hozzá :D

egyébként minden elismerésem, nagyon ütős script lett!!!!!!!

 
nathaniel_hi... Scriptwright

I have a suggestion/request. Could you by chance add the current wood/wealth level of that island on the table? Also maybe how many people can work on that resource?

Thanks

 
NismoR User

Hello! András én is magyar vagyok, azt szeretném kérdezni,hogy myvipre nem tudsz vmi olyasmi scriptet csinálni, hogy kiírja hogy kinézte meg a képeimet, Előre is köszi NismoR

 
ThisIsNotMyR... Scriptwright

@Tegner

They can see from what page you came from via link. Meaning, there are no normal links to the mines from your city, so if they see you come to the mine directly from your city something is wrong... and you are changing the way "they" want the game played. They wont know which script you're running, but they know that you came from another link other then the one they wanted. ( I think there is one "approved script that links resources, but I'm probably wrong)
I hope that made sense...
I don't worry about it too much myself, but I'm sure I will once/if I get booted.

 
Guybrush Scriptwright

Hi Suller Andras,
Is it possible to develop a simulator which is related to number of pieces which are attacked and the numbers of defences : )
Here is a sample;
http://userscripts.org/scripts/show/27796

 
Tegner User

Thanks for this awsome script.
Can you explain how GF detects that your using a script. You wrote: "When you use the quick links on resources (to the mills/mines), they can notice, that you was not visited the island before"
How do you mean, a quick link? Like those in Kronos Utils?

And here is the Swedish translation :)

} else if (language == "se") { //Swedish translation, Tegner
buildings["townHall"] = ["Rådhus", "Rådhus"];
buildings["academy"] = ["Akademi", "Akademi"];
buildings["port"] = ["Handelsstation", "Handelsstation"];
buildings["shipyard"] = ["Skeppsvarv", "Skeppsvarv"];
buildings["warehouse"] = ["Lagerlokal", "Lagerlokal"];
buildings["wall"] = ["Stadsmur", "Stadsmur"];
buildings["tavern"] = ["Taverna", "Taverna"];
buildings["museum"] = ["Museum", "Museum"];
buildings["palace"] = ["Palats", "Palats"];
buildings["palaceColony"] = ["Guvernörsresidens", "Guvernörsresidens"];
buildings["embassy"] = ["Ambassad", "Ambassad"];
buildings["branchOffice"] = ["Filial", "Filial"];
buildings["safehouse"] = ["Gömställe", "Gömställe"];
buildings["barracks"] = ["Kasern", "Kasern"];
buildings["workshop-army"] = ["Verkstad", "Verkstad"];
texts["cityName"] = "Stadsnamn";
texts["currentlyBuilding"] = "Pågående byggen";
texts["summary"] = "Summa:";

and for:
"Hide settings" = "Visa inställningar"
"Show settings" = "Göm inställningar"

 
ordan User

Hi,

it is greate script. thanks

Do you plan add functionality, click on number of level some building and you go in.

Like http://corentin.jarnoux.free.fr/kronosutils/Tut...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel