<?xml version="1.0" encoding="utf-8"?>
<s1 title="NpcBuildPolicy"><table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage:</p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>npcbuildpolicy /level:[level] /mindistance:[miles] /maxdistance:[miles]</p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example:</p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>npcbuildpolicy /level:10 /mindistance:1 /maxdistance:5 </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Default: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>none </p>
</td></tr></table><p>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. </p>
<p><em>*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.</em> </p>
<p>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.  </p>
<p><strong>Common building examples:</strong> </p>
<p>For npcs level 5 &amp; 10 only, 10s up to 5 miles away, 5s up to 15 miles beyond that: </p>
<p></p>
<source><![CDATA[config buildnpc:15
npcbuildpolicy /level:10 /mindistance:1 /maxdistance:5
npcbuildpolicy /level:5 /mindistance:5 /maxdistance:15]]></source><p>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: </p>
<p></p>
<source><![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]]></source><p></p>

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