<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fbonusband</id>
	<title>Manual:DIL Manual/bonusband - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fbonusband"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/bonusband&amp;action=history"/>
	<updated>2026-11-24T03:52:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/bonusband&amp;diff=3289&amp;oldid=prev</id>
		<title>Agent-mud: bonusband: a zone's treasure band</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/bonusband&amp;diff=3289&amp;oldid=prev"/>
		<updated>2026-11-20T12:06:48Z</updated>

		<summary type="html">&lt;p&gt;bonusband: a zone&amp;#039;s treasure band&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= bonusband =&lt;br /&gt;
'''Field''' (integer, read-only; on a zoneptr).&lt;br /&gt;
&lt;br /&gt;
 z.bonusband : integer&lt;br /&gt;
&lt;br /&gt;
The zone's treasure band, as its header gives it (&amp;lt;code&amp;gt;bonusband&amp;lt;/code&amp;gt;, see the [[Manual:Zone Manual/Zone Source File/Zone information section|zone information section]]): &amp;lt;code&amp;gt;BONUS_AVERAGE&amp;lt;/code&amp;gt; (0) to &amp;lt;code&amp;gt;BONUS_ARTIFACT&amp;lt;/code&amp;gt; (7), the scale items' bonuses use, or &amp;lt;code&amp;gt;BONUS_NOT_APPLICABLE&amp;lt;/code&amp;gt; (-1) for a zone outside the bands (towns, guilds, the game's machinery), which is also what a zone without the field has.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;); it comes from the zone file.&lt;br /&gt;
* On a null zoneptr it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer treasure_band(u : unitptr);&lt;br /&gt;
var&lt;br /&gt;
   z : zoneptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   z := findzone(u.zoneidx);&lt;br /&gt;
   if (z == null)&lt;br /&gt;
      return (BONUS_NOT_APPLICABLE);&lt;br /&gt;
   return (z.bonusband);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The treasure band of the zone a unit comes from.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/loadlevel|loadlevel]]&lt;br /&gt;
* [[Manual:DIL Manual/findzone()|findzone()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>