====== Strategy: Farmizzator ======
^Purpose |to attack, raid or spy enemy villages at a given rate with the specified troops, or to reinforce |
^When to use |for farming weaker or abandoned villages |
^When to avoid |when the village is well defended or when the owner might get suspicious |
The Farmizzator strategy will keep attacking/reinforcing/scouting a village with the specified amount of troops.
The "movement" attribute specifies the type of movement. The value to use is specified in the language configuration file by the following elements:
key.movement.reinforcement = reinforcement, reinforce, defend, move
key.movement.normal = normal
key.movement.raid = raid
You can change the language configuration file with any value you like. Multiple values are aliases (synonims)
The "spy" attribute specifies what you want to spy: resources or troops. The value to use is specified in the language configuration file by the following elements:
key.movement.spy.resources = resources
key.movement.spy.defenses = defenses
You can change the language configuration file with any value you like. Multiple values are aliases (synonims).
The "rate" attribute specifies how often to send troops. When rate="1" a new attack will be sent when the troops come back (round trip) from the previous one; when rate="2" a new attack will be sent when the previous one arrives at the enemy destination, so at any point in time you will have some troops attacking and some troops coming back; with rate="4" a new attack will be sent after 1/4 of the time it takes for a round trip, and so on. You can also use a rate less than 1 to pause between raids. For example with rate="0.5" there will be one attack and then a pause for the same time that it took for the attack. The principle is that Farmizzator will sleep for the time of a round trip divided by the value of rate.
When attacking with catapults, you can specify up to 2 catapult targets by the "item" attribute. You should use the values that appear in the catapult target selection box of the travian page. {{:docs:languages:img:catatarget.gif?direct&100|catapult target selection box}} If you have more than one target, separate them with a comma. If no item is specified, catapults are sent on random targets. For example: item="Forno, Granaio" or item="Magazzino, A caso".
The troop name is the name of the troop in the server language, like "Legionario". You can define aliases in the language configuration file, like
key.romans.troop2 = Pretoriano, preti, lumache
You can then use the alias as a troop name, for example type="preti" or type="lumache".
If you want to always send the specified amount of soldiers, set allowLess="false". Otherwise, when you don't have enough troops, the attack will be sent with the available troops. You can also specify a "min" value to ensure that the attack won't be sent when you don't have at least some troops.
The "randomise" attribute has been introduced to make people less suspicious. When someone is being attacked every single hour with the same amount of troops, he might rightfully think that you're using a bot. When randomise="true", at least the amount of troops is never the same because it varies by +-10% of the TROOP_AMOUNT, while still obeying the "min" attribute.
**Notes**
* To attack more than one village, specify more Farmizzator strategies with different targets
* the "min" attribute can be expressed as a percentage of TROOP_AMOUNT. For example min="10%" will send at least 10% of the specified troops when allowLes="true"
==== Syntax ====
TROOP_AMOUNT
MIN_PAUSE
==== Attributes and parameters ====
|DESCRIPTION |some optional description of your choice |
|WAITFOR_UID |See [[index|"Strategies"]] |
|RUNWHILE_UID |See [[index|"Strategies"]] |
|UID |Unique IDentifier. See [[index|"Strategies"]] |
|TARGETNAME |The name of the target village |
|XCOORD, YCOORD |target village coordinates, when you don't use the name |
|REINFORCE, RAID, ATTACK |the type of movement. The value to use can be found in the language configuration file |
|RESOURCES, DEFENSES |the type of scouting (when sending scouts). The value to use can be found in the language configuration file |
|RATE |how often to send troops; default is "1". Any positive number, even with decimals |
|CATA_TARGET1 |catapult first target, as it appears in the selection box; default is random target |
|CATA_TARGET2 |catapult second target, as it appears in the selection box; default is no second target |
|TROOP_NAME |type of troops, in the server language or as an alias defined in the language configuration file |
|ALLOWLESS |"false" if you want to send the amount of troops and don't send anything if you don't have them, "true" if you might also send less than the specified troops when you don't have enough; default is "false" |
|MINIMUM_TROOPS |the minimum amount of troops to send when allowLess="true"; default is "0" |
|RANDOMISE |"true" if you want to add or subtract a random number, up to 10%, to the troops to send. Useful to disguise the bot as a human; default is "true" |
|TROOP_AMOUNT |the number of soldiers to send. The actual amount sent depends on the values of "allowLess", "minimumTroops" and "randomise" |
|MIN_PAUSE |the minimum time in minutes to wait before trying again when no attack can be sent because of lack of troops; default is "5" |
==== Examples ====
1400
250
1200
300
100
10
50
2