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

[Scripts] The must-have quickbar

-->Using & editing scripts<--

Quote this post to get the unbroken scripts. Code tags mess up the thread, so I will avoid using them.

HQ
{graphic}/buildings/main.png
{game}&screen=main

Recruit
{graphic}/unit/unit_sword.png
{game}&screen=train

Trade
{graphic}/buildings/market.png
{game}&screen=market&mode=own_offer

Acad
{graphic}/buildings/snob.png
{game}&screen=snob

Rally
{graphic}/buildings/place.png
{game}&screen=place

Troops
{graphic}/command/back.png
{game}&screen=place&mode=units

Mint
{graphic}/gold.png
{game}&screen=snob&mode=coin

Resv
{graphic}/gold.png
javascript:var Reserve=[56000,60000,50000];function setText(A,B){var C=document.createTextNode(B);A.removeChild(A.firstChild);A.appendChild(C);}function GetTable(){var A=doc.forms['villages'];return A.getElementsByTagName("table")[0];}function GetRes(A){var B=A.cells[1].textContent.split(" ");var C=[0,0,0];C[0]=parseInt(B[0].replace(".",""),10);C[1]=parseInt(B[1].replace(".",""),10);C[2]=parseInt(B[2].replace(".",""),10);return C;}var doc=document;if(window.frames.length>0){doc=parent.main.document;}if(doc.URL.match('screen=snob')&&doc.URL.match('mode=coin')){var tab=GetTable();if(tab!==null){var totalCoins=0;for(var i=2;i<tab.rows.length;i++){sel=tab.rows.getElementsByTagName("select")[0];if(sel!=null){res=GetRes(tab.rows);var coins=[0,0,0];coins[0]=Math.floor((res[0]-Reserve[0])/28000);coins[1]=Math.floor((res[1]-Reserve[1])/30000);coins[2]=Math.floor((res[2]-Reserve[2])/25000);maxCoins=Math.min(coins[0],Math.min(coins[1],coins[2]));if(maxCoins>0&&sel!==null){sel.value=maxCoins;totalCoins+=maxCoins;}}}setText(doc.getElementById('selectedBunches_top'),totalCoins);setText(doc.getElementById('selectedBunches_bottom'),totalCoins);}}

Forum
{graphic}/ally_forum.png
{game}&screen=ally&mode=forum

Walls
{graphic}/buildings/wall.png
{game}/&screen=overview_villages&mode=buildings&order=wall&dir=asc

Fake
{graphic}/unit/unit_ram.png
javascript:coords='111|111 222|222 333|333';var%20doc=document;if(window.frames.length>0)doc=window.main.document;url=document.URL;if(url.indexOf('screen=place')==-1)alert('This%20script%20needs%20to%20be%20run%20from%20the%20rally%20point');coords=coords.split("%20");index=Math.round(Math.random()*(coords.length-1));coords=coords[index];coords=coords.split("|");doc.forms[0].x.value=coords[0];doc.forms[0].y.value=coords[1];insertUnit(doc.forms[0].ram,1);insertUnit(doc.forms[0].spy,1);end();

Mass Withdraw
{graphic}/unit/def_cav.png
{game}&screen=overview_villages&mode=units&units_type=away_detail

Farm Finder
http://img29.imageshack.us/img29/6880/penguinh.png
http://spole.pbf.hr/tw/farm_finder/

Farm
http://en37.tribalwars.net/graphic/unit/unit_light.png
javascript:coords='111|111 222|222 333|333';var%20doc=document;if(window.frames.length>0)doc=window.main.document;url=document.URL;if(url.indexOf('screen=place')==-1)alert('This%20script%20needs%20to%20be%20run%20from%20the%20rally%20point');coords=coords.split("%20");index=Math.round(Math.random()*(coords.length-1));coords=coords[index];coords=coords.split("|");doc.forms[0].x.value=coords[0];doc.forms[0].y.value=coords[1];insertUnit(doc.forms[0].spy,1);insertUnit(doc.forms[0].light,50);end();

Distance Calc
http://www.uniproperty.co.za/themes/Default/images/icons/16x16/calculator.png
javascript:%20var%20url='http://www.tribalwarsmap.com/traveltimes2';%20if%20(location.hostname.split('.')[1]=='tribalwars')%20{url+='?world=';var%20world%20=%20location.hostname.split('.')[0];%20if%20(world=='classic')%20{url+='c1';}%20else%20{url+=world.substring(2);};%20var%20query='';%20if%20(window.main)%20{query%20=%20window.main.location.search.substring(1).split('&');}%20else%20{query%20=%20window.location.search.substring(1).split('&');};%20var%20village=false;%20var%20dest=false;%20for(i=0;i<query.length;i++)%20{query=query.split('=');%20if%20(query[0]=='village')%20{url+='&start='+query[1];}%20else%20if%20(query[0]=='screen'&&query[1]=='info_village')%20{village=true;}%20else%20if%20(query[0]=='id')%20{dest='&destination='+query[1];}};%20if%20(village&&dest)%20{url+=dest;}}void%20window.open(url);