I made a guide! Feedback please :).

DeletedUser

Guest
Okay, So after about 5 people constantly nagging me for 3 months now, after I promised I'd make one, Here it is! :icon_cool: Its the Dom Quickbar/Premium features/scripts/etc etc guide :icon_biggrin:.

Okay, Firstly, This is the first guide I've ever completed and not burnt to a shrivel because I didn't like it, so what I want most, Is completly honest feedback, If its crap, Tell me its crap, I want to know these things :icon_biggrin:. Also, Wasn't sure where this actually needs posting, So Blurk, MF, World 20 mod, If anyone knows where it actually goes, Please, Feel free to move it for little old me :icon_redface:, This has been posted to W6/W20 because I play W6 and know ya'll better, but I made the guide for a friend on W20, so I'll post it there as well to get it tested if anyone wants too :icon_razz:.

So enough chit-chat, Here it is (Hoping it posts):



------------------------------------------------------------------------------------------
Okay, Brief Quickbar and script thingy for ya'll, Be grateful or kevvie will whip you :p.

Firstly, Delete your quickbar, Go on, Delete everything on the quickbar so you've got a clear slate.

First tab -

Forums W20 -
Link: http://forum.tribalwars.net/forumdisplay.php?f=139
Image: http://forum.tribalwars.net/images/icons/icon1.gif
Open in a new tab: Yes.

2nd Tab -

HeadQuarters - Shortened to HQ.
Link: {game}&screen=main
Image: {graphic}/buildings/main.png
Open in a new tab: No.

3rd Tab -

Rally Point- Shorterned to Rally.
Link: {graphic}/buildings/place.png
Image: {game}&screen=place
Open in a new tab: No

4th Tab -

Recruit
Link: {game}&screen=train
Image: http://en6.tribalwars.net/graphic/unit/unit_axe.png
Open in new tab: No

5th Tab -

Coins
Link: {game}&screen=snob&mode=coin
Image: {graphic}/gold.png
Open in new tab: No

6th Tab -

Dodge - This works by using a report stored in the archive folder, If you attack yourself with 100 swords or something light, Save it in the archive folder, Retrieve the report number (Usually right at the end), and stick it where the xxxxxxx is and every time you press it, You'll move whatever troops are in the village out on an attack to the village you attacked before, Which you obviously cancel after the attack on your village has passed, A quick and easy snipe/dodge trick.
Link: {game}game.php?village=$2&screen=place&try=confirm&type=all&report_id=xxxxxxx
Image: http://i30.tinypic.com/1zyg0us.png
Open in new tab: No

7th Tab -
Simulator
Link: {game}&screen=place&mode=sim
Image: http://i30.tinypic.com/2zjgze9.png
Open in new tab: No/Yes, Your choice.

8th Tab -

Link to TWstats W20.
Link: http://www.twstats.com/en20/index.php
Image: http://www.nitrosecurity.com/images/information_icon.gif
Open in new tab: Yes.

9th Tab -

Link to your profile on Twstats.
Link: Easiest way to get this is to twstat yourself and copy and paste the address bar into the link bit, Provides a very easy and quick link to yourself.
Image: http://www.nitrosecurity.com/images/information_icon.gif
Open in new tab: Yes.

10th Tab -

Nobles - This tool finds any village with a noble it in, and selects it so only those villages show up on the overview temporarily, A good tool for locating nobles. (NOTE - You MUST be on the overview with ALL selected for this to work properly)

Link:
javascript:ag_index = 12;var doc;if(top.frames.length > 1){doc = (top.frames[1].document.URL.match('game.php') =='game.php') ? top.frames[1].document : top.frames[0].document;}else{doc = document;}{var main = doc.getElementsByTagName('table');for(var a = 0; a < main.length; a++){if(main[a].className == 'main'){var par = main[a].getElementsByTagName('table');for(var i = 0; i < par.length; i++){if(par.className = 'vis'){rows = par.getElementsByTagName('tr');for(var j = 0; j < rows.length; j++){if(rows[j].className == 'nowrap row_a' || rows[j].className == 'nowrap row_b'){var cells = rows[j].getElementsByTagName('td');vill_name = cells[0].getElementsByTagName('a')[0].firstChild.nodeValue;vill_ags = 0;if(cells[ag_index+6].getElementsByTagName('a').length == 0) {vill_ags = parseInt(cells[ag_index+6].firstChild.nodeValue);}else {vill_ags = parseInt(cells[ag_index+6].firstChild.firstChild.nodeValue);}if(vill_ags == 0) {rows[j].parentNode.removeChild(rows[j]);j -= 1;}}}}}}}alert('Nobles Filtered!');}

