Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Auto-Farmscript

Travian Auto-farmscript

2008/04/23
1. Was still not fixed. Another try to fix that bug.
2008/04/23 - BUGFIX:
1. Fixed bug, then the farm script stops working in the middle off farming. :)

BUGFIX:
1. Can't remember :)
FUTURE:
1. Integrated in to travian design. Needs more tests




Jul 16, 2008
BUA User

I have one bugfix and some comments.
First the fix:
pls add

case "build.php?id=39":

in line 413, as you won't see the autofarm-options when clicking on the rally point.

And here the comments:
- You should reduce your script to only load on

http://*.travian.*/build.php*
http://*.travian.*/a2b.php*

- I would also like to see a variable troupsize; either an "intelligent" solution which sends spies first, or make it editable.
- I think it's bad to reload the a2b.php too often, as this may be a clue for the MH. Betteris to look if enough troops are available to send, and if not, wait for the automatic reload of the page, which will occur when the troups do return!
- It would be nice to have the possibillity to only delete ONE farm and not always the entire list ...
- I see you are linking to images of the actual travian-server. For not getting caught it would be better to include the images in your code and DON'T do any webactivity a human player won't do!
- what about i18n? ;-)

Do you think this is programmable?!

Btw.: There aer several copies of this script on userscripts.org. I assume you are the original coder, as the upgrade-function of some other sources are pointing to here ...

 
Jul 13, 2008
blubbiii User

This one is 10 from 1st army,the best to start with ;D

 
Jun 26, 2008
nuno21nt User

I was traced and banned because of this script. 50% of my account disappeared. Please, try to fix this because I want to use this script but I don't want to be banned. I think that the problem was when I made my second village. Auto-farmscript jumps from one village to another and then I got banned!!!

 
Jun 15, 2008
FDisk Script's author

I will update this script later.

 
Jun 14, 2008
Pompom User

How can I start the script???

 
Jun 14, 2008
Peterrr User

Your script is great!!!

Can I edit something in the script so that it sends a different number of troops?

 
May 10, 2008
moep User

and...

how far since you yet?
With the delete is very annoying. my list is VERY LONG and I will not always make everything from scratch. Please hurry you.

Thank you

 
May 10, 2008
Mi-chael User

Hey Titus why you stopped improve your script?

it was a bit easier to handle

Plz answer @ my email.

MfG michi

 
May 3, 2008
FDisk Script's author

Yes sure.

 
May 2, 2008
titus User

do you still need a help?

 
May 1, 2008
Draven User

I tryed to put a config in like Nobunaga said. But after edditing the script cant be installed...

 
May 1, 2008
FDisk Script's author

There is no ability to edit troops. I need a help to make it possible.

 
Apr 30, 2008
Draven User

I dont mean that you should insert cattapult target etc... I only mean that you should make an edditing funktion for each villiage on the farm list where you can send time and troups...

 
Apr 30, 2008
ezer User

someone can tell me how i can change the number of troop's to send? whith default just 10 some one can help me?

 
Apr 28, 2008
FDisk Script's author

Draven: this is not ant atack builder. This is just farming. catapult i think is not needed.
Nobunaga: thanks for finding a bug.

 
Apr 28, 2008
Nobunaga User

FDisk,

U doing a great job there fella.

Bug stoping the farm caused by index counter.
it's start from 1 and it's not go to 0 again. take a look carefully :). and i see that index 0 never been farmed? fix me if i mistaken.

@Draven
if u want to input like config.ini u can do that by editing the script for function addlist, after u edit the script, u can click addbutton value anywhere at village view. here's the example, thanks

function addList(add) {
var tekst = document.URL;
tekst = tekst.substring(tekst.indexOf("://")+3, tekst.lastIndexOf("/") );
var tekst = tekst+''+getEigen();
var doel = GM_getValue("fermos"+tekst,"");
//var doel = readList();
doel = doel+"\n"+add;
doel =
'-9,-27|5,0,0,0,0,0,0,0,0,0|Desa Fitun\n' +
'-9,-34|5,0,0,0,0,0,0,0,0,0|Desa suluap\n' +
'-15,-29|5,0,0,0,0,0,0,0,0,0|kemayoran\n' +
'-15,-27|5,0,0,0,0,0,0,0,0,0|Saritem Underground\n' +
'-18,-25|5,0,0,0,0,0,0,0,0,0|Desa Mr. LopaLopa';
//alert(doel);
GM_setValue("fermos"+tekst,doel);

};

 
Apr 25, 2008
Draven User

Hi FDisk

My idea for the automatik farmattacks is that you can make an edditing funktion between the list. every viliage is saven in the list fron DBKiller, between the name there is a fiel where you can write the "config" for the attack on this specific villiage.

for exampel:
time | attaks type | number of troops in order like in travian game

20:20:00|4|20|0|0|0|0|0|0|0|0|0|0|99|0

The 99 is the catapult target:
1>Woodcutter
2>Clay Pit
3>Iron Mine
4>Cropland
5>Sawmill
6>Brickyard
7>Iron Foundry
8>Grain Mill
9>Bakery
10>Warehouse
11>Granary
12>Blacksmith
13>Armoury
14>Tournament Square
15>Main Building
16>Rally Point
17>Marketplace
18>Embassy
19>Barracks
20>Stable
21>Workshop
22>Academy
24>Town Hall
25>Residence
26>Palace
28>Trade Office
29>Great Barracks
30>Great Stable
99>Random

attaks type: 2=Reinforcement , 3=Attack: Normal, 4=Attack: Raid.

that would be a bit work to edit this things for every villiage but it is the best I think.

 
Apr 25, 2008
dbKiller Scriptwright

FDisk, you are welcome to merge it with mine.
We could also think about unify the two scripts at some point, once you've sorted out the problems with auto-farm function

 
Apr 25, 2008
FDisk Script's author

ItalianGuy: Then you add the village to autofarm. Go to your rally point You will find that willage in the list, so click on link "[Autofarm is OFF]"
it will start an auto farming.

 
Apr 25, 2008
FDisk Script's author

Yes you all right. There is no edit mode. There is no remove 1 farm ability. I'll mix it with farm-editor script and it become more flexible.
How you imagine the troops editing? Write inputs on each farm? Help me. :)
sorry for bad english.

 
Apr 25, 2008
ItalianGuy User

oh, another thing, HOW can i choose what troops to send? It just says 10 0 0 0 0 0 ....what i i want to do 50 0 15 0 0 0.....how can i change the amout of troops? it doesnt let me

 
Apr 25, 2008
Draven User

I tryed to deleate a farm from the list. But then a pop up window came with the text "autofarmlist cleard" but I dont want to clear, I only want to deleat one...

 
Apr 25, 2008
Gobo User

Is this line that you have to change to change the troops sent?

addList(x+","+y+"|10,0,0,0,0,0,0,0,0,0|"+dorpnaam);

So if I changed that line to this for gauls

addList(x+","+y+"|0,0,0,2,0,0,0,0,0,0|"+dorpnaam);

It would auto-send 2 TTs for each village added to auto-farm?

Also how do you remove the farms from auto-farm?

 
Apr 24, 2008
ItalianGuy User

hey guys, i tried installing this script BUT...what does it exactly do? i noticed the AUTOFARM link under every village, but what does the script do?

 
Apr 24, 2008
FDisk Script's author

Hi, DBkiller
Really good work you did. Can I merge your script with this one?

You could comment on this script if you were logged in.