/ ‘grepolis.user.js’

This commit is contained in:
Jan Bader 2014-08-07 21:52:17 +02:00
parent 427f2ef900
commit e0a8a2c1fb

View File

@ -98,7 +98,7 @@
}); });
$(town_countdown).append('<br />'); $(town_countdown).append('<br />');
} }
}, townCount * 3000); }, townCount * 5000);
$("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("<select id=choosefarmduration><option value=-1>disable</option><option value=300 selected>5min</option><option value=600>10min</option><option value=1200>20min</option><option value=2400>40min</option><option value=5400>90min</option><option value=10800>3h</option><option value=14400>4h</option><option value=28800>8h</option></select>" + GM_info.script.version); $("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("<select id=choosefarmduration><option value=-1>disable</option><option value=300 selected>5min</option><option value=600>10min</option><option value=1200>20min</option><option value=2400>40min</option><option value=5400>90min</option><option value=10800>3h</option><option value=14400>4h</option><option value=28800>8h</option></select>" + GM_info.script.version);
var choose = $("#choosefarmduration")[0]; var choose = $("#choosefarmduration")[0];
@ -111,17 +111,19 @@
setTimeout(function() { setTimeout(function() {
console.log("get farms for town " + xTownId); console.log("get farms for town " + xTownId);
HelperTown.townSwitch(xTownId); HelperTown.townSwitch(xTownId);
HelperTown.handleInfoWindowJumpToTownClick();
setTimeout(function() { setTimeout(function() {
console.log("getting farms for town " + xTownId); HelperTown.handleInfoWindowJumpToTownClick();
var farmtowns = $(".farmtown_owned_on_same_island"); setTimeout(function() {
$.each(farmtowns, function(f, farmtown) { console.log("getting farms for town " + xTownId);
var farmtownId = farmtown["id"].split("_")[2]; var farmtowns = $(".farmtown_owned_on_same_island");
console.log("got farm " + farmtownId + " for town " + xTownId); $.each(farmtowns, function(f, farmtown) {
farm_ids[xTownId].push(+farmtownId); var farmtownId = farmtown["id"].split("_")[2];
}); console.log("got farm " + farmtownId + " for town " + xTownId);
farm_ids[xTownId].push(+farmtownId);
});
}, 1800);
}, 1800); }, 1800);
}, xTownCount*2200); }, xTownCount*4000);
} }
function log(xText) { function log(xText) {