Image: http://www.nitrosecurity.com/images/information_icon.gif
Open in new tab: No.

» Add line break


1st Tab, Second Line. -

Offence - Your Basic Offensive build script. (NOTE - You MUST be on the recruitment page for this to work.)

Link/Script -
javascript:var%20configuration=[0,0,5500,0,30,2300,650,0,400,5];var%20archers=true;var%20units;var%20unitsNET;var%20costs;function%20arrayMin(array){var%20value=array[0];for%20(var%20t=1;t<array.length;t++){if%20(array[t]<value){value=array[t];}}return%20value;}function%20linearDivideArray(array1,%20array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){if%20(array2[t]!=0){value[t]=array1[t]*1.0/array2[t];}else{value[t]=0;}}}return%20value;}function%20linearAddArray(array1,array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){value[t]=array1[t]+array2[t];}}%20return%20value;}function%20getUnitId(unit){for%20(var%20t=0;t<units.length;t++){if%20(unit%20==%20unitsNET[t]){return%20t;}}return%20-1;}function%20getTagsSubset(tagname,classname){var%20subset_t=document.getElementsByTagName(tagname);var%20subset_c=[];var%20u=0;for%20(var%20t=0;t<subset_t.length;t++){if%20(subset_t[t].className==classname){subset_c[u++]=subset_t[t];}}return%20subset_c;}function%20getTable(){var%20candidates=getTagsSubset('table',%20'vis');%20var%20t;%20for%20(t=0;t<candidates.length;t++){try%20{if%20(candidates[t].rows[0].cells[0].innerHTML=='Village'){break;}}catch%20(e){}}return%20candidates[t];}function%20getQueue(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].childNodes[1].firstChild.title,10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20getResources(record){var%20value=[0,0,0,0];var%20res=record.cells[1].textContent.split("\n");var%20farm=record.cells[2].innerHTML.split('/');value[0]=parseInt(res[1].replace(".",""),10);value[1]=parseInt(res[2].replace(".",""),10);value[2]=parseInt(res[3].replace(".",""),10);value[3]=farm[1]-farm[0];return%20value;}function%20getProduced(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].textContent.split("\n")[2],10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20submitForm(){var%20candidates=document.getElementsByTagName("input");var%20t;for%20(t=0;t<candidates.length;t++){if%20(candidates[t].type=="submit"){break;}}candidates[t].click();}if%20(document.URL.match('screen=train')&&document.URL.match('mode=mass')){var%20records=getTable().rows;if%20(archers){units=['spear','sword','axe','archer','spy','light','marcher','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Archer','Scout','Light%20Cavalry','Mounted%20Archer',%20'Heavy%20Cavalry','Ram','Catapult'];costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],%20[300,200,200,5],[320,400,100,8]];}else{units=['spear','sword','axe','spy','light','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Scout','Light%20Cavalry','Heavy%20Cavalry','Ram','Catapult'];%20costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]];}for%20(r=1;r<records.length;r++){var%20subconf=[];var%20total_costs=[0,0,0,0];var%20i;var%20resources=getResources(records[r]);var%20queue=getQueue(records[r]);var%20produced=getProduced(records[r]);for%20(i=0;i<units.length;i++){subconf=configuration-(queue+produced);if%20(subconf<0){subconf=0;}for%20(var%20j=0;j<4;j++){total_costs[j]+=costs[j]*subconf;}};var%20factor=arrayMin(linearDivideArray(resources,total_costs));if%20(factor>1.0){factor=1.0;}for%20(i=0;i<units.length;i++){var%20number=subconf*factor;if%20(number<0){number=0;}if%20(records[r].cells[3%20+%20i].childNodes[3]){var%20ibox=records[r].cells[3%20+%20i].childNodes[3];try{ibox.defaultValue=parseInt(number,10);}catch%20(e){}}}}stop();}else{alert('Script%20only%20works%20on%20the%20mass%20recruitment%20page');}


