Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
Thanks but (http://userscripts.org/scripts/show/10835) resolved the problem. |
|
|
It doesnt work with battle analyse :( (http://userscripts.org/scripts/show/10835)
Lucro 100% -------------HERE------------------- Profit in %
|
|
|
Thank you! This is what i needed :) Now i can finally thrash Travian beyond! |
|
|
if you use some other scripts (like Battle Analyse) that put images int the row of units, then you should replace the getBags() function with this code:
function getBags() {
ret = new Array(11);
unitline_images = find("//table/tbody/tr[4]/td/table[1]/tbody/tr[2]/td/img/@src", XPOList);
var len = unitline_images.snapshotLength-1;
for (j=0, i=0; i<=len; i++){
img_url = unitline_images.snapshotItem(i).nodeValue;
if (img_url.substr(0, 9) == "img/un/u/") {
ret[j++] =t[img_url.substring(img_url.lastIndexOf("/")+1, img_url.length-4)];
}
}
return ret;
}
|
|
|
To make this work with the Battle Analyse script, please update line #56 to:
|
|
|
Whatever you decide I'll support you.
|
|
|
Hi, nice script, but it's a pity that it only works in english. I editted the script so it's multilanguage, and I re-engineered most of the code so its far cleaner. Later I found out about ondy1985's attempt to make it multilanguage, which is basically the same as I did, but he forgot one thing: the code is still searching for the 'Prisoners' string, which still makes it english-only. Meals, what do you think is the best way to distribute my version?
|
|
|
You're welcome. The script is really useful, thank you for that. |
|
|
Wonderful. Thank you! I've been swamped lately and didn't have time to look into it :/ |
|
|
I modified Meals' code to work with unit icons rather than unit names, which should make the script usable in all languages. |
|
|
Dutch, I play on the Speed server from Holland.
But I saw other battle reports witch a second number. But I don't understand what the second number means, (it is not the total bounty your army can hold, and it is not the total bounty you missed. ) can you explain me what the function of the second number is. Greats, Boal |
|
|
What language is your Travian account ? |
|
|
I See a Zero after the total sum. The zero needs to be the total amount you can hold with your army so something is wrong. 1500/0
1086/0
//Boal |