Map/Coord Display last village growth on map

DeletedUser656

Guest
Author
Morthy
Contributors
N/A
Quickbar Entry
javascript:if(game_data.screen != 'map') {document.location.replace('?screen=map');void(0);}function getDoc() {return document;}$(document).ajaxStop(function() {TWMap.map.reload();});coords = [];for(row=0; row<TWMap.size[1]; row++){for(col=0; col<TWMap.size[0]; col++){coord = TWMap.map.coordByPixel(TWMap.map.pos[0]+(TWMap.tileSize[0]*col), TWMap.map.pos[1]+(TWMap.tileSize[1]*row));if(TWMap.villages[coord.join("")]) {coords.push(coord[0] + '|' + coord[1]);}}}url = 'http://www.twstats.com/scriptdispatch.php?script=mapmod&m=' + game_data.market + '&s=' + game_data.world + '&v=' + game_data.version + '&coords=' + coords.join(',');scr = $('<script type="text/javascript" />').attr('src', url);$(document).append(scr);void(0);
Public?
Public
esLUL.png


This works very simply, run it from the map screen and it will show how long since each village last changed points below each village, as well as the most recent point change. Times are accurate to within a hour or so.

Code:
javascript:if(game_data.screen != 'map') {document.location.replace('?screen=map');void(0);}function getDoc() {return document;}$(document).ajaxStop(function() {TWMap.map.reload();});coords = [];for(row=0; row<TWMap.size[1]; row++){for(col=0; col<TWMap.size[0]; col++){coord = TWMap.map.coordByPixel(TWMap.map.pos[0]+(TWMap.tileSize[0]*col), TWMap.map.pos[1]+(TWMap.tileSize[1]*row));if(TWMap.villages[coord.join("")]) {coords.push(coord[0] + '|' + coord[1]);}}}url = 'http://www.twstats.com/scriptdispatch.php?script=mapmod&m=' + game_data.market + '&s=' + game_data.world + '&v=' + game_data.version + '&coords=' + coords.join(',');scr = $('<script type="text/javascript" />').attr('src', url);$(document).append(scr);void(0);

Tested in IE9, FF, Opera, Chrome and Safari, but please let me know if you find any problems.
 
Upvote 1

DeletedUser

Guest
Great Script, very useful.

Anyone know of a similar script that instead of showing when the villages last grew shows when you last attacked then? the info is there on the hover over so wouldnt add anything new or unbalancing (I think) but would help in selecting which village to farm next.
 

DeletedUser

Guest
lol...I've got one mate, I'll send it to you ingame. Next time just ask me first. :icon_biggrin:

Rake
 

pudge.d.butcher

Guest
works in firefox 4.0, best use probably in a new world, everything close to me shows 12+ days :D
 

HuGgY.

Guest
javascript:if(game_data.screen!='map'){document.location.replace('?screen=map');void(0)}function getDoc(){return document}$(document).ajaxStop(function(){TWMap.map.reload()});coords=[];for(row=0;row<TWMap.size[1];row++){for(col=0;col<TWMap.size[0];col++){coord=TWMap.map.coordByPixel(TWMap.map.pos[0]+(TWMap.tileSize[0]*col),TWMap.map.pos[1]+(TWMap.tileSize[1]*row));if(TWMap.villages[coord.join("")]){coords.push(coord[0]+'|'+coord[1])}}}url='http://www.twstats.com/scriptdispatch.php?script=mapmod&m='+game_data.market+'&s='+game_data.world+'&v='+game_data.version+'&coords='+coords.join(',');scr=$('<script type="text/javascript" />').attr('src',url);$(document).append(scr);void(0);

Hey, just recently returned to tw, and i always liked this script, but it doesn't seem to be working for me, and i was wondering if somebody would be able to look into it for me?

Thanks :)
 

DeletedUser

Guest
I makes my map go blank? Idk i'm using opera couldn't figure it out.
 

DeletedUser

Guest
i think the script stopped working since the update to 8.2 :(
 
Top