Hey Linux, Sorry for making another post so soon… But maybe I can help you a bit with the intelligence of the AI. The AI needs to be smart enough to build a village from scrap. That is the whole point of an AI here . Now take the following in mind. I create an account on a Travian server. And I go on holliday while the AI takes over. I will only discuss the building here since that is the main thing the AI will be doing in the beginning… (and that is building the resources) There are 4 kinds of resources, Crop, Wood, Clay and Iron. Those 4 resources need at least some support from 2 buildings. Namely the Silo and the Warehouse. If you start a village then you can save up to 800 pieces of any resource each. That is enough for the first 5 levels of any kind of resource. But after that comes the problem. Crop: Level: 6 Wood: 910 Clay: 1170 Iron: 910 Crop: 260 Crop production: 1 Wood: Level: 6 Wood: 520 Clay: 1300 Iron: 650 Crop: 780 Crop production: 2 Clay: Level: 6 Wood: 1040 Clay: 520 Iron: 1040 Crop: 650 Crop production: 2 Iron: Level: 6 Wood: 1300 Clay: 1040 Iron: 390 Crop: 780 Crop production: 2 If you have a normal village consisting of 6, 4, 4, 4, all maxed at level 5 then you will have the following production: Crop: 504/h (Without counting the crop needed to support the fields) Wood: 336/h Clay: 336/h Irion: 336/h The use of crop for sustaining the fields that are level 5 are: Crop: 0/h Wood: 24/h Clay: 24/h Irion: 44/h That forms a total of: 92 crop an hour. If you look at the numbers you will see that it is a pretty high production. But to get higher fields, there is a need to build a warehouse and a silo to store the grain. The silo can be build immediately, so you do not need to worry about the main house (mainbuilding). Same goes for the warehouse. So if you reach level 5 you should build at least a warehouse to level 1. That will allow you to build one level extra crop and clay. A wood and iron level is impossible since that will need more storage space then 1200 that you get for the first level. If you have all the fields maxed at level 7 you will also need to build the silo. And after you have upgraded all the fields, then the warehouse needs to be upgraded again. Depending on the kind of field you want to upgrade, you will need to upgrade the warehouse 2 times or you will also have to upgrade the silo one time or even 2 times. In short: When fields levels reach 5, build warehouse 2 times to store enough resources to upgrade all the resources to level 6. When fields levels reach 6, build silo. I am sure that you can create a routine that will check if there is enough room in the storage to upgrade a field. But it is nice to know the level from where it is important to start the build of the storage buildings. If this is not implemented that is… See this site for a list of resources that are needed. (It is for the wood, and I have already selected your language) http://help.travian.com.pt/index.php?type=faq&mod=324 P.S. If I think of more, then I will post it off course. Edit: Also calculate in the build time. It may exceed the time that it takes to fill up the storage... To shorten the build time you should upgrade the mainbuilding.