stuff123

Stuff About Life

&
 

Archive for March 9th, 2009

Mar 09 2009

Tribal Wars - Farming With Scripts

Published by bozoplay under GameStuff Edit This

game-tips.png Running a number of villages and supporting them with resources will require a fair bit of farming so a way to make this less tedious is very helpful. In order to make this simpler, I copied a script from the game and modified it to work with my series of local farms and some a little further out. This particular script will bring back 40,000 resources at a time if those resources exist at the destination. Otherwise, they collect what is there and return to the starting location.

The reason I choose to send a scout along is to see what the makeup of the village is and what resources may have been left behind. Sometimes you will find a very large farm that may be better handled by a number of continuous run. My personal best was in the range of 875,000 resources at one location. That would require a little less than 11,000 Light Calvary to bring it all back. Keep in mind that the village continues to create resources while your troops move towards the location. If the number drops when you arrive, well someone else is also farming this location.

The Script

javascript:coords=’xxx|yyy xxx|yyy ‘;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].light,500);insertUnit(doc.forms[0].spy,1);end();

First you must purchase the Premium package to run this script in your quickbar menu. Always remember that scripts cannot replace game functions totally or be one action-do everything programs. In this case, you need to be at the rally point for a village to run the script and you must click on Atack and then OK to complete the move. The game coordinators will ban you from the game if you don’t follow their approach for using scripts.

There are a few variables here that need to be input by you before you paste the script in the correct location. You need a list of the coordinates of the farms (usually barbarians) that you want to include in this script. Enter one in the place of the dark blue coordinates and enter a second in the lighter blue. Make sure you leave a space between each set of coordinates. You may enter as many a you want. I don’t  know if there is an upper limit but this isn’t that important since my script has about 100 farms included.

This script will send 500 Light Calvary and 1 Scout to each location. If you want to change that value edit the red numbers in the script to a value you would prefer. Earlier in the game, you can get away with 25, 50 and 100 as other options. As the barbarian villages develop walls, you will start losing an LC or two on each run.

To use the script, you must go to Settings on your main menu bar and the Edit Quick Bar. Add a New Link. You will have three boxes to enter information here.

  1. Entry Name - Call it what you like. This will appear on your quick bar.
  2. Image - URL: - This is optional. The game used .png image files - 18 x 18 px
    (I made some of my own (32 x 32) and they can be found in Gamestuff - Masterpage . You can right click on an image and copy the image location and then paste it into this box. Keep the file small so it doesn’t interfere with the look of your main menu)
  3. Target - URL: - Copy your script with your farm locations and paste it into this location.

If you don’t know how to use the Ctrl Key and additional keys to copy and paste in windows, here is a simple lesson. Highlight the entire text that you want to copy. Depress both the Ctrl key and the C key at the same time. This will copy the highlighted text (or image) to the Windows clipboard.

To paste this information, move your pointer to the location you want and depress both the Ctrl key and the V key and it is now pasted. If there is something in the box that you want to replace, highlight everything to be replaced first and then depress the Ctrl key and V key together. The new text will replace what was there.

Test your script to see that it is working properly. You should see that the villages are randomly selected and your farming runs are a lot simpler now.

With some minor adjustments you can modify this script to run fakes (ram instead of spy and remove the following - insertUnit(doc.forms[0].light,500);

So you work your way from one village to another in the rally point and run the script one at a time as long as you have troops to match.

story-end-line-480.PNG

No responses yet

Some Today.com contributors may have received a fee or a promotional product or service from a manufacturer for promotional consideration, while others receive no consideration at all. Each contributor is responsible for disclosing any such promotional consideration.