/ ‘grepolis.user.js’

This commit is contained in:
2014-06-14 22:20:55 +02:00
parent d7681616e8
commit 294e97a271

View File

@ -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;
}