Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
ikariam alarm and overview table
This script automatically refreshes the page in Ikariam (every 5-10 minutes), and if there's a new message, or an attack, it warns you with a sound signal.<br> It also collects important information about your towns (population, amount of resources, building levels, buildings under construction), and displays it all in a table below your town.<br> <br> <br> Az ikariam játékban automatikusan frissíti az oldalt (5-10 percenként), és ha új üzenet jön, vagy megtámadnak, akkor hangjelzéssel figyelmeztet.<br> Ezen kívül a falvakról összegyűjti a fontos információkat (lakosok, nyersanyagok mennyisége, épületek szintje, építés alatt álló épület), és a lap alján egy táblázatban megjeleníti.<br>
Screenshot:
http://img233.imageshack.us/my.php?image=dumpgm...
Latest update:
- 2008.06.02:
* Russian translation by LiFeAiR
* Tavern wine usage missed for level 17
- 2008.06.01:
* colorize current building in buildings table
- 2008.05.31:
* in building view, getting upgrading building name is not worked for town hall. fixed.
* mark current population red, when citizens number reaches town halls capacity
- 2008.05.26:
* colorize players in highscore view, using his/her alliance name. There are 3 type of alliances: your own alliance, friendly alliances and hostile alliances.
You have to set these values in settings to see any changes. Alliance names separated by commas. If alliance name contains comma, you stucked.
Also, there are 3 styles in css to configure colors.
To work properly, I have to set the form's method to "get". I think it can be detectable by gameforge, so I recommend you not use this feature (i.e. leave all 3 values empty) !
See full version history in source.
Known bugs:
Suggestions:
- Display the happy level of each town in another column after population since you have the information already. Change colours of text based on happy,neutral,angry. (ocdcsv)
- Also Gold Display is needed somewhere. From the Gold Table (i.e. when clicking on the gold coins) and Net Gold from each town view. Perhaps showing it as thousands i.e. $1,435,455 would be shown as $1,435 and with a +/- Net change. The column header would be "Gold ($,000)" (ocdcsv)
- email or sms sending when attacked (alpha tester) I think that would even more exremely illegal :)
- Could you add army and ship movements too? (Pax0707)
|
|
этот скрипт не обновляет информацию о транспортных кораблях в пути
|
|
|
New issues today (July 1st). I have fixed them and uploaded a script here: http://userscripts.org/scripts/show/29431 (Doh - the original script I uploaded still had a bug. Fixed it now. The script at the link above now should work correctly). |
|
|
Haha, need the resources too much since the corruption has gone up. Ikariam gets tougher to play every time... :) I guess that's why you need it too so hard! Thanks for the update, will install it immediately. |
|
|
I re-uploaded the script here:
Maybe you guys can send me some extra *Marble*, Crystal, and Wine =) |
|
|
Ok, I lost track. I thought I updated all the code according to what was said below here, but now the entire table is gone... So I must have done something terrible wrong. Would Kevlar, LiuA or Johan be so kind to post a complete working version? I only know a little bit of javascript and I'm not able to figure this one out ;) |
|
|
Thanks LiuA,
|
|
|
KevlarTheGreat - Updated my previous comments w/ a check for undefined
if (island_id == undefined){
island_id = "";
}
Should be working now. Once again, new to greasemonkey scripts and this code. |
|
|
Thanks LiuA,
Thanks, Kevlar |
|
|
For the merchant navy transport fix, I had to remove the extra [xx,xx] island information from the city name. I added:
to Coop's Trim Whitespace Function:
/***********************************************************************
* Trim Whitespace Function ************************************************************************/
function Trim(str){
str = str.substring(str.indexOf(']')+1,str.length);
while(str.charAt(0) == (" ") ){
str = str.substring(1);
}
while(str.charAt(str.length-1) == " " ){
str = str.substring(0,str.length-1);
}
return str;
}
|
|
|
Here's a fix to the change in the city names. The island location was added to the city names. After this line:
I added the 5 lines:
var island_id = getNodeValue("id('breadcrumbs')//a[@title='Back to the island']");
if (island_id == undefined){
island_id = "";
}
city_idmainView = TrimIsland(island_id)+" "+city_idmainView;
Make sure you've applied Coop's previous fix w/ the extra white space to the line below (see previous posting from Coops)
Also added a TrimIsland Function:
/**************************************************************************************************
* TrimIsland Function ******************************************************************/
function TrimIsland(str){
var a = str.indexOf('[');
var b = str.indexOf(']');
str = str.substring(a,b+1);
return str;
}
I'm new to greasemonkey scripts, but this seems to fix part of the recent problems.. |
|
|
Johan, you seem to really know what you are doing and we haven't seen an update from the author in a long time.... maybe you could take over or post a clean update somewhere again? I appreciate your work on this so far and it sounds like you could change it so it doesn't break as often.. I would love to change it myself, I just don't have time to learn javascript right now. Anyhow, thanks either way,
|
|
|
Advice to whomever might fix this next time: Instead of the brittle XPath expression to look up the name of the current building, use the value of
This works stably across any page layout changes Gameforge ever does, and is what Kronos Utils does without ever encountering any trouble (track record back to 0.1.8, or thereabouts, when I think I started hacking on Kronos). |
|
|
Yup, the silent update this morning with all the crappy Ikariam Plus advertising has broken the (patched) script again. |
|
|
Gah, Gameforge must have tweaked something again, because ship and town updates aren't working anymore. It was working last night (with the tweaks posted here installed) and had been since v0.2.5, but now it's broken again :( -G |
|
|
Hello
|
|
|
Jut eszembe...
|
|
|
|
|
|
i have pushed the reset all data bottom, only now the tables will not work at all anymore, it will not show the correct data any more.
|
|
|
Hi, with patch v.0.2.5 the military table does not refreshes for me. |
|
|
Any update soon? Things are messed up after v2.5 Thanks, |
|
|
Greek } else if (language == "gr") { //by Samael
|
|
|
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.
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: /**************************************************************************************************
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')
To find 1452, search for: cities[n.value] = n.innerHTML;
Or, if you're lazy, just download it here.
|
|
|
Change those lines from Polish translation: "branchOffice" : ["Mercato", "Mercato"],
to
|
|
|
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. |
|
|
They dont refresh the scores and bulidings if ended !
|
You could comment on this script if you were logged in.
