/ ‘grepolis.user.js’
This commit is contained in:
parent
47785a1178
commit
d7922c724b
@ -10,7 +10,7 @@
|
||||
//
|
||||
// @match http://*.grepolis.com/game/*
|
||||
//
|
||||
// @version 1.0.41
|
||||
// @version 1.0.42
|
||||
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
||||
// ==/UserScript==
|
||||
|
||||
@ -48,10 +48,6 @@
|
||||
return function() {
|
||||
var timeout = 60000;
|
||||
try {
|
||||
var d = new Date();
|
||||
var dformat = "[" + [d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds()].join(':') + "]";
|
||||
$('.town_name').text(dformat);
|
||||
|
||||
var amounts = $.map($(".indicator .amount"),function(v){return $(v).text()}).join(", ");
|
||||
if(amounts != lastAmounts) {
|
||||
console.log(amounts);
|
||||
@ -96,7 +92,6 @@
|
||||
var minutes = ts.substring(2,4);
|
||||
var seconds = minutes * 60 + ts.substring(5,7) * 1;
|
||||
|
||||
$('.town_name').text(dformat + " +" + ts);
|
||||
console.log("Farm " + xFarmId + " not ready, trying again in " + ts);
|
||||
wnd.close();
|
||||
|
||||
@ -112,13 +107,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
function getWaresFromFarm(xGetWaresButton, xMood, xFarmId) {
|
||||
function getWaresFromFarm(xButton, xMood, xFarmId) {
|
||||
if(xMood - 6 > 80) {
|
||||
console.log("Plündere " + xFarmId + " @ Mood: " + xMood);
|
||||
w(xGetWaresButton).call('claimLoad', xFarmId.toString(), 'double', 300);
|
||||
w(xButton).call('claimLoad', xFarmId.toString(), 'double', 300);
|
||||
} else {
|
||||
console.log("Fordere " + xFarmId + " @ Mood: " + xMood);
|
||||
w(xGetWaresButton).call('claimLoad', xFarmId.toString(), 'normal', 300);
|
||||
w(xButton).call('claimLoad', xFarmId.toString(), 'normal', 300);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user