EDIT - [0,0,5500,0,30,2300,650,0,400,5] With your own nuke build.

Image- http://img357.imageshack.us/img357/4461/attzo7.png
Open in new tab: No.

2nd Tab, Second Line. -

Wall Busters - Specialised Nuke build (If you have one) (NOTE - You MUST be on the recruitment page for this to work.)

Link/Script -
javascript:var%20configuration=[0,0,4500,0,30,2000,450,0,1000,5];var%20archers=true;var%20units;var%20unitsNET;var%20costs;function%20arrayMin(array){var%20value=array[0];for%20(var%20t=1;t<array.length;t++){if%20(array[t]<value){value=array[t];}}return%20value;}function%20linearDivideArray(array1,%20array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){if%20(array2[t]!=0){value[t]=array1[t]*1.0/array2[t];}else{value[t]=0;}}}return%20value;}function%20linearAddArray(array1,array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){value[t]=array1[t]+array2[t];}}%20return%20value;}function%20getUnitId(unit){for%20(var%20t=0;t<units.length;t++){if%20(unit%20==%20unitsNET[t]){return%20t;}}return%20-1;}function%20getTagsSubset(tagname,classname){var%20subset_t=document.getElementsByTagName(tagname);var%20subset_c=[];var%20u=0;for%20(var%20t=0;t<subset_t.length;t++){if%20(subset_t[t].className==classname){subset_c[u++]=subset_t[t];}}return%20subset_c;}function%20getTable(){var%20candidates=getTagsSubset('table',%20'vis');%20var%20t;%20for%20(t=0;t<candidates.length;t++){try%20{if%20(candidates[t].rows[0].cells[0].innerHTML=='Village'){break;}}catch%20(e){}}return%20candidates[t];}function%20getQueue(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].childNodes[1].firstChild.title,10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20getResources(record){var%20value=[0,0,0,0];var%20res=record.cells[1].textContent.split("\n");var%20farm=record.cells[2].innerHTML.split('/');value[0]=parseInt(res[1].replace(".",""),10);value[1]=parseInt(res[2].replace(".",""),10);value[2]=parseInt(res[3].replace(".",""),10);value[3]=farm[1]-farm[0];return%20value;}function%20getProduced(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].textContent.split("\n")[2],10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20submitForm(){var%20candidates=document.getElementsByTagName("input");var%20t;for%20(t=0;t<candidates.length;t++){if%20(candidates[t].type=="submit"){break;}}candidates[t].click();}if%20(document.URL.match('screen=train')&&document.URL.match('mode=mass')){var%20records=getTable().rows;if%20(archers){units=['spear','sword','axe','archer','spy','light','marcher','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Archer','Scout','Light%20Cavalry','Mounted%20Archer',%20'Heavy%20Cavalry','Ram','Catapult'];costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],%20[300,200,200,5],[320,400,100,8]];}else{units=['spear','sword','axe','spy','light','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Scout','Light%20Cavalry','Heavy%20Cavalry','Ram','Catapult'];%20costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]];}for%20(r=1;r<records.length;r++){var%20subconf=[];var%20total_costs=[0,0,0,0];var%20i;var%20resources=getResources(records[r]);var%20queue=getQueue(records[r]);var%20produced=getProduced(records[r]);for%20(i=0;i<units.length;i++){subconf=configuration-(queue+produced);if%20(subconf<0){subconf=0;}for%20(var%20j=0;j<4;j++){total_costs[j]+=costs[j]*subconf;}};var%20factor=arrayMin(linearDivideArray(resources,total_costs));if%20(factor>1.0){factor=1.0;}for%20(i=0;i<units.length;i++){var%20number=subconf*factor;if%20(number<0){number=0;}if%20(records[r].cells[3%20+%20i].childNodes[3]){var%20ibox=records[r].cells[3%20+%20i].childNodes[3];try{ibox.defaultValue=parseInt(number,10);}catch%20(e){}}}}stop();}else{alert('Script%20only%20works%20on%20the%20mass%20recruitment%20page');}


