/ ‘grepolis.user.js’
This commit is contained in:
parent
ca43de1824
commit
c03b1da942
@ -10,7 +10,7 @@
|
|||||||
//
|
//
|
||||||
// @match http://*.grepolis.com/game/*
|
// @match http://*.grepolis.com/game/*
|
||||||
//
|
//
|
||||||
// @version 1.1.58
|
// @version 1.1.59
|
||||||
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
@ -113,19 +113,20 @@
|
|||||||
function() {
|
function() {
|
||||||
console.log(xTownCount + ") get farms for town " + xTownId);
|
console.log(xTownCount + ") get farms for town " + xTownId);
|
||||||
HelperTown.townSwitch(xTownId);
|
HelperTown.townSwitch(xTownId);
|
||||||
//HelperTown.handleInfoWindowJumpToTownClick();
|
|
||||||
var town = ITowns.getTown(xTownId);
|
var town = ITowns.getTown(xTownId);
|
||||||
WMap.mapJump({id:xTownId, ix:town.getIslandCoordinateX(), iy:town.getIslandCoordinateY()});
|
HelperTown.handleInfoWindowJumpToTownClick(
|
||||||
setTimeout(
|
{x:town.getIslandCoordinateX(), y:town.getIslandCoordinateY()}, id:xTownId},
|
||||||
|
null,
|
||||||
function() {
|
function() {
|
||||||
// console.log("getting farms for town " + xTownId);
|
WMap.mapTiles.focusTown(6417);
|
||||||
// var farmtowns = $(".farmtown_owned_on_same_island");
|
console.log("getting farms for town " + xTownId);
|
||||||
// $.each(farmtowns, function(f, farmtown) {
|
var farmtowns = $(".farmtown_owned_on_same_island");
|
||||||
// var farmtownId = farmtown["id"].split("_")[2];
|
$.each(farmtowns, function(f, farmtown) {
|
||||||
// console.log("got farm " + farmtownId + " for town " + xTownId);
|
var farmtownId = farmtown["id"].split("_")[2];
|
||||||
// farm_ids[xTownId].push(+farmtownId);
|
console.log("got farm " + farmtownId + " for town " + xTownId);
|
||||||
// });
|
farm_ids[xTownId].push(+farmtownId);
|
||||||
}, 2000);
|
});
|
||||||
|
});
|
||||||
}, xTownCount*5000);
|
}, xTownCount*5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user