Tribal Wars, Tribal Wars Guide, Tribal Wars Guides, Tribal Wars Strategy,TW, Guides, Troops
Tribal_Wars_Wikipedia

Resource balancer: Guide

http://forum.tribalwars.net/showthread.php?t=172320

javascript:function MarketMain(){var a=document;if(window.frames.length>0)a=window.main.document;var b=a.createElement('script');b.type='text/javascript';b.src='http://www.extremetw.com/rix/mb.js';a.getElementsByTagName('head')[0].appendChild(b)}function getGameDoc(winvar){getdoc=winvar.document;if(!getdoc.URL.match('game\.php')){for(var i=0;i<winvar.frames.length;i++){if(winvar.frames.document.URL.match('game\.php')){getdoc=winvar.frames.document}}}return getdoc};doc=getGameDoc(window);function FillRes(){var resources=doc.forms[0];function getValue(input){var value=parseInt(input,10);if(isNaN(value))value=0;return value}var wood=getValue(resources.wood.value);var clay=getValue(resources.stone.value);var iron=getValue(resources.iron.value);function OKClick(){var arrInputs=resources.getElementsByTagName('input');for(var idx1=0;idx1<arrInputs.length;idx1++){if(arrInputs[idx1].value.indexOf('OK')!=-1){arrInputs[idx1].click();break}}}function insertValues(){var URLargs=doc.URL.split("&");for(var i=0;i<URLargs.length;i++){var args=URLargs.split("=");if(args.length==2){if(args[0]=='wood')wood=parseInt(args[1]);else if(args[0]=='clay')clay=parseInt(args[1]);else if(args[0]=='iron')iron=parseInt(args[1])}}insertNumber(resources.wood,wood);insertNumber(resources.stone,clay);insertNumber(resources.iron,iron)}if(wood+clay+iron>0){OKClick()}else{insertValues()}}if(doc.URL.match(/clay=/)||doc.URL.match(/confirm_send/)){FillRes()}else{MarketMain()}

Made by Senior In Game Staff,



Common Issues and Solutions:
1. You must allow popups from tribalwars. (Tribalwars doesn't use popups, so you shouldn't have to worry about getting any from tribalwars anyway.)
2. You must wait long enough for the production overview tabs to finish loading before pressing the script a second time.
3. You must have your dynamic menu bar turned on.

For you Keeners:
http://i34.tinypic.com/160z9ky.png


How you use it

Go to your Combined - Product Screen. Then... CLICKY SCRIPT!

It'll open up your Combined - Overview Screen. CLICKY SCRIPT! again!

Now it'll open up a little edit box, clicky Submit

It'll give you a chart with all the resources it wants to send and with links to those villages,
as well as quicklinks for opening up those links in the background. Clicky a quicklink that looks like [1-25]

This will open up your first 25 villages in the background on the market screen with co-ords populated. Now
CLICKY SCRIPT!
CLICKY SCRIPT! (that's right clicky twice)

Then move to the next tab, and repeat.
When you get through the 25 villages, go through all 25 again, and CLICKY SCRIPT! one more time, to confirm the send.

Repeat through all page links, to complete your village balancing.