From bc0b3bb9cefa5caf10185f60c9e9acde49d37f33 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Thu, 7 Aug 2014 21:56:03 +0200 Subject: [PATCH] =?UTF-8?q?/=20=E2=80=98grepolis.user.js=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grepolis.user.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/grepolis.user.js b/grepolis.user.js index e8e83c3..698e24d 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -10,7 +10,7 @@ // // @match http://*.grepolis.com/game/* // -// @version 1.1.48 +// @version 1.1.49 // @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js // ==/UserScript== @@ -98,7 +98,7 @@ }); $(town_countdown).append('
'); } - }, townCount * 5000); + }, townCount * 3000); $("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("" + GM_info.script.version); var choose = $("#choosefarmduration")[0]; @@ -108,22 +108,22 @@ }, 15000); function getFarmsFor(xTownId, xTownCount) { - setTimeout(function() { - console.log("get farms for town " + xTownId); - HelperTown.townSwitch(xTownId); - setTimeout(function() { + setTimeout( + function() { + console.log(xTownCount + ") get farms for town " + xTownId); + HelperTown.townSwitch(xTownId); HelperTown.handleInfoWindowJumpToTownClick(); - setTimeout(function() { - console.log("getting farms for town " + xTownId); - var farmtowns = $(".farmtown_owned_on_same_island"); - $.each(farmtowns, function(f, farmtown) { - var farmtownId = farmtown["id"].split("_")[2]; - console.log("got farm " + farmtownId + " for town " + xTownId); - farm_ids[xTownId].push(+farmtownId); - }); - }, 1800); - }, 1800); - }, xTownCount*4000); + setTimeout( + function() { + console.log("getting farms for town " + xTownId); + var farmtowns = $(".farmtown_owned_on_same_island"); + $.each(farmtowns, function(f, farmtown) { + var farmtownId = farmtown["id"].split("_")[2]; + console.log("got farm " + farmtownId + " for town " + xTownId); + farm_ids[xTownId].push(+farmtownId); + }); + }, 1800); + }, xTownCount*2200); } function log(xText) {