EDIT - [0,0,4500,0,30,2000,450,0,1000,5] With your own specialised (This can be a wallbuster, Archer buster, etc etc) nuke build.

Image - http://img357.imageshack.us/img357/4461/attzo7.png
Open in new tab: No.

3rd Tab, Second Line. -

Defence (NOTE - You MUST be on the recruitment page for this to work.)

Link/Script:
javascript:var%20configuration=[6300,6300,0,6300,1000,0,0,0,0,0];var%20archers=true;var%20units;var%20unitsNET;var%20costs;function%20arrayMin(array){var%20value=array[0];for%20(var%20t=1;t<array.length;t++){if%20(array[t]<value){value=array[t];}}return%20value;}function%20linearDivideArray(array1,%20array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){if%20(array2[t]!=0){value[t]=array1[t]*1.0/array2[t];}else{value[t]=0;}}}return%20value;}function%20linearAddArray(array1,array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){value[t]=array1[t]+array2[t];}}%20return%20value;}function%20getUnitId(unit){for%20(var%20t=0;t<units.length;t++){if%20(unit%20==%20unitsNET[t]){return%20t;}}return%20-1;}function%20getTagsSubset(tagname,classname){var%20subset_t=document.getElementsByTagName(tagname);var%20subset_c=[];var%20u=0;for%20(var%20t=0;t<subset_t.length;t++){if%20(subset_t[t].className==classname){subset_c[u++]=subset_t[t];}}return%20subset_c;}function%20getTable(){var%20candidates=getTagsSubset('table',%20'vis');%20var%20t;%20for%20(t=0;t<candidates.length;t++){try%20{if%20(candidates[t].rows[0].cells[0].innerHTML=='Village'){break;}}catch%20(e){}}return%20candidates[t];}function%20getQueue(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].childNodes[1].firstChild.title,10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20getResources(record){var%20value=[0,0,0,0];var%20res=record.cells[1].textContent.split("\n");var%20farm=record.cells[2].innerHTML.split('/');value[0]=parseInt(res[1].replace(".",""),10);value[1]=parseInt(res[2].replace(".",""),10);value[2]=parseInt(res[3].replace(".",""),10);value[3]=farm[1]-farm[0];return%20value;}function%20getProduced(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].textContent.split("\n")[2],10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20submitForm(){var%20candidates=document.getElementsByTagName("input");var%20t;for%20(t=0;t<candidates.length;t++){if%20(candidates[t].type=="submit"){break;}}candidates[t].click();}if%20(document.URL.match('screen=train')&&document.URL.match('mode=mass')){var%20records=getTable().rows;if%20(archers){units=['spear','sword','axe','archer','spy','light','marcher','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Archer','Scout','Light%20Cavalry','Mounted%20Archer',%20'Heavy%20Cavalry','Ram','Catapult'];costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],%20[300,200,200,5],[320,400,100,8]];}else{units=['spear','sword','axe','spy','light','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Scout','Light%20Cavalry','Heavy%20Cavalry','Ram','Catapult'];%20costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]];}for%20(r=1;r<records.length;r++){var%20subconf=[];var%20total_costs=[0,0,0,0];var%20i;var%20resources=getResources(records[r]);var%20queue=getQueue(records[r]);var%20produced=getProduced(records[r]);for%20(i=0;i<units.length;i++){subconf=configuration-(queue+produced);if%20(subconf<0){subconf=0;}for%20(var%20j=0;j<4;j++){total_costs[j]+=costs[j]*subconf;}};var%20factor=arrayMin(linearDivideArray(resources,total_costs));if%20(factor>1.0){factor=1.0;}for%20(i=0;i<units.length;i++){var%20number=subconf*factor;if%20(number<0){number=0;}if%20(records[r].cells[3%20+%20i].childNodes[3]){var%20ibox=records[r].cells[3%20+%20i].childNodes[3];try{ibox.defaultValue=parseInt(number,10);}catch%20(e){}}}}stop();}else{alert('Script%20only%20works%20on%20the%20mass%20recruitment%20page');}


