ikariam alarm and overview table

By Coops Last update Jul 7, 2008 — Installed 13,965 times. Daily Installs: 0, 2, 1, 1, 9, 0, 0, 0, 1, 0, 0, 3, 2, 1, 1, 0, 1, 1, 3, 2, 1, 3, 2, 0, 2, 14, 7, 1, 1, 1, 0

Archived Comments (locked)

Subscribe to Archived Comments 72 posts, 38 voices

Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
rfu User

Will there be an update soon? with fornax's update.. also for me.. cant see army and cities table.. other having thoose troubles?

 
luzer- Scriptwright

I'd like to ask the same as epipe, if it's possible plz someone activate the tooltip!
By the way thx fornax for the 0.2.8 update

 
epipe User

Thanks for all your work, but is there any way to activate arrivinggoods tooltip?

 
SocratesF User

Thanks fornax, it works again!

 
noname!!! Scriptwright

research don't work with the code below! at least all other are ok :)

 
fornax User

replace the entire digProducedResources() function on line 907 to support v0.2.8:

function digProducedResources(res) {
  var scripts = document.getElementsByTagName("script");
  var nScript = scripts[scripts.length - 1];
  var sCode = nScript.innerHTML;

  var aCodeLines = sCode.split(';');
  if (aCodeLines.length < 24)
    return;
  var sWood = aCodeLines[24].substring(aCodeLines[24].indexOf('(')+2,aCodeLines[24].indexOf(')')-1);
  var startResourcesDelta = /production: *([0-9.]+)/.exec(sWood);
  if (startResourcesDelta != null) {
    startResourcesDelta = parseFloat(RegExp.$1) * 3600;
  } else {
    startResourcesDelta = 0;
  }
  var sTradeGood = aCodeLines[27].substring(aCodeLines[27].indexOf('(')+2,aCodeLines[27].indexOf(')')-1);
  var startTradegoodDelta = /production: *([0-9.]+)/.exec(sTradeGood);
  if (startTradegoodDelta != null) {
    startTradegoodDelta = parseFloat(RegExp.$1) * 3600;
  } else {
    startTradegoodDelta = 0;
  }

  var sName = /valueElem: \"(.*?)\"/.exec(sTradeGood);
  var sTradeGoodName = sName[1];

//  var res = getCity(city_id);
  res.prodwood = startResourcesDelta;
  res.prodwine = 0;
  res.prodmarble = 0;
  res.prodglass = 0;
  res.prodsulfur = 0;
  res.prodtime = ""+new Date().getTime(); //a leolvasas idopontja
  if (sTradeGoodName == "value_wine") {
    res.prodwine = startTradegoodDelta;
  } else if (sTradeGoodName == "value_marble") {
    res.prodmarble = startTradegoodDelta;
  } else if (sTradeGoodName == "value_crystal") {
    res.prodglass = startTradegoodDelta;
  } else if (sTradeGoodName == "value_sulfur") {
    res.prodsulfur = startTradegoodDelta;
  }
}

 
Guido User

Any chance of getting this script updated for the ikariam v0.2.8 changes?

 
lafael User

can coops fix the script as salvatore wrote??
cause i dont know how to edit the source
or can anyone tell me how can i replace the source for the tooltip (++)

 
ludek michera User

What about functionality to player and cities list - show how much money one can pillage from the listed cities.. It would be very nice:)

 
luzer- Scriptwright

Salvatore:
thx a lot, now it's working fine again!

 
Salvatore User
Hi, for the Tooltip (++) try replacing

} else {
if (/view=merchantNavy/.test(document.URL)) {
config["arrivinggoods"] = new Object();
var cities = {};
var res = xpath("//select[@id='citySelect']/option");
for(var i = 0; i < res.snapshotLength; i++) {
var n = res.snapshotItem(i);
cities[n.value] = Trim(n.innerHTML);
}
var res = xpath("//table[@class='table01']/tbody/tr/td/br");
for(var i = 0; i < res.snapshotLength; i++) {
var n = res.snapshotItem(i).parentNode;
var cel = n.innerHTML.replace(/
.*/, "");


with

}
{
if (/view=merchantNavy/.test(document.URL)) {
config["arrivinggoods"] = new Object();
var cities = {};
var res = xpath("//select[@id='citySelect']/option");
for(var i = 0; i < res.snapshotLength; i++) {
var n = res.snapshotItem(i);
cities[n.value] = Trim(n.innerHTML);
}
var res = xpath("//table[@class='table01']/tbody/tr");
for(var i = 0; i < res.snapshotLength; i++) {
var n = res.snapshotItem(i).childNodes[1];
n = getNextNode(n);
var cel = Trim(n.innerHTML.replace(/
.*/, ""));


Good luck, bye!
 
luzer- Scriptwright

Since 0.2.7 there's a tooltip (++) in the resource table only for the transports. It doesn't show the resources from pillages. Is there any chance, that someone will fix it?

 
frechi User

need some help with this script.
if the x or y coordinates are smaller than 10 the script will not work correctly.
example:
09:53 will not work
10:53 work correctly

can someone please help me to fix it?

 
QuarkCZ User

2 Murphy: OK, helped - moved before all other scripts, coordinates turned on and now it works fine :-D
THX A LOT! I love this script and can't play without it :-D

 
HappySpleen User

This script works great and was just about what I was looking for.
There is one thing I would like to see added and that is a table for your trade ships. (Where there going, how soon they will get there, ect., ect.)

**Edit: I just saw the ++ next to resources that had incoming trade ships but I would like to see a count down similar to the current building timer.

 
Murphy User

2 QuarkCZ: But this is working with 0.2.6! If you don't see building data, you must go to your Ikariam account settings and there you must change display options for drop down menu (with towns' names) to see towns' coordinates. Then you must click on "Show all settings" and then "Reset all data" (or reinstall whole script with deletion of user data ;–)

 
QuarkCZ User

Unfortunatelly doesn't work with 0.2.6 version - could someone please update this great and essential to work with 0.2.6?

 
Abu-Azzam User

I uninstalled it. Completely messed up!!!

 
mrFiX User

Melhior:
Я бы так и сделал. Я этот блок нашел. Но там по идее должен же быт UTF-8 ?
А текст который был в старом, работающем скрипте у меня ни один из имеющихся редакторов не показывает по русски корректно.
Вот и думал, что будут теже самые знаки вопроса, если редактор (который есть у меня) не умеет с этой кодировкой работать.

P.S.> Скопированный твой текст хорошо выставился (действительно Блокнот сработал). Спасибо.
Вот бы еще и комментарии в скрипте перевести, может быть понятней стало бы как он работает ;-)

 
Murphy User

2 scorpio_x73: If you don't see building data, you must go to your Ikariam account settings and there you must change display options for drop down menu (with towns' names) to see towns' coordinates. Then you must click on "Show all settings" and then "Reset all data" (or reinstall whole script with deletion of user data) - it solve your population problem as well ;–)

 
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",
};

 
scorpio_x73 User

Great script but after version v.0.2.6 it doesnt show the remaining time for contruction buildings

Edit: in general the population numbers are wrong,,, seems broken to me atm.

Greek server

 
SocratesF User

Great script. Keep up the good work. I have made a translation in Greek language.

} else if (language == "gr") { //Greek translation by SocratesF
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": "Εμφάνιση ρυθμίσεων",
};

 
LiFeAiR1 User

этот скрипт не обновляет информацию о войсках((

this script don't update information about military units((

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