diff --git a/grepolis.user.js b/grepolis.user.js index 20fe945..d8232ec 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -10,7 +10,7 @@ // // @match http://*.grepolis.com/game/* // -// @version 1.0.57 +// @version 1.0.58 // @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js // ==/UserScript== @@ -23,7 +23,7 @@ farm_ids = [20466, 20472, 20471]; farm_ids.forEach(function(xFarmId) { console.log("Setting timer to 5s for Farm " + xFarmId); - setTimeout(getWaresTick(xFarmId), 5000); + setTimeout(getWaresTick(xFarmId), 5000 + rand(5)); }); var logWindow = new GPWindow(-1, null); @@ -83,7 +83,7 @@ var wnd = GPWindowMgr.getWindowById(windowId); if(wnd == undefined){ windows[xFarmId] = undefined; - timeout = 50; + timeout = rand(20); return; } @@ -94,7 +94,7 @@ wnd.close(); } catch(e) { } - timeout = 50; + timeout = rand(20); return; }