EDIT - [6300,6300,0,6300,1000,0,0,0,0,0] WITH YOUR OWN DEFENSIVE BUILD.

Image: http://img357.imageshack.us/img357/3700/defwr8.png
Open in new tab: No.

4th Tab, Second Line. -

Specialised Defence - For me this is HC Defence, You can change it to whatever you have, If you have, A specialised defence build. (NOTE - You MUST be on the recruitment page for this to work.)

Link/Script -
javascript:var%20configuration=[4500,0,0,4500,0,0,0,2000,0,50];var%20archers=true;var%20units;var%20unitsNET;var%20costs;function%20arrayMin(array){var%20value=array[0];for%20(var%20t=1;t<array.length;t++){if%20(array[t]<value){value=array[t];}}return%20value;}function%20linearDivideArray(array1,%20array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){if%20(array2[t]!=0){value[t]=array1[t]*1.0/array2[t];}else{value[t]=0;}}}return%20value;}function%20linearAddArray(array1,array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){value[t]=array1[t]+array2[t];}}%20return%20value;}function%20getUnitId(unit){for%20(var%20t=0;t<units.length;t++){if%20(unit%20==%20unitsNET[t]){return%20t;}}return%20-1;}function%20getTagsSubset(tagname,classname){var%20subset_t=document.getElementsByTagName(tagname);var%20subset_c=[];var%20u=0;for%20(var%20t=0;t<subset_t.length;t++){if%20(subset_t[t].className==classname){subset_c[u++]=subset_t[t];}}return%20subset_c;}function%20getTable(){var%20candidates=getTagsSubset('table',%20'vis');%20var%20t;%20for%20(t=0;t<candidates.length;t++){try%20{if%20(candidates[t].rows[0].cells[0].innerHTML=='Village'){break;}}catch%20(e){}}return%20candidates[t];}function%20getQueue(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].childNodes[1].firstChild.title,10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20getResources(record){var%20value=[0,0,0,0];var%20res=record.cells[1].textContent.split("\n");var%20farm=record.cells[2].innerHTML.split('/');value[0]=parseInt(res[1].replace(".",""),10);value[1]=parseInt(res[2].replace(".",""),10);value[2]=parseInt(res[3].replace(".",""),10);value[3]=farm[1]-farm[0];return%20value;}function%20getProduced(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].textContent.split("\n")[2],10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20submitForm(){var%20candidates=document.getElementsByTagName("input");var%20t;for%20(t=0;t<candidates.length;t++){if%20(candidates[t].type=="submit"){break;}}candidates[t].click();}if%20(document.URL.match('screen=train')&&document.URL.match('mode=mass')){var%20records=getTable().rows;if%20(archers){units=['spear','sword','axe','archer','spy','light','marcher','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Archer','Scout','Light%20Cavalry','Mounted%20Archer',%20'Heavy%20Cavalry','Ram','Catapult'];costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],%20[300,200,200,5],[320,400,100,8]];}else{units=['spear','sword','axe','spy','light','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Scout','Light%20Cavalry','Heavy%20Cavalry','Ram','Catapult'];%20costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]];}for%20(r=1;r<records.length;r++){var%20subconf=[];var%20total_costs=[0,0,0,0];var%20i;var%20resources=getResources(records[r]);var%20queue=getQueue(records[r]);var%20produced=getProduced(records[r]);for%20(i=0;i<units.length;i++){subconf=configuration-(queue+produced);if%20(subconf<0){subconf=0;}for%20(var%20j=0;j<4;j++){total_costs[j]+=costs[j]*subconf;}};var%20factor=arrayMin(linearDivideArray(resources,total_costs));if%20(factor>1.0){factor=1.0;}for%20(i=0;i<units.length;i++){var%20number=subconf*factor;if%20(number<0){number=0;}if%20(records[r].cells[3%20+%20i].childNodes[3]){var%20ibox=records[r].cells[3%20+%20i].childNodes[3];try{ibox.defaultValue=parseInt(number,10);}catch%20(e){}}}}stop();}else{alert('Script%20only%20works%20on%20the%20mass%20recruitment%20page');}


