<?xml version="1.0" encoding="utf-8"?>
<s1 title="Npc"><table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage:</p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>config npc:[switch] </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example:</p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>config npc:5 </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Default: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>config npc:0 </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Switch: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>1 - Attack npcs 1+<br/>
2 - Attack npcs 2+<br/>
3 - Attack npcs 3+<br/>
4 - Attack npcs 4+<br/>
5 - Attack npcs 5+<br/>
6 - Attack npcs 6+<br/>
7 - Attack npcs 7+<br/>
8 - Attack npcs 8+<br/>
9 - Attack npcs 9+<br/>
10 - Attack npcs 10 only </p>
</td></tr></table><p>Enabling this config will start npc farming for you. The bot will start with the highest level npc it is configured to farm, and work its way down to lower level npcs when transports/ballistas or troops/heroes/whatever are unavailable to farm the higher levels. Be sure to set config npc to the <em>lowest</em> level of npc you wish to farm. </p>
<p>Level 1-5 npcs can be farmed with no losses for free resources with the proper research and troops, whereas level 6+ npcs cannot be. Level 6-10 npc farming has additional configuration - required <jump href="/wiki/NpcLimits">NpcLimits</jump> goal, and optionally <jump href="/wiki/NpcHeroes">NpcHeroes</jump> and <jump href="/wiki/NpcTroops">NpcTroops</jump> goals as well. The bot will farm npcs in a radius around your city as specified in <jump href="/wiki/DistancePolicy">DistancePolicy</jump> or modified by <jump href="/wiki/FarmingPolicy">FarmingPolicy</jump>. </p>
<p>By default the bot will send out as many npc runs at a time as it&apos;s able to with troops, heroes, and limits. You may wish to control how many are sent at a time. This can be done via the goal <jump href="/wiki/NpcTeams">NpcTeams</jump> or via <jump href="/wiki/RallyPolicy">RallyPolicy</jump>. </p>
<p>The bot is automatically programmed to send the proper safe amount of transports and ballistas (for lvl 1-5 npcs), or transports, archers, and layers (for 6+ npcs) based on the level of the npc and your logistics research. You can change the default troops used with the config settings <jump href="/wiki/NpcTroops">NpcTroops</jump> or <jump href="/wiki/BallsUsed" class="nonexistent">BallsUsed</jump>. If a hero is sent on a npc farming run, and its attack attribute is below 50, the bot will send the default number of ballistas regardless of your <jump href="/wiki/NpcTroops">NpcTroops</jump> or <jump href="/wiki/BallsUsed" class="nonexistent">BallsUsed</jump> settings, but will respect the /safeballs switch in <jump href="/wiki/FarmingPolicy">FarmingPolicy</jump>.  For level 5 npcs, this &quot;safe&quot; default is 550 ballistae. For level 4 npcs it is 350 ballistae For Level 3 npcs it is 170 ballistae For level 2 npcs it is 50 ballistae For level 1 npcs it is 20 ballistae </p>
<p>The bot starts with the closest npc and works its way out, restarting again based on the following order of priority: </p>
<ul><li><p>If <jump href="/wiki/Training">config training:1</jump> or <jump href="/wiki/Training10">config training10:1</jump>, then farm every hour (<em>see below</em>) </p>
</li>
<li><p>If /farmingcycle switch is used in <jump href="/wiki/FarmingPolicy">FarmingPolicy</jump>, then use that number of hours </p>
</li>
<li><p>If <jump href="/wiki/FarmingCycle">config farmingcycle:x</jump> is set, then use x number of hours </p>
</li>
<li>If nothing is set, then use 8-hour cycles. </li>
</ul>
<p>If npclimit is set and reached (e.g., config npclimit:10 and you have 10+ days of food in the city), and if config training:1 or config training:2 is enabled, the bot will restart again at the nearest npc every hour instead to train your heroes. The 8-hour default can be changed via <jump href="/wiki/FarmingPolicy">FarmingPolicy</jump> for each level of npc farmed, or <jump href="/wiki/FarmingCycle">FarmingCycle</jump> for all npcs. </p>
<p>The bot will automatically detect maintenance and reset your farming cycle after it relogs. You can also manually reset it by typing \resetfarminghistory in the <jump href="/wiki/Commands" class="nonexistent">Commands</jump> window, or by clicking the resetfarminghistory button on the right side of the <jump href="/wiki/Commands" class="nonexistent">Commands</jump> window.  In addition, you can have it reset farming history at startup by checking that box in Global Settings, General tab. </p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/CategoryAllGoals">CategoryAllGoals</jump> <jump href="/wiki/CategoryNpcGoals">CategoryNpcGoals</jump> <jump href="/wiki/CategoryConfigGoals">CategoryConfigGoals</jump> </p>
</s1>