Comments by savant on scripts

4 comments

Comment on:
Travian3 Beyond - all language

May 17, 2008

In the previous post, i had a little bug. updated version

http://pastecode.com/?show=f3842bba5

Comment on:
Travian3 Beyond - all language

May 16, 2008

One of the features that broke after the server change is the cool table of all villages in the 7x7 map. as someone noted below all the map information is stored in a javascript variable. There is a way to access the information but it is considered unsafe.

Here is the updated preCalculate3 method. People who want to test it will need to replace the existing function.

http://pastecode.com/?show=f5a50dea8

Now when you click on the buttons, it no longer updates it. Since they have changed the ajax calls as well, we just make it think we can't do ajax.

Here is the updated version of desplazarMapa method.
http://pastecode.com/?show=f45bab641

Just update the two methods and you'll get the table back.

I'll let you guys test it, have fun.

savant

Comment on:
Travian3 Beyond - all language

Apr 30, 2008

One more thing.

To work on all build.php you need to have one more line. It should look like this.

function calculateBuildTime(){
// Las celdas son los enlaces susceptibles de ser sustituidos por la nueva informacion
var celdas = find("//span[@class='c']", XPList);
// Las tablas son por cada uno de los edificios ampliables que se han detectado en la pagina
var tablas = find("//div[@id='lmid2']/div/table[@class='f10' and not(@width)]", XPList);
if (tablas.snapshotLength==0)
tablas = find("//div[@id='lmid2']/table[@class='f10' and not(@width)]", XPList);
if (tablas.snapshotLength==0)
tablas = find("//div[@id='lmid2']/form/table[@class='f10' and not(@width)]", XPList);
var k = celdas.snapshotLength - 1;

Comment on:
Travian3 Beyond - all language

Apr 20, 2008

To fix the Build times on each resource field

change line 3473

from:
var tablas = find("//div[@id='lmid2']/table[@class='f10' and not(@width)]", XPList);

to:
var tablas = find("//div[@id='lmid2']/div/table[@class='f10' and not(@width)]", XPList);

They added an extra div around the table. Hope it helps.