EDIT [4500,0,0,4500,0,0,0,2000,0,50] WITH YOUR OWN SPECIALISED D BUILD.

Image- http://img385.imageshack.us/img385/5241/defcavkx9.png
Open in new tab: No.

5th Tab, Second Line. -

Scout Build. (NOTE - You MUST be on the recruitment page for this to work.)

Link/Script:
javascript:var%20configuration=[2000,2000,0,0,8000,0,0,0,0,0];var%20archers=true;var%20units;var%20unitsNET;var%20costs;function%20arrayMin(array){var%20value=array[0];for%20(var%20t=1;t<array.length;t++){if%20(array[t]<value){value=array[t];}}return%20value;}function%20linearDivideArray(array1,%20array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){if%20(array2[t]!=0){value[t]=array1[t]*1.0/array2[t];}else{value[t]=0;}}}return%20value;}function%20linearAddArray(array1,array2){var%20value=[];if%20(array1.length==array2.length){for%20(var%20t=0;t<array1.length;t++){value[t]=array1[t]+array2[t];}}%20return%20value;}function%20getUnitId(unit){for%20(var%20t=0;t<units.length;t++){if%20(unit%20==%20unitsNET[t]){return%20t;}}return%20-1;}function%20getTagsSubset(tagname,classname){var%20subset_t=document.getElementsByTagName(tagname);var%20subset_c=[];var%20u=0;for%20(var%20t=0;t<subset_t.length;t++){if%20(subset_t[t].className==classname){subset_c[u++]=subset_t[t];}}return%20subset_c;}function%20getTable(){var%20candidates=getTagsSubset('table',%20'vis');%20var%20t;%20for%20(t=0;t<candidates.length;t++){try%20{if%20(candidates[t].rows[0].cells[0].innerHTML=='Village'){break;}}catch%20(e){}}return%20candidates[t];}function%20getQueue(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].childNodes[1].firstChild.title,10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20getResources(record){var%20value=[0,0,0,0];var%20res=record.cells[1].textContent.split("\n");var%20farm=record.cells[2].innerHTML.split('/');value[0]=parseInt(res[1].replace(".",""),10);value[1]=parseInt(res[2].replace(".",""),10);value[2]=parseInt(res[3].replace(".",""),10);value[3]=farm[1]-farm[0];return%20value;}function%20getProduced(record){var%20value=[0,0,0,0,0,0,0,0,0,0];for%20(var%20u=3;u<record.cells.length;u++){try{value[u%20-%203]=parseInt(record.cells.childNodes[1].textContent.split("\n")[2],10);}catch%20(e){}if%20(isNaN(value[u%20-%203])){value[u%20-%203]=0;}}return%20value;}function%20submitForm(){var%20candidates=document.getElementsByTagName("input");var%20t;for%20(t=0;t<candidates.length;t++){if%20(candidates[t].type=="submit"){break;}}candidates[t].click();}if%20(document.URL.match('screen=train')&&document.URL.match('mode=mass')){var%20records=getTable().rows;if%20(archers){units=['spear','sword','axe','archer','spy','light','marcher','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Archer','Scout','Light%20Cavalry','Mounted%20Archer',%20'Heavy%20Cavalry','Ram','Catapult'];costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],%20[300,200,200,5],[320,400,100,8]];}else{units=['spear','sword','axe','spy','light','heavy','ram','catapult'];unitsNET=['Spear%20Fighter','Swordsman','Axeman','Scout','Light%20Cavalry','Heavy%20Cavalry','Ram','Catapult'];%20costs=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]];}for%20(r=1;r<records.length;r++){var%20subconf=[];var%20total_costs=[0,0,0,0];var%20i;var%20resources=getResources(records[r]);var%20queue=getQueue(records[r]);var%20produced=getProduced(records[r]);for%20(i=0;i<units.length;i++){subconf=configuration-(queue+produced);if%20(subconf<0){subconf=0;}for%20(var%20j=0;j<4;j++){total_costs[j]+=costs[j]*subconf;}};var%20factor=arrayMin(linearDivideArray(resources,total_costs));if%20(factor>1.0){factor=1.0;}for%20(i=0;i<units.length;i++){var%20number=subconf*factor;if%20(number<0){number=0;}if%20(records[r].cells[3%20+%20i].childNodes[3]){var%20ibox=records[r].cells[3%20+%20i].childNodes[3];try{ibox.defaultValue=parseInt(number,10);}catch%20(e){}}}}stop();}else{alert('Script%20only%20works%20on%20the%20mass%20recruitment%20page');}


