No not randomly. Each farmer has an id. The bot attacks the farmers with id's from low to high or from high to low if you use the reverse attack option.
//edit
Unfortunately it isn't possible to check the distance. The only way to separate farmers is with their id. The bot checks each farmers mood/strength and attacks the first positive match (with your mood/strength setting).
Hmm... so you set it like this: If "normal attack", then attack Farm with Highest ID, else if "Reverse Attack Order" then attack Farm with Lowest ID... thats how i understood it.
But what is if you do it like this (just for example): If "normal attack" then attack Farm with ( Highest ID / 2 ), so he would attack the Farm with the "middle" ID..
Of course i just showed it in a simple way, but isn't it possible to go on like this?
Something like that. But in normal mode it will attack the one with the lowest id first, when using the reverse attack option it will attack the highest id first.
The farmers ID are global, meaning it's not an id from 0-7 on your island but more like 0-10000 for the whole world map.
But that's not really a problem if you do "Highest ID" - "Lowest ID" you know the range on your island too.
The problem with your method is that it doesn't work for everyone. For example if there's someone who has the farmer with the lowest id closest to his town. For him the bot works perfect. The same thing for someone who has the farmer with the highest id closest to his town.
What I had in mind to make it work for everyone is to add a selection window where you can choose which farmers you want to attack. You can choose then to only attack the farmers that are near you.
m_ID or p_ID doesn't say directly anything about a "low" or "high" id.
Everything that starts with m_ in the source code is a member of the current class (Global variable for that class). And the variables that start with p_ are parameters.
I think you are looking in the Farmer.cs file now?
If your town is on an Island with farmers the bot will create 8 Farmer objects. Each one of them has a different value for m_ID. You will have to compare the variable m_ID of all farmers if you want to know which one is the lowest/highest.
It's indeed not very easy to add if you see the source code for the first time. But if you wait a few weeks it should be ready. First going to add the the army queue and separate units for attack and support.
If there's someone here that want to help with the army queue I could use some help. Lost my town this weekend and don't have the barracks yet in my new town.
The only thing you need to have is FireFox and the addon called "Live HTTP headers"
it would be nice, if the bot could auto-trade between your own cities. that way your colonies that are surrounded by villages could provide the ones on islands without those with ressources. that way it would become possible to max out all the storage room in every city, even if it's offensive/farming army is currently unavailable/destroyed.
First you have to extract zip file you downloaded.
Make sure the text files and GrepolisBot.exe are in the same directory.
Then run GrepolisBot and see the Guide in the start post or to get the bot working.
First you have to extract zip file you downloaded.
Make sure the text files and GrepolisBot.exe are in the same directory.
Then run GrepolisBot and see the Guide in the start post or to get the bot working.
Grepolis Bot (GrepolisNet) 09/03/2019 - Browsergames - 172 Replies http://grepolis.eden-daoc.net/1c.png
<< Download the GrepolisNET here >>
GrepolisNET is a new kind of browser, based on Firefox,
designed for your favorite game Grepolis,
which includes lots of usefull tools
Probably the first bot allowing the user to browse and play while it is running !
Grepolis Bot? 02/20/2011 - Browsergames - 4 Replies Huhu,
wollte mal fragen ob es einen grepolis Bot gibt ?
wenn ja vllt könnte einer den link posten
dank euch
Grepolis Help 04/05/2010 - Main - 1 Replies Hey ich will den Bot benützen !!!
aber wie geht der eig.
der hier >>>http://www.elitepvpers.com/forum/browse rgames/438818-grepolis-bot-now-attack-option.html