// ==UserScript== // @name TW OD bij simulator // @namespace http://home.deds.nl/~lekensteyn/p/ // @description Weergeeft de Verslagen tegenstanderspunten bij de simulator // @include http://nl*.tribalwars.nl/game.php*screen=place&mode=sim // ==/UserScript== /** * TW OD bij simulator (c) 2009 Lekensteyn * Support: www.tribetool.nl * Created: 11062009-1 * Version: 11062009-1 * Please retain this original copyright. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. */ const unit_points = { /* OD*, oda, odd for killing old, def, att */ 'spear': [ 1, 4, 1], 'sword': [ 1, 5, 2], 'axe': [ 1, 1, 4], 'archer': [ 1, 5, 2], 'spy': [ 2, 1, 2], 'light': [ 4, 5, 13], 'marcher': [ 5, 6, 12], 'heavy': [ 6, 23, 15], 'ram': [ 5, 4, 8], 'catapult': [ 8, 12, 10], 'knight': [ 10, 40, 20], 'snob': [100, 200, 200] }; var odai = 0; if(document.URL.match(/nl(\d+)/)[1] >= 6){ odai = 1; } var oddi = odai ? 2 : 0; var t=document.getElementsByTagName('th'); if(t && t.length && t[0].firstChild && (t=t[0].offsetParent)){ var ar = []; for(var i=1; i