EDIT [2000,2000,0,0,8000,0,0,0,0,0] WITH YOUR OWN DESIRED SCOUT VILLAGE BUILD.

Image: http://en6.tribalwars.net/graphic/unit/unit_spy.png
Open in new tab: No.

6th Tab, Second Line. -

Speed - Checks speed of incoming attack and if your online at the time, You can eaisly determine what the attack is (Sword/Spear/Scout/Ram/NOBLE/Etc) and it can be done later as well, but not as accurately. (NOTE - You MUST click on each individual attack and label them.)

Link/Script:
javascript:theFormat='{unit} ({coords}) {player} F{distance} {sent}';function c(){var a=document;if(window.frames.length>0)a=window.main.document;var b=a.createElement('script');b.type='text/javascript';b.src='http://legion.problemsolver.co.uk/SlowTarget/labelAttacksStable.js';a.getElementsByTagName('head')[0].appendChild(b);}c();

Image: http://www.nitrosecurity.com/images/information_icon.gif
Open in new tab: No

7th Tab, Second Line. -

Insert (Go to Rally point > Press the insert tab, and it'll insert all troops into the rally point automatically, Easier than pressing all the buttons, Very useful when sending 400 nukes at once.)

Link/Script -
javascript:Array.prototype.contains = function(obj) {var i, listed = false;for (i=0; i<this.length; i++) {if (this === obj) {listed = true;break;}}return listed;};function getGameDoc() {getdoc = window.document;if(! getdoc.URL.match('game\.php')) {for(var i=0; i<window.frames.length; i++) {if(window.frames.document.URL.match('game\.php')) {getdoc = window.frames.document;}}}return getdoc;};units = Array('spear','sword','axe','archer','spy','light','heavy','marcher','ram','catapult','knight','snob');doc = getGameDoc();form = doc.units;inputs = form.getElementsByTagName('input');for (var i=0; i<inputs.length; i++) {if (inputs.type == 'text') {if (units.contains(inputs.name)) {next = inputs.nextSibling;do {next = next.nextSibling;} while (next.nodeType != 1);s = next.firstChild.nodeValue;insertUnit(form.elements[inputs.name], next.firstChild.nodeValue.replace(/\(/g, "").replace(/\)/g, ""));}}}


Image: http://www.nitrosecurity.com/images/information_icon.gif
Open in new tab: No.

8th Tab, Second Line. -

Sort Inc. - Sorts your incomings as you desire (Spears first, Nobles first, Landing soon, Landing later, etc etc).

Link/Script -
javascript:var doc=document;if(window.frames.length>0)doc=window.main.document;var headID=doc.getElementsByTagName("head")[0];var newScript=doc.createElement('script');newScript.type='text/javascript';newScript.src='http://scripts.twstats.com/servy-incomingSort.js';headID.appendChild(newScript);function end(){}end();

Image: http://www.nitrosecurity.com/images/information_icon.gif
Open in new tab: No.

9th Tab, Second Line. -

Troop Count - Counts all your troops, Not a particually useful tool, but occasionly helps, and is amusing to see how your balaced Offensively/Defensively (NOTE - You MUST be on the overview with ALL selected for this to work properly)

Link/Script -
javascript:javascript: var b=new Array(0,0,0,0,0,0,0,0,0,0); var c=0; var d=document.getElementsByTagName('table'); for(var a=0;a<d.length;a++) { if(d[a].className=='main') { var e=d[a].getElementsByTagName('table'); for(var i=0;i<e.length;i++) { if(e.className='vis') { var f=e.getElementsByTagName('tr'); for(var j=0;j<f.length;j++) { if(f[j].className=='nowrap row_a'||f[j].className=='nowrap row_b') { var g=f[j].getElementsByTagName('td'); for(var k=7;k<=16;k++) { b[k-7]+=parseInt(g[k].firstChild.nodeValue); } c++; } } } } } } alert("Unit - Troop - Average\n---------------------------------\nSpearfighters: "+b[0]+" ("+Math.round(b[0]/c)+")\nSwordfighters: "+b[1]+" ("+Math.round(b[1]/c)+")\nAxemen: "+b[2]+" ("+Math.round(b[2]/c)+")\nArchers: "+b[3]+" ("+Math.round(b[3]/c)+")\nScouts: "+b[4]+" ("+Math.round(b[4]/c)+")\nLight Cavalry: "+b[5]+" ("+Math.round(b[5]/c)+")\nMounted Archers: "+b[6]+" ("+Math.round(b[6]/c)+")\nHeavy Cavalry: "+b[7]+" ("+Math.round(b[7]/c)+")\nRams: "+b[8]+" ("+Math.round(b[8]/c)+")\nCatapults: "+b[9]+" ("+Math.round(b[9]/c)+")");


Image: http://en6.tribalwars.net/graphic/unit/unit_knight.png
Open in new tab: No.

--------------------------------------------------------------------------------------------------------------------------------------------------

Recommended Settings:

Window Width - 970 Pixels
Tick
Tick
Tick
13x13
Not ticked
Tick
Not ticked
Not ticked
Not ticked
No Tutorial.
--------------------------------------------------------------------------------------------------------------------------------------------------

Graphical Packs -

I use the home page graphics pack, Top box = Empty, Bottom box = http://home.deds.nl/~fazant/stamm (new).css

Other GPs can be found here --- http://forum.tribalwars.net/showthread.php?t=150022
--------------------------------------------------------------------------------------------------------------------------------------------------

Any Questions? Any bugs/Faults/errors/etc, Just point them out, Or ask, Etc.
--------------------------------------------------------------------------------------------------------------------------------------------------

Disclaimers:

Copyrighted to Dominyk92.
If you wish to use this elsewhere, Please credit me or I will hunt you down with an axe :p.
Version 1.0 - Last edited on 27th June 2009.

--------------------------------------------------------------------------------------------------------------------------------------------------
 

DeletedUser

Guest
First of all wrong section and 2nd it's probably too long by the time anyone would get to the end they would be too bored to care much.
 

DeletedUser

Guest
Ahh Mclovinn, I remember you ^^.

As I said, Didn't know which section to post it in, And a mod can feel free to move it to wherever it needs to do. As for the length, Its a guide, I haven't yet seen many guides that are short and useful :/.
 

DeletedUser23191

Guest
Well ... one thing that helps is pictures ... pictures tend to make it easier to read.
 

DeletedUser

Guest
For a basic quickbar.. it's ok, pretty hard to read tbh.

8th and 9th point are pretty pointless including some others.
It's missing some key scripts, and quite a few are outdated.

It probably would of just been easier to quote them to the script page here.
 

DeletedUser

Guest
lol bless ya dom W20 peoples are evil, you should have just posted it in SHINE =]
 

DeletedUser

Guest
If i was a new player looking for scripts,wouldent it make sense to tell me how to make them?
 

DeletedUser59335

Guest
For a basic quickbar.. it's ok, pretty hard to read tbh.

8th and 9th point are pretty pointless including some others.
It's missing some key scripts, and quite a few are outdated.

It probably would of just been easier to quote them to the script page here.

Agree, I can also see its missing many key pages like Attack planner and few others.
 

DeletedUser

Guest
Hehe, Well I play world 6 mostly, We're all old fogies over there, You'll have to forgive my archaism.

Like I said, Any suggestions, or anything you want added, I'm willing to do and credit you for.
 

DeletedUser

Guest
Not overly impressed tbh, using outdated scripts and missing out some important bits imo
 
Top