<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>Npc</title><revhistory><revision><revnumber>14</revnumber><date>2014-12-27 16:24:34</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>13</revnumber><date>2013-10-30 17:57:02</date><authorinitials>Kento11</authorinitials></revision><revision><revnumber>12</revnumber><date>2013-05-30 14:56:48</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>11</revnumber><date>2013-03-09 16:20:28</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>10</revnumber><date>2013-02-11 19:46:30</date><authorinitials>Susannah</authorinitials></revision><revision><revnumber>9</revnumber><date>2013-02-11 19:42:55</date><authorinitials>Susannah</authorinitials></revision><revision><revnumber>8</revnumber><date>2012-09-22 17:00:52</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>7</revnumber><date>2012-08-25 18:16:09</date><authorinitials>Susannah</authorinitials></revision><revision><revnumber>6</revnumber><date>2012-08-23 22:52:25</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>5</revnumber><date>2012-08-22 13:41:47</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>4</revnumber><date>2012-08-21 14:15:57</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-08-21 14:15:25</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-08-21 14:13:39</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-08-21 14:09:30</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config npc:[switch] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config npc:5 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default: </para></entry><entry colsep="1" rowsep="1"><para>config npc:0 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Switch: </para></entry><entry colsep="1" rowsep="1"><para>1 - Attack npcs 1+</para><para>2 - Attack npcs 2+</para><para>3 - Attack npcs 3+</para><para>4 - Attack npcs 4+</para><para>5 - Attack npcs 5+</para><para>6 - Attack npcs 6+</para><para>7 - Attack npcs 7+</para><para>8 - Attack npcs 8+</para><para>9 - Attack npcs 9+</para><para>10 - Attack npcs 10 only </para></entry></row></tbody></tgroup></informaltable><para>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 <emphasis>lowest</emphasis> level of npc you wish to farm. </para><para>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 <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/NpcLimits#">NpcLimits</ulink> goal, and optionally <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/NpcHeroes#">NpcHeroes</ulink> and <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/NpcTroops#">NpcTroops</ulink> goals as well. The bot will farm npcs in a radius around your city as specified in <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/DistancePolicy#">DistancePolicy</ulink> or modified by <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/FarmingPolicy#">FarmingPolicy</ulink>. </para><para>By default the bot will send out as many npc runs at a time as it'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 <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/NpcTeams#">NpcTeams</ulink> or via <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/RallyPolicy#">RallyPolicy</ulink>. </para><para>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 <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/NpcTroops#">NpcTroops</ulink> or <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/BallsUsed#">BallsUsed</ulink>. 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 <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/NpcTroops#">NpcTroops</ulink> or <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/BallsUsed#">BallsUsed</ulink> settings, but will respect the /safeballs switch in <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/FarmingPolicy#">FarmingPolicy</ulink>.  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 </para><para>The bot starts with the closest npc and works its way out, restarting again based on the following order of priority: </para><itemizedlist><listitem><para>If <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/Training#">config training:1</ulink> or <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/Training10#">config training10:1</ulink>, then farm every hour (<emphasis>see below</emphasis>) </para></listitem><listitem><para>If /farmingcycle switch is used in <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/FarmingPolicy#">FarmingPolicy</ulink>, then use that number of hours </para></listitem><listitem><para>If <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/FarmingCycle#">config farmingcycle:x</ulink> is set, then use x number of hours </para></listitem><listitem><para>If nothing is set, then use 8-hour cycles. </para></listitem></itemizedlist><para>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 <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/FarmingPolicy#">FarmingPolicy</ulink> for each level of npc farmed, or <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/FarmingCycle#">FarmingCycle</ulink> for all npcs. </para><para>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 <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/Commands#">Commands</ulink> window, or by clicking the resetfarminghistory button on the right side of the <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/Commands#">Commands</ulink> window.  In addition, you can have it reset farming history at startup by checking that box in Global Settings, General tab. </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/CategoryAllGoals#">CategoryAllGoals</ulink> <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/CategoryNpcGoals#">CategoryNpcGoals</ulink> <ulink url="http://guide.neatportal.com/wiki/Npc/wiki/CategoryConfigGoals#">CategoryConfigGoals</ulink> </para></article>