<?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>NpcBuildPolicy</title><revhistory><revision><revnumber>4</revnumber><date>2013-05-30 15:00:57</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>3</revnumber><date>2013-02-15 04:27:50</date><authorinitials>Susannah</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-09-16 18:21:34</date><authorinitials>Susannah</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-08-25 20:02:04</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>npcbuildpolicy /level:[level] /mindistance:[miles] /maxdistance:[miles]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>npcbuildpolicy /level:10 /mindistance:1 /maxdistance:5 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default: </para></entry><entry colsep="1" rowsep="1"><para>none </para></entry></row></tbody></tgroup></informaltable><para>You can specify which npcs you want to be built at which distances by using this goal. For example, if config buildnpc:10 is enabled the bot will know to build npcs of level 10. With the above example, it will know to build level 10 npcs only between 1-5 miles away. If a maxdistance is not set, the bot defaults to mindistance + 1 mile. </para><para><emphasis>*NOTE* npcbuildpolicy is optional. If you wish for distancepolicy setting to be used for any npc that will be built according to your config buildnpc:x goal, then npcbuildpolicy is not necessary. This is only useful if you wish to specify different distances for different levels of npcs to be built.</emphasis> </para><para>You can also use a range within the level switch, for example /level:1-10 to encompass all levels of npcs, from 1 to 10.  </para><para><emphasis role="strong">Common building examples:</emphasis> </para><para>For npcs level 5 &amp; 10 only, 10s up to 5 miles away, 5s up to 15 miles beyond that: </para><screen><![CDATA[config buildnpc:15
npcbuildpolicy /level:10 /mindistance:1 /maxdistance:5
npcbuildpolicy /level:5 /mindistance:5 /maxdistance:15]]></screen><para>For npcs of any level, with 10s up to 5 miles away, 5s beyond that up to 10 miles away, and any junk level beyond that up to 20 miles away: </para><screen><![CDATA[config buildnpc:20
npcbuildpolicy /level:10 /mindistance:1 /maxdistance:5
npcbuildpolicy /level:5 /mindistance:5 /maxdistance:10
npcbuildpolicy /level:1-4 /mindistance:10 /maxdistance:20]]></screen><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/NpcBuildPolicy/wiki/CategoryAllGoals#">CategoryAllGoals</ulink> <ulink url="http://guide.neatportal.com/wiki/NpcBuildPolicy/wiki/CategoryNpcGoals#">CategoryNpcGoals</ulink> </para></article>