<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Agent-mud</id>
	<title>DikuMUD Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Agent-mud"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/wiki/Special:Contributions/Agent-mud"/>
	<updated>2026-11-22T15:30:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/zoneptr&amp;diff=3290</id>
		<title>Manual:DIL Manual/zoneptr</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/zoneptr&amp;diff=3290"/>
		<updated>2026-11-20T12:06:51Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: bonusband&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= zoneptr =&lt;br /&gt;
'''Type.''' A pointer to a zone.&lt;br /&gt;
&lt;br /&gt;
 var&lt;br /&gt;
    z : zoneptr;&lt;br /&gt;
&lt;br /&gt;
A zoneptr gives a program the facts about a zone: its name, title, creators, reset settings and size. &amp;lt;code&amp;gt;zhead()&amp;lt;/code&amp;gt; is the first zone in the game, &amp;lt;code&amp;gt;z.next&amp;lt;/code&amp;gt; the next one (null after the last), and &amp;lt;code&amp;gt;findzone(name)&amp;lt;/code&amp;gt; finds one by name.&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/name|name]] || string || the zone's name, as in &amp;lt;code&amp;gt;%zone&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/title|title]] || string || the zone's title&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/creators|creators]] || stringlist || its creators&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/next|next]] || zoneptr || the next zone&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/rooms|rooms]], [[Manual:DIL Manual/objs|objs]], [[Manual:DIL Manual/npcs|npcs]] || unitptr || a unit of the zone's first room, object or NPC definition (in name order), or null when that one has none in the game&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/roomcount|roomcount]], [[Manual:DIL Manual/objcount|objcount]], [[Manual:DIL Manual/npccount|npccount]] || integer || how many rooms, objects and NPCs the zone defines&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/resetmode|resetmode]], [[Manual:DIL Manual/resettime|resettime]] || integer || its reset settings&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/access|access]], [[Manual:DIL Manual/loadlevel|loadlevel]], [[Manual:DIL Manual/payonly|payonly]] || integer || its access level, the level needed to load its things, and its pay-only setting&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/bonusband|bonusband]] || integer || its treasure band, 0-7, or -1 (BONUS_NOT_APPLICABLE) when it has none&lt;br /&gt;
|-&lt;br /&gt;
| [[Manual:DIL Manual/fname|fname]], [[Manual:DIL Manual/notes|notes]], [[Manual:DIL Manual/help|help]] || string || its file name, notes and help text&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each field's page has the details.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Zones stay for as long as the server runs, so zoneptr variables keep their value through waits. They are not saved with a unit: after loading they are null.&lt;br /&gt;
* A field of a null zoneptr fails; test &amp;lt;code&amp;gt;z == null&amp;lt;/code&amp;gt; first.&lt;br /&gt;
* &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;!=&amp;lt;/code&amp;gt; compare two zoneptrs, or one with &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt;.&lt;br /&gt;
* There is no &amp;lt;code&amp;gt;previous&amp;lt;/code&amp;gt; field, though older pages listed one.&lt;br /&gt;
* A unit's &amp;lt;code&amp;gt;zone&amp;lt;/code&amp;gt; field is the name of the zone it is in, a string: &amp;lt;code&amp;gt;findzone(u.zone)&amp;lt;/code&amp;gt; gives the zoneptr.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin zoneptr get_zone(s : string);&lt;br /&gt;
var&lt;br /&gt;
   zn : zoneptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   zn := zhead();&lt;br /&gt;
   while (zn != null)&lt;br /&gt;
   {&lt;br /&gt;
      if (zn.name == s)&lt;br /&gt;
         break;&lt;br /&gt;
      zn := zn.next;&lt;br /&gt;
   }&lt;br /&gt;
   return (zn);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&lt;br /&gt;
dilbegin do_zinfo(arg : string);&lt;br /&gt;
external&lt;br /&gt;
   zoneptr get_zone(s : string);&lt;br /&gt;
var&lt;br /&gt;
   z : zoneptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   z := get_zone(arg);&lt;br /&gt;
   if (z == null)&lt;br /&gt;
   {&lt;br /&gt;
      sendtext(&amp;quot;No zone called '&amp;quot; + arg + &amp;quot;'.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
      quit;&lt;br /&gt;
   }&lt;br /&gt;
   sendtext(z.name + &amp;quot;: &amp;quot; + z.title + &amp;quot;, &amp;quot; + itoa(z.roomcount) + &amp;quot; rooms.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A function that walks the zone list (as &amp;lt;code&amp;gt;get_zone&amp;lt;/code&amp;gt; in commands.zon), and a command that uses it.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/zhead()|zhead()]]&lt;br /&gt;
* [[Manual:DIL Manual/findzone()|findzone()]]&lt;br /&gt;
* [[Manual:DIL Manual/zone|zone]]&lt;br /&gt;
* [[Manual:DIL Manual/cmdptr|cmdptr]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/bonusband&amp;diff=3289</id>
		<title>Manual:DIL Manual/bonusband</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/bonusband&amp;diff=3289"/>
		<updated>2026-11-20T12:06:48Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: bonusband: a zone's treasure band&lt;/p&gt;
&lt;hr /&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>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/Zone_Source_File/Zone_information_section&amp;diff=3288</id>
		<title>Manual:Zone Manual/Zone Source File/Zone information section</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/Zone_Source_File/Zone_information_section&amp;diff=3288"/>
		<updated>2026-11-20T12:06:24Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: bonusband: the zone's treasure band&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Zone information section ===&lt;br /&gt;
The zone information section is the zone's header: &amp;lt;code&amp;gt;%zone&amp;lt;/code&amp;gt;, the zone's name, and the fields that apply to the whole zone. It is the first section of every zone file and the only one that must be there. It has only a few fields, so it is the easiest section to learn.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Zone section fields&lt;br /&gt;
! Field !! Type !! Default !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;%zone&amp;lt;/code&amp;gt; ''name'' || Symbol || the file name || The zone's name: letters, digits and &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt;, at most 30 characters. It must be the name of the file without &amp;lt;code&amp;gt;.zon&amp;lt;/code&amp;gt;. Without a name vmc uses the file's name. vmc doesn't check that the two match, but the server stops at boot when they don't.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; || String || none || The zone's name for players. The &amp;lt;code&amp;gt;[[Help/Areas|areas]]&amp;lt;/code&amp;gt; command lists the zones whose title has the form &amp;lt;code&amp;gt;&amp;quot;Name@Continent&amp;quot;&amp;lt;/code&amp;gt;, such as &amp;lt;code&amp;gt;&amp;quot;Midgaard City@Mainland&amp;quot;&amp;lt;/code&amp;gt;, with their continent. &amp;lt;code&amp;gt;help area&amp;lt;/code&amp;gt; shows the part before the &amp;lt;code&amp;gt;@&amp;lt;/code&amp;gt;. Leave the &amp;lt;code&amp;gt;@&amp;lt;/code&amp;gt; out, or the title out, for a zone that players shouldn't see in that list, such as a zone of DIL programs.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lifespan&amp;lt;/code&amp;gt; || Number || 60 || Minutes between resets. The server adds up to 3 minutes at random, so that zones don't all reset at once. With &amp;lt;code&amp;gt;lifespan 0&amp;lt;/code&amp;gt; the zone never resets, not even at boot.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;reset&amp;lt;/code&amp;gt; || Number || &amp;lt;code&amp;gt;RESET_NOT&amp;lt;/code&amp;gt; || When the zone resets. Use the names from &amp;lt;code&amp;gt;vme.h&amp;lt;/code&amp;gt;:&lt;br /&gt;
* &amp;lt;code&amp;gt;RESET_NOT&amp;lt;/code&amp;gt;: only once, when the server boots.&lt;br /&gt;
* &amp;lt;code&amp;gt;RESET_IFEMPTY&amp;lt;/code&amp;gt;: every &amp;lt;code&amp;gt;lifespan&amp;lt;/code&amp;gt; minutes, but only when no player is in the zone. If there is one, the server tries again every minute.&lt;br /&gt;
* &amp;lt;code&amp;gt;RESET_ANYHOW&amp;lt;/code&amp;gt;: every &amp;lt;code&amp;gt;lifespan&amp;lt;/code&amp;gt; minutes, even with players in the zone.&lt;br /&gt;
* &amp;lt;code&amp;gt;RESET_NEVER&amp;lt;/code&amp;gt;: never by itself, not even at boot. A god can reset it with &amp;lt;code&amp;gt;[[Wizhelp/Reset|reset]]&amp;lt;/code&amp;gt;, and a DIL program with [[Manual:DIL Manual/zonereset()|zonereset()]]; the holiday zones work this way.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;creators&amp;lt;/code&amp;gt; || String list || none || The players who built the zone, by their character names. They are shown by &amp;lt;code&amp;gt;wstat zone&amp;lt;/code&amp;gt;, and a creator may load the zone's objects and NPCs even below the zone's load level.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;notes&amp;lt;/code&amp;gt; || String || none || Notes for the administrators: what the zone is, how to reach you. Gods see them with &amp;lt;code&amp;gt;wstat zone&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;wizhelp notes&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;help&amp;lt;/code&amp;gt; || String || none || Help for players. A player in the zone sees it with &amp;lt;code&amp;gt;help area&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;weather&amp;lt;/code&amp;gt; || Number || 1000 || The zone's normal air pressure, from 960 to 1040 (vmc refuses other values). The pressure wanders around this value: low pressure brings clouds, rain and thunderstorms, high pressure clear skies. Use a high value for a desert, a low one for a stormy coast.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;bonusband&amp;lt;/code&amp;gt; || Number || &amp;lt;code&amp;gt;BONUS_NOT_APPLICABLE&amp;lt;/code&amp;gt; (-1) || The zone's treasure band: how strong the treasure players earn here should be, from &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. Random treasure dropped by the zone's NPCs is at most this band (and at most the band of the NPC's own level). Towns, guilds and other zones outside the bands leave it out or give &amp;lt;code&amp;gt;BONUS_NOT_APPLICABLE&amp;lt;/code&amp;gt;: no random treasure drops there. vmc refuses other values. DIL reads it as &amp;lt;code&amp;gt;z.bonusband&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The fields may come in any order, and only the name is required. Watch for stray words in the header: a word that isn't a field is taken as the zone's name, so a typing error such as &amp;lt;code&amp;gt;Title&amp;lt;/code&amp;gt; gives a syntax error, and a lone word changes the name without a word from vmc.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
Three legal headers. You be the judge of which tells the most.&lt;br /&gt;
&lt;br /&gt;
Very bad: the zone gets the file's name, and all the defaults.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%zone&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Better than nothing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%zone bug_planet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The way it should be done, in &amp;lt;code&amp;gt;dragon.zon&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%zone dragon&lt;br /&gt;
title &amp;quot;The Dragon Station@Deep Space&amp;quot;&lt;br /&gt;
lifespan 20&lt;br /&gt;
reset RESET_ANYHOW&lt;br /&gt;
creators {&amp;quot;whistler&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
notes&lt;br /&gt;
&amp;quot;The dragon station. If you have any questions, mail Whistler&lt;br /&gt;
in the game.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
help&lt;br /&gt;
&amp;quot;Not sure what could help you now. You are stuck on one of the&lt;br /&gt;
weirdest space stations you have ever seen, and you smell&lt;br /&gt;
burning sulphur.&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each of these, with &amp;lt;code&amp;gt;#include &amp;amp;lt;macros.h&amp;amp;gt;&amp;lt;/code&amp;gt; before it and &amp;lt;code&amp;gt;%end&amp;lt;/code&amp;gt; after it, is a zone that compiles: an empty one. The next chapters fill it with rooms, objects and NPCs.&lt;br /&gt;
&lt;br /&gt;
=== Getting the zone loaded ===&lt;br /&gt;
The server loads only the zones listed in &amp;lt;code&amp;gt;vme/etc/zonelist&amp;lt;/code&amp;gt;, one line per zone, starting with the zone's name. Copy the line of a similar zone and change the name. The server stops reading that file at the first blank line, so add your zone above any blank line, or it is quietly left out. See [[Manual:Zone_Manual/General_Compiler_Information|General Compiler Information]] for compiling and loading.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'&amp;gt;[[Manual:Zone_Manual/Zone_Source_File|Previous: Zone Source File]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'&amp;gt;[[Manual:Zone_Manual/Unit_Building_Blocks|Next: Unit Building Blocks]]&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Wizhelp/Gmtreasure&amp;diff=3287</id>
		<title>Wizhelp/Gmtreasure</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Wizhelp/Gmtreasure&amp;diff=3287"/>
		<updated>2026-11-20T09:50:02Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: gmtreasure makes potions, scrolls, wands, magic staffs, gems and bags&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Gmtreasure =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 gmtreasure [what] easy|fair|hard for &amp;lt;player&amp;gt;      (230)&lt;br /&gt;
 gmtreasure [what] easy|fair|hard level &amp;lt;n&amp;gt;&lt;br /&gt;
 gmtreasure [what] quality &amp;lt;0-7&amp;gt;                    (250)&lt;br /&gt;
&lt;br /&gt;
Makes a random magic item, a reward for a game master's event, in your &lt;br /&gt;
inventory, and tells you what it became.&lt;br /&gt;
&lt;br /&gt;
'''What''' is in words: weapon, or a weapon (dagger, long sword; sword &lt;br /&gt;
is any of the swords); jewelry, or a piece (ring, crown); armour, an &lt;br /&gt;
armour type (cloth, leather, hard leather, chain or mail, plate), a &lt;br /&gt;
piece (feet or boots, hands or gloves, head, arms or sleeves, legs or&lt;br /&gt;
leggings, shield, body) or both (plate boots). Nothing means a weapon,&lt;br /&gt;
jewelry or armour at random. A piece's name that only one armour type&lt;br /&gt;
uses gives that type too: helmet is always plate, hood cloth, cap&lt;br /&gt;
leather; head is a helmet of any type.&lt;br /&gt;
&lt;br /&gt;
It can also be a potion, a scroll, a wand or a magic staff (staff alone&lt;br /&gt;
is the fighting staff, a weapon), with spells of its rung, more power&lt;br /&gt;
and, on a wand or staff, more charges the higher the rung; a gem, worth&lt;br /&gt;
money by its rung; or a bag (from good plus; at excellent plus one in&lt;br /&gt;
four is a bag of holding).&lt;br /&gt;
&lt;br /&gt;
How good it is comes from the player's level (with '''for''') or the &lt;br /&gt;
level you give (with '''level'''; with both, the lower counts), one rung &lt;br /&gt;
for each level restriction treasure carries, so the player can use it:&lt;br /&gt;
&lt;br /&gt;
 level  1-4    average&lt;br /&gt;
 level  5-9    average plus&lt;br /&gt;
 level 10-19   good            (restricted to level 10)&lt;br /&gt;
 level 20-39   good plus       (level 20)&lt;br /&gt;
 level 40-59   excellent       (level 40)&lt;br /&gt;
 level 60-79   excellent plus  (level 60)&lt;br /&gt;
 level 80 up   superior        (level 80)&lt;br /&gt;
&lt;br /&gt;
That is for a '''hard''' quest; '''fair''' is one rung lower and &lt;br /&gt;
'''easy''' two (never below average). With '''for''', the item is also &lt;br /&gt;
made to the player's height.&lt;br /&gt;
&lt;br /&gt;
'''Quality''' picks the rung outright, 0 for average up to 7 for an &lt;br /&gt;
artifact (restricted to level 100), and only administrators (250) may &lt;br /&gt;
use it.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 gmtreasure plate boots fair for asta&lt;br /&gt;
 gmtreasure ring hard level 20&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Wizhelp Gmquest}&lt;br /&gt;
 &amp;gt; {Wizhelp Load}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Use&amp;diff=3286</id>
		<title>Help/Use</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Use&amp;diff=3286"/>
		<updated>2026-11-20T09:47:36Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Link Help Groups&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Use =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 use &amp;lt;staff&amp;gt;&lt;br /&gt;
 use &amp;lt;wand&amp;gt; &amp;lt;target&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
 hold wand&lt;br /&gt;
 use wand rat&lt;br /&gt;
&lt;br /&gt;
Staves and wands are a way to carry magic with you. A staff's magic goes where &lt;br /&gt;
you are: an attack strikes everyone except you and those who follow you, &lt;br /&gt;
while healing, blessing and protection go to you and your group (see &lt;br /&gt;
{Help Groups}). A wand must be used at a single target, and not while you &lt;br /&gt;
are blind. A wand, or a staff's attack, touches other players only when &lt;br /&gt;
both of you have signed the Book of Blood. To use one you must hold &lt;br /&gt;
it in your hand (see {Help Hold}), and you must have practiced the skill wand &lt;br /&gt;
use: how well it works depends on that skill and your brain against the power &lt;br /&gt;
of the magic in it.&lt;br /&gt;
&lt;br /&gt;
The skill wand use is taught by the conjurers and sorcerers from guild &lt;br /&gt;
level 0, the necromancers from level 1 (up to 80%) and the druids from &lt;br /&gt;
level 8. Gustav, in the back room of the inn in Udgaard, &lt;br /&gt;
teaches it to anyone up to 35%. Practising it needs brain 20.&lt;br /&gt;
&lt;br /&gt;
Each use takes a charge, even when nothing happens, and a bad failure &lt;br /&gt;
drains a second one. Each staff and wand holds only so many charges. When they are used up, it is &lt;br /&gt;
&amp;quot;drained of all power&amp;quot; until it is charged again (see {Help Charge Wand} and &lt;br /&gt;
{Help Charge Staff}).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Hold}&lt;br /&gt;
 &amp;gt; {Help Practice}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Use&amp;diff=3285</id>
		<title>Help/Use</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Use&amp;diff=3285"/>
		<updated>2026-11-20T09:47:19Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Staff: attacks spare your followers, healing goes to your group&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Use =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 use &amp;lt;staff&amp;gt;&lt;br /&gt;
 use &amp;lt;wand&amp;gt; &amp;lt;target&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
 hold wand&lt;br /&gt;
 use wand rat&lt;br /&gt;
&lt;br /&gt;
Staves and wands are a way to carry magic with you. A staff's magic goes where &lt;br /&gt;
you are: an attack strikes everyone except you and those who follow you, &lt;br /&gt;
while healing, blessing and protection go to you and your group (see &lt;br /&gt;
{Help Group}). A wand must be used at a single target, and not while you &lt;br /&gt;
are blind. A wand, or a staff's attack, touches other players only when &lt;br /&gt;
both of you have signed the Book of Blood. To use one you must hold &lt;br /&gt;
it in your hand (see {Help Hold}), and you must have practiced the skill wand &lt;br /&gt;
use: how well it works depends on that skill and your brain against the power &lt;br /&gt;
of the magic in it.&lt;br /&gt;
&lt;br /&gt;
The skill wand use is taught by the conjurers and sorcerers from guild &lt;br /&gt;
level 0, the necromancers from level 1 (up to 80%) and the druids from &lt;br /&gt;
level 8. Gustav, in the back room of the inn in Udgaard, &lt;br /&gt;
teaches it to anyone up to 35%. Practising it needs brain 20.&lt;br /&gt;
&lt;br /&gt;
Each use takes a charge, even when nothing happens, and a bad failure &lt;br /&gt;
drains a second one. Each staff and wand holds only so many charges. When they are used up, it is &lt;br /&gt;
&amp;quot;drained of all power&amp;quot; until it is charged again (see {Help Charge Wand} and &lt;br /&gt;
{Help Charge Staff}).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Hold}&lt;br /&gt;
 &amp;gt; {Help Practice}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Use&amp;diff=3284</id>
		<title>Help/Use</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Use&amp;diff=3284"/>
		<updated>2026-11-20T09:14:20Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: A staff's helpful spells go to you and your group&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Use =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 use &amp;lt;staff&amp;gt;&lt;br /&gt;
 use &amp;lt;wand&amp;gt; &amp;lt;target&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
 hold wand&lt;br /&gt;
 use wand rat&lt;br /&gt;
&lt;br /&gt;
Staves and wands are a way to carry magic with you. A staff's magic goes where &lt;br /&gt;
you are: an attack strikes everyone except you and your group, any other &lt;br /&gt;
spell (healing, blessing, protection) goes to you and your group. A wand &lt;br /&gt;
must be used at a single target, and not while you are blind. Other players are touched by them &lt;br /&gt;
only when both of you have signed the Book of Blood. To use one you must hold &lt;br /&gt;
it in your hand (see {Help Hold}), and you must have practiced the skill wand &lt;br /&gt;
use: how well it works depends on that skill and your brain against the power &lt;br /&gt;
of the magic in it.&lt;br /&gt;
&lt;br /&gt;
The skill wand use is taught by the conjurers and sorcerers from guild &lt;br /&gt;
level 0, the necromancers from level 1 (up to 80%) and the druids from &lt;br /&gt;
level 8. Gustav, in the back room of the inn in Udgaard, &lt;br /&gt;
teaches it to anyone up to 35%. Practising it needs brain 20.&lt;br /&gt;
&lt;br /&gt;
Each use takes a charge, even when nothing happens, and a bad failure &lt;br /&gt;
drains a second one. Each staff and wand holds only so many charges. When they are used up, it is &lt;br /&gt;
&amp;quot;drained of all power&amp;quot; until it is charged again (see {Help Charge Wand} and &lt;br /&gt;
{Help Charge Staff}).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Hold}&lt;br /&gt;
 &amp;gt; {Help Practice}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Die&amp;diff=3283</id>
		<title>Help/Die</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Die&amp;diff=3283"/>
		<updated>2026-11-20T08:55:37Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: The corpse wait is for anchored corpses&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Death=&lt;br /&gt;
&lt;br /&gt;
When you die you lose some of your experience points, unless you are level 3 or below. You lose half the experience you have above what your current level needed, but never more than half of what the next level takes and never less than a fifth of it. So it is a good idea to level as soon as you can.&lt;br /&gt;
&lt;br /&gt;
After you die a Valkyrie carries your soul away: to Valhalla if you are good, to the pits of Hel if you are evil, and into the astral planes if you are neutral. After a while (about a minute up to level 5, two minutes up to level 24, three from level 25) you are set down in the temple of Udgaard, or in your clan's home town if your clan has one.&lt;br /&gt;
&lt;br /&gt;
While you wait there, someone carrying your corpse, or standing by it, can cast resurrection or raise dead on you. You still lose the experience points, but it shortens your stay: you come back to life where the caster stands, with everything that was in your corpse.&lt;br /&gt;
&lt;br /&gt;
== Your corpse ==&lt;br /&gt;
&lt;br /&gt;
Your corpse stays where you died, with everything you carried, your coins too. Go back and get your things: get all from corpse (see {Help Get}).&lt;br /&gt;
&lt;br /&gt;
If it isn't there, it may have been moved. Look in the Village Crypt, down from the temple of Udgaard, where corpses can turn up. Giant worker ants roam the lands and carry corpses home to their mound in the hills, and going in after one is dangerous.&lt;br /&gt;
&lt;br /&gt;
Up to level 15 your soul is anchored to your body: a while after you die, your corpse and everything in it come back to the Village Crypt by themselves, wherever it was. From level 16 you need a Soul Anchor for that, and there is a shaman among the gremlins who knows how. An anchored corpse takes longer to come back the higher the level you died at: two minutes at level 1, about four at level 25, nine at level 50, eighteen at level 75 and half an hour from level 100. Without an anchor your corpse stays where it fell.&lt;br /&gt;
&lt;br /&gt;
If you want to see how many times you have died since January 1, 2006 type score. If you have died it will give you the amount of times. If you started playing after January 1 2006 then it will show the amount of deaths since you started.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; {Help Equipment}&lt;br /&gt;
 &amp;gt; {Help Valhalla}&lt;br /&gt;
 &amp;gt; {Help Raise Dead}&lt;br /&gt;
 &amp;gt; {Help Resurrection}&lt;br /&gt;
 &amp;gt; {Help Level}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Die&amp;diff=3282</id>
		<title>Help/Die</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Die&amp;diff=3282"/>
		<updated>2026-11-20T08:50:07Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Anchored corpses come home after 2 to 30 minutes, by level&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Death=&lt;br /&gt;
&lt;br /&gt;
When you die you lose some of your experience points, unless you are level 3 or below. You lose half the experience you have above what your current level needed, but never more than half of what the next level takes and never less than a fifth of it. So it is a good idea to level as soon as you can.&lt;br /&gt;
&lt;br /&gt;
After you die a Valkyrie carries your soul away: to Valhalla if you are good, to the pits of Hel if you are evil, and into the astral planes if you are neutral. After a while (about a minute up to level 5, two minutes up to level 24, three from level 25) you are set down in the temple of Udgaard, or in your clan's home town if your clan has one.&lt;br /&gt;
&lt;br /&gt;
While you wait there, someone carrying your corpse, or standing by it, can cast resurrection or raise dead on you. You still lose the experience points, but it shortens your stay: you come back to life where the caster stands, with everything that was in your corpse.&lt;br /&gt;
&lt;br /&gt;
== Your corpse ==&lt;br /&gt;
&lt;br /&gt;
Your corpse stays where you died, with everything you carried, your coins too. Go back and get your things: get all from corpse (see {Help Get}).&lt;br /&gt;
&lt;br /&gt;
If it isn't there, it may have been moved. Look in the Village Crypt, down from the temple of Udgaard, where corpses can turn up. Giant worker ants roam the lands and carry corpses home to their mound in the hills, and going in after one is dangerous.&lt;br /&gt;
&lt;br /&gt;
Up to level 15 your soul is anchored to your body: a while after you die, your corpse and everything in it come back to the Village Crypt by themselves, wherever it was. How long that takes grows with the level you died at: two minutes at level 1, about four at level 25, nine at level 50, eighteen at level 75 and half an hour from level 100. From level 16 you need a Soul Anchor for that, and there is a shaman among the gremlins who knows how.&lt;br /&gt;
&lt;br /&gt;
If you want to see how many times you have died since January 1, 2006 type score. If you have died it will give you the amount of times. If you started playing after January 1 2006 then it will show the amount of deaths since you started.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; {Help Equipment}&lt;br /&gt;
 &amp;gt; {Help Valhalla}&lt;br /&gt;
 &amp;gt; {Help Raise Dead}&lt;br /&gt;
 &amp;gt; {Help Resurrection}&lt;br /&gt;
 &amp;gt; {Help Level}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Levels&amp;diff=3281</id>
		<title>Help/Levels</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Levels&amp;diff=3281"/>
		<updated>2026-11-19T17:03:26Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: The experience ladder: from level 10 each level costs 250 more (was 400), flat 20100 from level 74&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Level = &lt;br /&gt;
&lt;br /&gt;
Syntax: &lt;br /&gt;
  level [now]&lt;br /&gt;
&lt;br /&gt;
The level command is used to raise a level. This is because the training system keeps track of how many times you practice per level. When you issue the level command you raise a level, gain your ability and skill points, and can start a new (cheap) training session.&lt;br /&gt;
&lt;br /&gt;
Remember that each time you practice a certain skills/spells/abilities on a level it becomes more expensive to practice that same skill again. Until you raise a level. Thus it is to your advantage to raise one level at a time and practice before you raise the next. The '''level now''' command is used to raise a level even if you haven't trained your skills. You probably shouldn't do that.&lt;br /&gt;
&lt;br /&gt;
Experience is usually gained by killing monsters. The experience you gain is relative to your level compared to the monster's level.&lt;br /&gt;
&lt;br /&gt;
You gain no experience when killing players.&lt;br /&gt;
&lt;br /&gt;
If you are good and kill evil you get a bonus. Vice versa but not as large.&lt;br /&gt;
&lt;br /&gt;
You start at level 1 with 500 experience points. The table shows how many more you need for each level, and the total you need to have. Up to level 10 each level costs 400 more than the one before, from there 250 more, and from level 74 on every level costs 20100:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Level !! Exp to level !! Total Required&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 0 || 500&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 900 || 1400&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 1300 || 2700&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 1700 || 4400&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 2100 || 6500&lt;br /&gt;
|-&lt;br /&gt;
| 6 || 2500 || 9000&lt;br /&gt;
|-&lt;br /&gt;
| 7 || 2900 || 11900&lt;br /&gt;
|-&lt;br /&gt;
| 8 || 3300 || 15200&lt;br /&gt;
|-&lt;br /&gt;
| 9 || 3700 || 18900&lt;br /&gt;
|-&lt;br /&gt;
| 10 || 4100 || 23000&lt;br /&gt;
|-&lt;br /&gt;
| 11 || 4500 || 27500&lt;br /&gt;
|-&lt;br /&gt;
| 12 || 4750 || 32250&lt;br /&gt;
|-&lt;br /&gt;
| 13 || 5000 || 37250&lt;br /&gt;
|-&lt;br /&gt;
| 14 || 5250 || 42500&lt;br /&gt;
|-&lt;br /&gt;
| 15 || 5500 || 48000&lt;br /&gt;
|-&lt;br /&gt;
| 16 || 5750 || 53750&lt;br /&gt;
|-&lt;br /&gt;
| 17 || 6000 || 59750&lt;br /&gt;
|-&lt;br /&gt;
| 18 || 6250 || 66000&lt;br /&gt;
|-&lt;br /&gt;
| 19 || 6500 || 72500&lt;br /&gt;
|-&lt;br /&gt;
| 20 || 6750 || 79250&lt;br /&gt;
|-&lt;br /&gt;
| 21 || 7000 || 86250&lt;br /&gt;
|-&lt;br /&gt;
| 22 || 7250 || 93500&lt;br /&gt;
|-&lt;br /&gt;
| 23 || 7500 || 101000&lt;br /&gt;
|-&lt;br /&gt;
| 24 || 7750 || 108750&lt;br /&gt;
|-&lt;br /&gt;
| 25 || 8000 || 116750&lt;br /&gt;
|-&lt;br /&gt;
| 26 || 8250 || 125000&lt;br /&gt;
|-&lt;br /&gt;
| 27 || 8500 || 133500&lt;br /&gt;
|-&lt;br /&gt;
| 28 || 8750 || 142250&lt;br /&gt;
|-&lt;br /&gt;
| 29 || 9000 || 151250&lt;br /&gt;
|-&lt;br /&gt;
| 30 || 9250 || 160500&lt;br /&gt;
|-&lt;br /&gt;
| 31 || 9500 || 170000&lt;br /&gt;
|-&lt;br /&gt;
| 32 || 9750 || 179750&lt;br /&gt;
|-&lt;br /&gt;
| 33 || 10000 || 189750&lt;br /&gt;
|-&lt;br /&gt;
| 34 || 10250 || 200000&lt;br /&gt;
|-&lt;br /&gt;
| 35 || 10500 || 210500&lt;br /&gt;
|-&lt;br /&gt;
| 36 || 10750 || 221250&lt;br /&gt;
|-&lt;br /&gt;
| 37 || 11000 || 232250&lt;br /&gt;
|-&lt;br /&gt;
| 38 || 11250 || 243500&lt;br /&gt;
|-&lt;br /&gt;
| 39 || 11500 || 255000&lt;br /&gt;
|-&lt;br /&gt;
| 40 || 11750 || 266750&lt;br /&gt;
|-&lt;br /&gt;
| 41 || 12000 || 278750&lt;br /&gt;
|-&lt;br /&gt;
| 42 || 12250 || 291000&lt;br /&gt;
|-&lt;br /&gt;
| 43 || 12500 || 303500&lt;br /&gt;
|-&lt;br /&gt;
| 44 || 12750 || 316250&lt;br /&gt;
|-&lt;br /&gt;
| 45 || 13000 || 329250&lt;br /&gt;
|-&lt;br /&gt;
| 46 || 13250 || 342500&lt;br /&gt;
|-&lt;br /&gt;
| 47 || 13500 || 356000&lt;br /&gt;
|-&lt;br /&gt;
| 48 || 13750 || 369750&lt;br /&gt;
|-&lt;br /&gt;
| 49 || 14000 || 383750&lt;br /&gt;
|-&lt;br /&gt;
| 50 || 14250 || 398000&lt;br /&gt;
|-&lt;br /&gt;
| 51 || 14500 || 412500&lt;br /&gt;
|-&lt;br /&gt;
| 52 || 14750 || 427250&lt;br /&gt;
|-&lt;br /&gt;
| 53 || 15000 || 442250&lt;br /&gt;
|-&lt;br /&gt;
| 54 || 15250 || 457500&lt;br /&gt;
|-&lt;br /&gt;
| 55 || 15500 || 473000&lt;br /&gt;
|-&lt;br /&gt;
| 56 || 15750 || 488750&lt;br /&gt;
|-&lt;br /&gt;
| 57 || 16000 || 504750&lt;br /&gt;
|-&lt;br /&gt;
| 58 || 16250 || 521000&lt;br /&gt;
|-&lt;br /&gt;
| 59 || 16500 || 537500&lt;br /&gt;
|-&lt;br /&gt;
| 60 || 16750 || 554250&lt;br /&gt;
|-&lt;br /&gt;
| 61 || 17000 || 571250&lt;br /&gt;
|-&lt;br /&gt;
| 62 || 17250 || 588500&lt;br /&gt;
|-&lt;br /&gt;
| 63 || 17500 || 606000&lt;br /&gt;
|-&lt;br /&gt;
| 64 || 17750 || 623750&lt;br /&gt;
|-&lt;br /&gt;
| 65 || 18000 || 641750&lt;br /&gt;
|-&lt;br /&gt;
| 66 || 18250 || 660000&lt;br /&gt;
|-&lt;br /&gt;
| 67 || 18500 || 678500&lt;br /&gt;
|-&lt;br /&gt;
| 68 || 18750 || 697250&lt;br /&gt;
|-&lt;br /&gt;
| 69 || 19000 || 716250&lt;br /&gt;
|-&lt;br /&gt;
| 70 || 19250 || 735500&lt;br /&gt;
|-&lt;br /&gt;
| 71 || 19500 || 755000&lt;br /&gt;
|-&lt;br /&gt;
| 72 || 19750 || 774750&lt;br /&gt;
|-&lt;br /&gt;
| 73 || 20000 || 794750&lt;br /&gt;
|-&lt;br /&gt;
| 74+ || 20100 each || 794750 + 20100 a level&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Practice}&lt;br /&gt;
 &amp;gt; {Help Abilities}&lt;br /&gt;
 &amp;gt; {Help Spells}&lt;br /&gt;
 &amp;gt; {Help Skills}&lt;br /&gt;
 &amp;gt; {Help Guilds}&lt;br /&gt;
 &amp;gt; {Help Death}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3280</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3280"/>
		<updated>2026-11-19T12:37:37Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Your door is a real door (PR #637)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there for the prices. &lt;br /&gt;
You must be level 10 or higher, and you can own one house.&lt;br /&gt;
&lt;br /&gt;
* In Udgaard, on Hearth Lane west of the market: a cottage (one room) or &lt;br /&gt;
  a house (two rooms). {buy cottage}, {buy house}.&lt;br /&gt;
* In Midgaard: a house (two rooms) or a townhouse (three rooms), on &lt;br /&gt;
  Penny Lane, Beech Row off Park Road, or Chestnut Close off Royal &lt;br /&gt;
  Avenue. The finer the street, the dearer the house. Name the street &lt;br /&gt;
  when you buy: {buy townhouse on chestnut close}.&lt;br /&gt;
* Timber and iron make Udgaard's houses much cheaper: logs you fell &lt;br /&gt;
  ({Help Fell}) and hand to John the Lumberjack, and iron ore you mine &lt;br /&gt;
  ({Help Mine}) for Sam the blacksmith. 10 logs take 90% off a cottage; &lt;br /&gt;
  20 logs and 5 loads of ore 90% off a house in Udgaard; 5 loads of ore &lt;br /&gt;
  90% off a lock. Each piece takes &lt;br /&gt;
  its share, so every one counts, and what a purchase uses is spent. &lt;br /&gt;
  John and Sam tell you your new prices, and {list} at the architect &lt;br /&gt;
  shows them too.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' Your house has a front door like any other: {open door} &lt;br /&gt;
and {close door} (on a street with several doors, name the way: {open &lt;br /&gt;
north door}). A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. You need not fumble with it: walk &lt;br /&gt;
  in or out, and you unlock the door and lock it again behind you. &lt;br /&gt;
  Anyone else finds it locked, and anyone without a key inside is &lt;br /&gt;
  shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
'''Arranging your house.''' Drag a piece of furniture into another room &lt;br /&gt;
of your house and walk along with it: {drag bed north}, {drag chest up}. &lt;br /&gt;
Make the back room your bedroom, or put a chest upstairs. It is heavy &lt;br /&gt;
work, so it costs endurance. Only the owner moves the furniture, it never &lt;br /&gt;
leaves the house, and it stays where you put it through any reboot.&lt;br /&gt;
&lt;br /&gt;
'''A blessed bed.''' Sister Sigrun, a priestess of Odin in Midgaard's &lt;br /&gt;
cathedral, blesses the bed in your house for an offering of 2 platinum: &lt;br /&gt;
{bless bed} in the cathedral's nave. She walks to your house, in Udgaard &lt;br /&gt;
or Midgaard, and carves the rune ᚨ into the headboard. The blessing &lt;br /&gt;
lasts: whoever sleeps or rests in the bed gets back health, mana and &lt;br /&gt;
endurance twice as fast.&lt;br /&gt;
&lt;br /&gt;
'''Selling.''' {sell house} at the architect gives your house back to him, &lt;br /&gt;
for half of what it and its lock cost you; say it twice to seal it. &lt;br /&gt;
Calvin's furniture stays with the house, and whatever is in it comes &lt;br /&gt;
back to you. Then you can buy another.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/delunit()&amp;diff=3279</id>
		<title>Manual:DIL Manual/delunit()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/delunit()&amp;diff=3279"/>
		<updated>2026-11-19T12:35:01Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: store() removes the file itself when there is nothing to save&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= delunit() =&lt;br /&gt;
'''Function''' (integer). Deletes a unit file.&lt;br /&gt;
&lt;br /&gt;
 delunit(filename : string)&lt;br /&gt;
&lt;br /&gt;
Deletes a file written by [[Manual:DIL Manual/store()|store()]]. A file that&lt;br /&gt;
[[Manual:DIL Manual/restore()|restore()]] has loaded is still there, and would be loaded again;&lt;br /&gt;
delete it once it has served, as death.zon does with corpse files and mail.zon with parcels.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| filename || string || The file's name, as given to &amp;lt;code&amp;gt;store()&amp;lt;/code&amp;gt;: letters, digits, &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; only, at most 512 characters.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
integer. As the server is now, FALSE (0) when the file was deleted and TRUE (1) when it wasn't (no such file); the opposite of what the name suggests. FALSE as well for a name with other characters. Don't rely on the value: no zone does, and it may be corrected.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The file is in the &amp;lt;code&amp;gt;units&amp;lt;/code&amp;gt; folder of the zone's DIL file directory (the last column of the zone's line in &amp;lt;code&amp;gt;vme/etc/zonelist&amp;lt;/code&amp;gt;), or of &amp;lt;code&amp;gt;dil_file_dir&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;server.cfg&amp;lt;/code&amp;gt; when the zone has none.&lt;br /&gt;
* Only zones with access level 10 or less (the fourth column of &amp;lt;code&amp;gt;zonelist&amp;lt;/code&amp;gt;) may use it. In other zones the program stops and the zone log says &amp;quot;attempt to violate system access security (delunit)&amp;quot;.&lt;br /&gt;
* A name with other characters (a &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;, a space) is refused with a line in the zone log.&lt;br /&gt;
* &amp;lt;code&amp;gt;store()&amp;lt;/code&amp;gt; removes the file itself when there is nothing to save, so emptying a container and storing it again is enough.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin fetch_parcel(pc : unitptr);&lt;br /&gt;
var&lt;br /&gt;
   fn : string;&lt;br /&gt;
   u : unitptr;&lt;br /&gt;
   i : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   fn := tolower(pc.name) + &amp;quot;.parcel&amp;quot;;&lt;br /&gt;
   u := restore(fn, pc);&lt;br /&gt;
   if (u == null)&lt;br /&gt;
   {&lt;br /&gt;
      sendtext(&amp;quot;There is no parcel for you.&amp;lt;br/&amp;gt;&amp;quot;, pc);&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   i := delunit(fn);               // so it can't be fetched twice&lt;br /&gt;
   act(&amp;quot;You receive $2n.&amp;quot;, A_ALWAYS, pc, u, null, TO_CHAR);&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Gives a player the parcel stored for them (see [[Manual:DIL Manual/store()|store()]]) and deletes the file.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/store()|store()]]&lt;br /&gt;
* [[Manual:DIL Manual/restore()|restore()]]&lt;br /&gt;
* [[Manual:DIL Manual/delstr()|delstr()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/store()&amp;diff=3278</id>
		<title>Manual:DIL Manual/store()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/store()&amp;diff=3278"/>
		<updated>2026-11-19T12:34:43Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: store(): with nothing to save the file is removed (reception.cpp); FALSE never saves u itself&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= store() =&lt;br /&gt;
'''Procedure.''' Saves a unit, or what is inside it, to a file.&lt;br /&gt;
&lt;br /&gt;
 store(u : unitptr, filename : string, container : integer)&lt;br /&gt;
&lt;br /&gt;
Writes the objects and NPCs inside &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt;, with everything inside them, to a file.&lt;br /&gt;
When &amp;lt;code&amp;gt;container&amp;lt;/code&amp;gt; is TRUE, &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; itself is saved too, with its contents.&lt;br /&gt;
[[Manual:DIL Manual/restore()|restore()]] loads the file back, so things can be kept through a&lt;br /&gt;
reboot: a clan chest, a parcel for a player, an arena fighter's belongings.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| u || unitptr || The unit to save.&lt;br /&gt;
|-&lt;br /&gt;
| filename || string || The file's name: letters, digits, &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; only, at most 512 characters.&lt;br /&gt;
|-&lt;br /&gt;
| container || integer || TRUE: save &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; and its contents. FALSE: only the contents, never &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; itself: to keep one unit (a piece of furniture, a chest) through a reboot, use TRUE.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The file goes in the &amp;lt;code&amp;gt;units&amp;lt;/code&amp;gt; folder of the zone's DIL file directory (the last column of the zone's line in &amp;lt;code&amp;gt;vme/etc/zonelist&amp;lt;/code&amp;gt;), or of &amp;lt;code&amp;gt;dil_file_dir&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;server.cfg&amp;lt;/code&amp;gt; when the zone has none. An existing file is replaced.&lt;br /&gt;
* Only zones with access level 10 or less (the fourth column of &amp;lt;code&amp;gt;zonelist&amp;lt;/code&amp;gt;) may use it. In other zones the program stops and the zone log says &amp;quot;attempt to violate system access security (storeall)&amp;quot;. The zone that counts is that of the program's template (the one copied onto the unit), not that of a function it called.&lt;br /&gt;
* A name with other characters (a &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;, a space) is refused with a line in the zone log; nothing is saved.&lt;br /&gt;
* Only objects and NPCs are saved, never players, and not units with &amp;lt;code&amp;gt;UNIT_FL_NOSAVE&amp;lt;/code&amp;gt;. Worn equipment is saved as worn.&lt;br /&gt;
* A room can't be saved, its contents neither: with TRUE the zone log says &amp;quot;attempt to save a container that is either a room or pc&amp;quot;, with FALSE nothing is written. A player's inventory can be saved with FALSE.&lt;br /&gt;
* When there is nothing to save, the file is removed: an old file would bring back what is gone. So &amp;lt;code&amp;gt;store(u, f, FALSE)&amp;lt;/code&amp;gt; with nothing in &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; deletes &amp;lt;code&amp;gt;f&amp;lt;/code&amp;gt;, and a later &amp;lt;code&amp;gt;restore(f, ...)&amp;lt;/code&amp;gt; finds nothing (&amp;lt;code&amp;gt;basic_save_contents&amp;lt;/code&amp;gt; in reception.cpp). [[Manual:DIL Manual/delunit()|delunit()]] removes a file on purpose.&lt;br /&gt;
* The units are only copied: they stay in the game.&lt;br /&gt;
* It writes to disk: don't call it often.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin send_parcel(bag : unitptr, toname : string);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (bag.type != UNIT_ST_OBJ)&lt;br /&gt;
      return;&lt;br /&gt;
   store(bag, tolower(toname) + &amp;quot;.parcel&amp;quot;, TRUE);   // the bag and what is in it&lt;br /&gt;
   destroy(bag);&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Puts a bag and what is in it in storage for another player, who fetches it with &amp;lt;code&amp;gt;restore()&amp;lt;/code&amp;gt; (see [[Manual:DIL Manual/delunit()|delunit()]]).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/restore()|restore()]]&lt;br /&gt;
* [[Manual:DIL Manual/delunit()|delunit()]]&lt;br /&gt;
* [[Manual:DIL Manual/savestr()|savestr()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3277</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3277"/>
		<updated>2026-11-19T11:21:33Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: A blessed bed: Sister Sigrun in Midgaard's cathedral (PR #634)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there for the prices. &lt;br /&gt;
You must be level 10 or higher, and you can own one house.&lt;br /&gt;
&lt;br /&gt;
* In Udgaard, on Hearth Lane west of the market: a cottage (one room) or &lt;br /&gt;
  a house (two rooms). {buy cottage}, {buy house}.&lt;br /&gt;
* In Midgaard: a house (two rooms) or a townhouse (three rooms), on &lt;br /&gt;
  Penny Lane, Beech Row off Park Road, or Chestnut Close off Royal &lt;br /&gt;
  Avenue. The finer the street, the dearer the house. Name the street &lt;br /&gt;
  when you buy: {buy townhouse on chestnut close}.&lt;br /&gt;
* Timber and iron make Udgaard's houses much cheaper: logs you fell &lt;br /&gt;
  ({Help Fell}) and hand to John the Lumberjack, and iron ore you mine &lt;br /&gt;
  ({Help Mine}) for Sam the blacksmith. 10 logs take 90% off a cottage; &lt;br /&gt;
  20 logs and 5 loads of ore 90% off a house in Udgaard; 5 loads of ore &lt;br /&gt;
  90% off a lock. Each piece takes &lt;br /&gt;
  its share, so every one counts, and what a purchase uses is spent. &lt;br /&gt;
  John and Sam tell you your new prices, and {list} at the architect &lt;br /&gt;
  shows them too.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. Anyone else inside is shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
'''Arranging your house.''' Drag a piece of furniture into another room &lt;br /&gt;
of your house and walk along with it: {drag bed north}, {drag chest up}. &lt;br /&gt;
Make the back room your bedroom, or put a chest upstairs. It is heavy &lt;br /&gt;
work, so it costs endurance. Only the owner moves the furniture, it never &lt;br /&gt;
leaves the house, and it stays where you put it through any reboot.&lt;br /&gt;
&lt;br /&gt;
'''A blessed bed.''' Sister Sigrun, a priestess of Odin in Midgaard's &lt;br /&gt;
cathedral, blesses the bed in your house for an offering of 2 platinum: &lt;br /&gt;
{bless bed} in the cathedral's nave. She walks to your house, in Udgaard &lt;br /&gt;
or Midgaard, and carves the rune ᚨ into the headboard. The blessing &lt;br /&gt;
lasts: whoever sleeps or rests in the bed gets back health, mana and &lt;br /&gt;
endurance twice as fast.&lt;br /&gt;
&lt;br /&gt;
'''Selling.''' {sell house} at the architect gives your house back to him, &lt;br /&gt;
for half of what it and its lock cost you; say it twice to seal it. &lt;br /&gt;
Calvin's furniture stays with the house, and whatever is in it comes &lt;br /&gt;
back to you. Then you can buy another.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Drag&amp;diff=3276</id>
		<title>Help/Drag</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Drag&amp;diff=3276"/>
		<updated>2026-11-19T10:38:37Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Furniture in your own house can be dragged (PR #632)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Drag =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
  drag &amp;lt;item | character&amp;gt; &amp;lt;direction&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When dragging something, you can often move more weight than if you carry&lt;br /&gt;
it. However dragging something big around, is a good way to be exhausted.&lt;br /&gt;
This command enables you to drag sleeping or unconscious characters in a&lt;br /&gt;
given direction. To drag another person will take a lot more of your&lt;br /&gt;
endurance than just walking around. With this command, you can drag&lt;br /&gt;
group-members out of a fight, if both you and the character being&lt;br /&gt;
dragged are not involved in the fighting. You can also drag items too&lt;br /&gt;
big for you to carry.&lt;br /&gt;
&lt;br /&gt;
Only things that could be picked up can be dragged: whatever is fixed in&lt;br /&gt;
place stays where it is. The one exception is the furniture in your own&lt;br /&gt;
house, which you can drag between its rooms (see {Help Houses}). The&lt;br /&gt;
heavier it is, the more endurance it costs on top of the walk. You can't&lt;br /&gt;
drag anything through a closed door, or where you would have to climb,&lt;br /&gt;
and you can't drag while you are fighting.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; {Help Sleep}&lt;br /&gt;
  &amp;gt; {Help Group}&lt;br /&gt;
  &amp;gt; {Help Endurance Points}&lt;br /&gt;
  &amp;gt; {Help Movement}&lt;br /&gt;
  &amp;gt; {Help Position}&lt;br /&gt;
  &amp;gt; {Help Houses}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3275</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3275"/>
		<updated>2026-11-19T10:38:27Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Arranging your house: drag furniture between its rooms (PR #632)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there for the prices. &lt;br /&gt;
You must be level 10 or higher, and you can own one house.&lt;br /&gt;
&lt;br /&gt;
* In Udgaard, on Hearth Lane west of the market: a cottage (one room) or &lt;br /&gt;
  a house (two rooms). {buy cottage}, {buy house}.&lt;br /&gt;
* In Midgaard: a house (two rooms) or a townhouse (three rooms), on &lt;br /&gt;
  Penny Lane, Beech Row off Park Road, or Chestnut Close off Royal &lt;br /&gt;
  Avenue. The finer the street, the dearer the house. Name the street &lt;br /&gt;
  when you buy: {buy townhouse on chestnut close}.&lt;br /&gt;
* Timber and iron make Udgaard's houses much cheaper: logs you fell &lt;br /&gt;
  ({Help Fell}) and hand to John the Lumberjack, and iron ore you mine &lt;br /&gt;
  ({Help Mine}) for Sam the blacksmith. 10 logs take 90% off a cottage; &lt;br /&gt;
  20 logs and 5 loads of ore 90% off a house in Udgaard; 5 loads of ore &lt;br /&gt;
  90% off a lock. Each piece takes &lt;br /&gt;
  its share, so every one counts, and what a purchase uses is spent. &lt;br /&gt;
  John and Sam tell you your new prices, and {list} at the architect &lt;br /&gt;
  shows them too.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. Anyone else inside is shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
'''Arranging your house.''' Drag a piece of furniture into another room &lt;br /&gt;
of your house and walk along with it: {drag bed north}, {drag chest up}. &lt;br /&gt;
Make the back room your bedroom, or put a chest upstairs. It is heavy &lt;br /&gt;
work, so it costs endurance. Only the owner moves the furniture, it never &lt;br /&gt;
leaves the house, and it stays where you put it through any reboot.&lt;br /&gt;
&lt;br /&gt;
'''Selling.''' {sell house} at the architect gives your house back to him, &lt;br /&gt;
for half of what it and its lock cost you; say it twice to seal it. &lt;br /&gt;
Calvin's furniture stays with the house, and whatever is in it comes &lt;br /&gt;
back to you. Then you can buy another.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Dexterity&amp;diff=3274</id>
		<title>Help/Dexterity</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Dexterity&amp;diff=3274"/>
		<updated>2026-11-18T07:44:08Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Dagger, stiletto and main gauche lean on dexterity, the rapier too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Dexterity =&lt;br /&gt;
&lt;br /&gt;
Dexterity (DEX) is one of your abilities: how quick and nimble you are. It &lt;br /&gt;
determines:&lt;br /&gt;
&lt;br /&gt;
* '''Your defence in a fight.''' The nimbler you are, the more blows you dodge.&lt;br /&gt;
* '''Your attack with weapons.''' Each weapon draws on two of your abilities: most on two parts strength to one part dexterity, but the dagger, stiletto, main gauche and rapier, the whip, the sickle and the bow, crossbow and sling on two parts dexterity (see {Help Weapons}).&lt;br /&gt;
* '''How many things you can carry''': ten items, and one more for every ten points of dexterity.&lt;br /&gt;
* '''Many skills''': backstab, climbing, sneaking, hiding, stealing, picking locks and others compare your dexterity with your target's or with the task.&lt;br /&gt;
&lt;br /&gt;
Heavy armour slows you down: chain and above all plate lower your dexterity &lt;br /&gt;
in a fight, unless you are strong and well practiced in that armour (see &lt;br /&gt;
{Help Armour}). The spell dexterity raises it for a while.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Abilities}&lt;br /&gt;
 &amp;gt; {Help Spell Dexterity}&lt;br /&gt;
 &amp;gt; {Help Armour}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Weapons&amp;diff=3273</id>
		<title>Help/Weapons</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Weapons&amp;diff=3273"/>
		<updated>2026-11-18T07:43:59Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Dagger, stiletto and main gauche lean on dexterity, the rapier too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Weapons =&lt;br /&gt;
&lt;br /&gt;
Every weapon is of a type, and each type is a skill of its own: long &lt;br /&gt;
sword, dagger, battle axe, spear, and so on. Look at a weapon to see its &lt;br /&gt;
type (&amp;quot;The long sword clearly requires a long sword fighting style&amp;quot;); in &lt;br /&gt;
shops it is shown in brackets in the list.&lt;br /&gt;
&lt;br /&gt;
Your skill in a type decides two things:&lt;br /&gt;
* '''How well you attack with it.''' Practicing a weapon also raises your skill in its family (below) to half as much, and a weapon you haven't practiced is used with that family skill: a long sword fighter can pick up a dagger and do half as well. A weapon from a family you have never practiced is clumsy in your hands, worse than not knowing it at all.&lt;br /&gt;
* '''How well you defend against it.''' Half your skill in the weapon your opponent swings helps you parry it, so knowing a weapon also guards you against it.&lt;br /&gt;
&lt;br /&gt;
Practice weapon skills at your guild (see {Help Practice}); each guild &lt;br /&gt;
teaches its own weapons (see Help Fighter Weapons, Help Thief Weapons and &lt;br /&gt;
the like). {status weapons} shows what you know.&lt;br /&gt;
&lt;br /&gt;
The types fall into six families:&lt;br /&gt;
* '''Axes and hammers''': battle axe, hand axe, war mattock, adze mattock, maul, war hammer, brass knuckles.&lt;br /&gt;
* '''Swords''': great sword, claymore, long sword, broad sword, falchion, scimitar, short sword, rapier, main gauche, stiletto, dagger, sickle.&lt;br /&gt;
* '''Clubs and maces''': club, battle club, mace, battle mace, morning star, flail.&lt;br /&gt;
* '''Polearms''': quarterstaff, spear, javelin, lance, trident, halberd, bardiche, scythe.&lt;br /&gt;
* '''Natural''': fist, kick, elbow and knee, and the claws, bites and stings of beasts.&lt;br /&gt;
* '''Special''': whip, and the bow, crossbow and sling, which shoot (see {Help Shoot}).&lt;br /&gt;
&lt;br /&gt;
Most weapons lean on strength, with some dexterity; the dagger, stiletto, main gauche and &lt;br /&gt;
rapier, the whip, the sickle and the bows and slings lean on dexterity (see {Help Strength} and &lt;br /&gt;
{Help Dexterity}). Two-handed weapons are slower and leave no hand free &lt;br /&gt;
for a shield; light ones strike faster. Each weapon also has a help page &lt;br /&gt;
of its own: help and the weapon's name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Wield}&lt;br /&gt;
 &amp;gt; {Help Practice}&lt;br /&gt;
 &amp;gt; {Help Strength}&lt;br /&gt;
 &amp;gt; {Help Dexterity}&lt;br /&gt;
 &amp;gt; {Help Shoot}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Rapier&amp;diff=3272</id>
		<title>Help/Rapier</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Rapier&amp;diff=3272"/>
		<updated>2026-11-18T07:43:20Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Dagger, stiletto and main gauche lean on dexterity, the rapier too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Rapier =&lt;br /&gt;
&lt;br /&gt;
Type of Weapon: Distanced Hand-to-hand.&lt;br /&gt;
&lt;br /&gt;
The name rapier is thought to have derived from the Spanish espada ropera, “sword of the robes.” The rapier was, essentially, a courtly gentleman’s blade rather than a soldier’s weapon. The rapier was a small-hilted, one-handed weapon with a relatively thin blade. Rapier combat developed to the use of an off-handed dagger and small shields like the buckler, targe, and lantern for parrying the opponent’s weapon. As the art of rapier defencing, or fencing for short, developed, the off-handed weapon and shields disappeared, leading into what we now think of as fencing. Rapier combat was the most involved, most studied form of sword fighting to date in history and it has been called an art form.&lt;br /&gt;
&lt;br /&gt;
This sword has a different feature from the others, as it has no edge. It was useless for slashing or hacking, but it was deadly when thrust. It was great for defense work and often had a hand basket or hand guard to protect the user. When the wielder knows how to use it, this is a very strong and deadly piece of equipment.&lt;br /&gt;
&lt;br /&gt;
== In Valhalla ==&lt;br /&gt;
&lt;br /&gt;
In Valhalla the rapier is a weapon skill of its own, one of the swords (see {Help Weapons}): one-handed, it pierces, it leans on dexterity, with some strength, and it is of middling speed. It is taught by the barbarians from guild level 4, the dark knights from guild level 4, the paladins from guild level 4, the fighters from guild level 4 (up to 70%), the rangers from guild level 4 (up to 70%), the assassins from guild level 4 (up to 80%), the thieves from guild level 8 (up to 80%), the druids from guild level 12 (up to 50%) and the necromancers from guild level 25 (up to 70%). Practising it needs dexterity 30. Outside the guilds it is also taught by the Training Master, in the training room of King Welmar's castle in Midgaard (from level 4, only to those who have done King Welmar's quest), and by Kern the troll, in his cave by the troll town of Galgachus (from level 11, only to members of the Thieves' guild in Udgaard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Weapons}&lt;br /&gt;
 &amp;gt; {Help Weapons List}&lt;br /&gt;
 &amp;gt; {Help Main Gauche}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Maingauche&amp;diff=3271</id>
		<title>Help/Maingauche</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Maingauche&amp;diff=3271"/>
		<updated>2026-11-18T07:43:09Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Dagger, stiletto and main gauche lean on dexterity, the rapier too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Main Gauche =&lt;br /&gt;
&lt;br /&gt;
Type of Weapon: Distanced Hand-to-hand.&lt;br /&gt;
&lt;br /&gt;
The main gauche was a dagger developed in conjunction with the rapier during 16th and 17th century Europe. It is a left-handed dagger used as a defensive weapon to parry and block an opponent’s weapon. The main gauche was double edged with a sturdy crossbar to protect the hand. The knuckleguard in the most highly developed main gauches was triangular in shape and often lavishly engraved. Some versions of the main gauche had devices built into the blades to catch and even break an opponent’s blade (rapier blades were narrow -- a main gauche would likely be snapped in half by a manly medieval European sword). The German main gauche had two blades which sprang away from the center blade at 30 degree angles upon depressing a lever in the guard. These pronged blades could catch and break a blade as well as inflict greater damage to the opponent when the opportunity to strike with the left hand arose.&lt;br /&gt;
&lt;br /&gt;
== In Valhalla ==&lt;br /&gt;
&lt;br /&gt;
In Valhalla the main gauche is a weapon skill of its own, one of the swords (see {Help Weapons}): one-handed, it slashes, it leans on dexterity, with some strength, and it is quick, as light weapons are. It is taught by the assassins from guild level 14, the fighters from guild level 14 (up to 70%), the conjurers from guild level 14 (up to 60%), the necromancers from guild level 40 (up to 90%) and the thieves from guild level 65 (up to 80%). Kern, in his cave deep under the town of Galgachus, also teaches it, to thieves only, from level 65.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Weapons}&lt;br /&gt;
 &amp;gt; {Help Weapons List}&lt;br /&gt;
 &amp;gt; {Help Rapier}&lt;br /&gt;
 &amp;gt; {Help Dagger}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Stiletto&amp;diff=3270</id>
		<title>Help/Stiletto</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Stiletto&amp;diff=3270"/>
		<updated>2026-11-18T07:43:04Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Dagger, stiletto and main gauche lean on dexterity, the rapier too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Stiletto =&lt;br /&gt;
&lt;br /&gt;
Type of Weapon: Distanced Hand-to-hand.&lt;br /&gt;
&lt;br /&gt;
The stiletto was a European thrusting dagger first developed in Italy. The entire weapon was usually forged of a single piece of steel. The blade was long, narrow, and triangular or rectangular sectioned without a cutting edge. Adept at inflicting deep puncture wounds and even piercing light armor, the stiletto was a popular secondary weapon for soldiers and citizens alike. The stiletto was particularly popular among assassins because of its narrow width and ease of concealment.&lt;br /&gt;
&lt;br /&gt;
== In Valhalla ==&lt;br /&gt;
&lt;br /&gt;
In Valhalla the stiletto is a weapon skill of its own, one of the swords (see {Help Weapons}): one-handed, it slashes, it leans on dexterity, with some strength, and it is quick, as light weapons are. The same skill serves the cutlass, which is why a stiletto here slashes rather than stabs. It is taught from guild level 40: by the necromancers (up to 90%), the conjurers (up to 60%), the thieves (up to 80%), the assassins (up to 90%), the barbarians (up to 70%) and the fighters (up to 70%). In the troll town of Galgachus, Okif the Master teaches it to assassins in his dojo, and Kern, a craggy troll, to thieves in his cave, both from level 40.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Weapons}&lt;br /&gt;
 &amp;gt; {Help Weapons List}&lt;br /&gt;
 &amp;gt; {Help Dagger}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Str&amp;diff=3269</id>
		<title>Help/Str</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Str&amp;diff=3269"/>
		<updated>2026-11-18T07:42:59Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Dagger, stiletto and main gauche lean on dexterity, the rapier too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Strength =&lt;br /&gt;
&lt;br /&gt;
Strength (STR) is one of your abilities: how strong you are. It &lt;br /&gt;
determines:&lt;br /&gt;
* How well you fight with most weapons. Each weapon draws on two of your abilities: most, such as the long sword, axes, clubs and maces, on two parts strength to one part dexterity; the dagger, stiletto, main gauche and rapier, the whip, the sickle and the bow, crossbow and sling lean on dexterity instead (see {Help Weapons}).&lt;br /&gt;
* How much weight you can carry: 50, plus half your own weight (at least 50), plus twice your strength.&lt;br /&gt;
* How well you move in armour. Heavy armour slows you down in a fight; strength, and practice in that kind of armour, make up for it, the more so the heavier the armour (see {Help Armor}).&lt;br /&gt;
&lt;br /&gt;
The spell strength raises it for a while (see {Help Spell Strength}).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Abilities}&lt;br /&gt;
 &amp;gt; {Help Dexterity}&lt;br /&gt;
 &amp;gt; {Help Spell Strength}&lt;br /&gt;
 &amp;gt; {Help Armor}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Dagger&amp;diff=3268</id>
		<title>Help/Dagger</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Dagger&amp;diff=3268"/>
		<updated>2026-11-18T07:42:56Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Dagger, stiletto and main gauche lean on dexterity, the rapier too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Dagger =&lt;br /&gt;
&lt;br /&gt;
Average Length: Approx. 6 inches to 1 foot.&lt;br /&gt;
Type of Weapon: Very Close Hand-to-hand.&lt;br /&gt;
Commonly used by: All classes.&lt;br /&gt;
&lt;br /&gt;
These weapons were not widespread in the army, but most of the people in the Middle Ages had one or more. These weapons were small, usually less than a foot long, but generally very sharp. All different designs were used, and they could be either for throwing or hand-to-hand. They were especially popular among merchants and thieves.&lt;br /&gt;
&lt;br /&gt;
== In Valhalla ==&lt;br /&gt;
&lt;br /&gt;
In Valhalla the dagger is a weapon skill of its own, one of the swords (see {Help Weapons}): one-handed, it stabs (a piercing weapon), it leans on dexterity, with some strength, and it is quick, as light weapons are. Nearly every guild teaches it: the assassins, druids and fighters from guild level 0, the conjurers, dark knights, necromancers, paladins, sorcerers and thieves from guild level 0 (up to 80%), the barbarians from guild level 2 and the rangers from guild level 3 (up to 80%). Only the healers don't teach it. Outside the guilds it is also taught by Tue Ironside, in the back room of the inn in Udgaard (anyone, up to 35%), and Kern, a craggy troll who hides in his cave in Galgachus (members of the Thieves' guild only).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Weapons}&lt;br /&gt;
 &amp;gt; {Help Weapons List}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3267</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3267"/>
		<updated>2026-11-17T10:04:06Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Houses and townhouses in Midgaard: Penny Lane, Beech Row, Chestnut Close&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there for the prices. &lt;br /&gt;
You must be level 10 or higher, and you can own one house.&lt;br /&gt;
&lt;br /&gt;
* In Udgaard, on Hearth Lane west of the market: a cottage (one room) or &lt;br /&gt;
  a house (two rooms). {buy cottage}, {buy house}.&lt;br /&gt;
* In Midgaard: a house (two rooms) or a townhouse (three rooms), on &lt;br /&gt;
  Penny Lane, Beech Row off Park Road, or Chestnut Close off Royal &lt;br /&gt;
  Avenue. The finer the street, the dearer the house. Name the street &lt;br /&gt;
  when you buy: {buy townhouse on chestnut close}.&lt;br /&gt;
* Timber and iron make Udgaard's houses much cheaper: logs you fell &lt;br /&gt;
  ({Help Fell}) and hand to John the Lumberjack, and iron ore you mine &lt;br /&gt;
  ({Help Mine}) for Sam the blacksmith. 10 logs take 90% off a cottage; &lt;br /&gt;
  20 logs and 5 loads of ore 90% off a house in Udgaard; 5 loads of ore &lt;br /&gt;
  90% off a lock. Each piece takes &lt;br /&gt;
  its share, so every one counts, and what a purchase uses is spent. &lt;br /&gt;
  John and Sam tell you your new prices, and {list} at the architect &lt;br /&gt;
  shows them too.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. Anyone else inside is shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
'''Selling.''' {sell house} at the architect gives your house back to him, &lt;br /&gt;
for half of what it and its lock cost you; say it twice to seal it. &lt;br /&gt;
Calvin's furniture stays with the house, and whatever is in it comes &lt;br /&gt;
back to you. Then you can buy another.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3266</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3266"/>
		<updated>2026-11-17T09:54:30Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Selling a house back to the architect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world. Houses stand on Hearth Lane, west &lt;br /&gt;
of the Udgaard market, and more lanes will follow.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there.&lt;br /&gt;
&lt;br /&gt;
* A cottage has one room, a house two. You must be level 10 or higher, &lt;br /&gt;
  and you can own one house.&lt;br /&gt;
* Timber and iron make it much cheaper: logs you fell ({Help Fell}) and &lt;br /&gt;
  hand to John the Lumberjack, and iron ore you mine ({Help Mine}) for &lt;br /&gt;
  Sam the blacksmith. 10 logs take 90% off a cottage; 20 logs and 5 loads &lt;br /&gt;
  of ore 90% off a house; 5 loads of ore 90% off a lock. Each piece takes &lt;br /&gt;
  its share, so every one counts, and what a purchase uses is spent. &lt;br /&gt;
  John and Sam tell you your new prices, and {list} at the architect &lt;br /&gt;
  shows them too.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. Anyone else inside is shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
'''Selling.''' {sell house} at the architect gives your house back to him, &lt;br /&gt;
for half of what it and its lock cost you; say it twice to seal it. &lt;br /&gt;
Calvin's furniture stays with the house, and whatever is in it comes &lt;br /&gt;
back to you. Then you can buy another.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3265</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3265"/>
		<updated>2026-11-17T09:45:25Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Anyone may buy on Hearth Lane, whatever their hometown&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world. Houses stand on Hearth Lane, west &lt;br /&gt;
of the Udgaard market, and more lanes will follow.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there.&lt;br /&gt;
&lt;br /&gt;
* A cottage has one room, a house two. You must be level 10 or higher, &lt;br /&gt;
  and you can own one house.&lt;br /&gt;
* Timber and iron make it much cheaper: logs you fell ({Help Fell}) and &lt;br /&gt;
  hand to John the Lumberjack, and iron ore you mine ({Help Mine}) for &lt;br /&gt;
  Sam the blacksmith. 10 logs take 90% off a cottage; 20 logs and 5 loads &lt;br /&gt;
  of ore 90% off a house; 5 loads of ore 90% off a lock. Each piece takes &lt;br /&gt;
  its share, so every one counts, and what a purchase uses is spent. &lt;br /&gt;
  John and Sam tell you your new prices, and {list} at the architect &lt;br /&gt;
  shows them too.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. Anyone else inside is shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Mine&amp;diff=3264</id>
		<title>Help/Mine</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Mine&amp;diff=3264"/>
		<updated>2026-11-17T09:35:35Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Ore counts toward a house too&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Mine =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 mine&lt;br /&gt;
 mine for &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where a seam of iron ore runs through the rock, with a miner's pick &lt;br /&gt;
wielded, you break loose a load of iron ore. There are veins in the &lt;br /&gt;
crystal cavern behind the hobgoblin waterfall and in the hewn passage &lt;br /&gt;
next to it. A vein gives ore once every ten minutes. Mining takes &lt;br /&gt;
endurance, and at low levels it gives a little experience.&lt;br /&gt;
&lt;br /&gt;
Sam the blacksmith in Midgaard sells miner's picks ({buy pick}) and takes &lt;br /&gt;
the ore: give it to him, drop it by him, or unload a cart by him. Each &lt;br /&gt;
load counts for whoever mined it, whoever brings it in, and the &lt;br /&gt;
architect in Midgaard takes it off the price of a lock or a house &lt;br /&gt;
({Help Houses}). &lt;br /&gt;
The first load you hand in solves the quest Iron for a Lock.&lt;br /&gt;
&lt;br /&gt;
{mine for &amp;lt;name&amp;gt;} mines for a friend: that load counts for them. Ore is &lt;br /&gt;
only taken while whoever mined it is in the game.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Houses}&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3263</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3263"/>
		<updated>2026-11-17T09:35:32Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Ore counts toward a house too; John and Sam tell your new prices&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world. Houses stand on Hearth Lane, west &lt;br /&gt;
of the Udgaard market, and more lanes will follow.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there.&lt;br /&gt;
&lt;br /&gt;
* A cottage has one room, a house two. You must be level 10 or higher, &lt;br /&gt;
  and Hearth Lane is for the folk of Udgaard: those whose hometown is &lt;br /&gt;
  Udgaard. You can own one house.&lt;br /&gt;
* Timber and iron make it much cheaper: logs you fell ({Help Fell}) and &lt;br /&gt;
  hand to John the Lumberjack, and iron ore you mine ({Help Mine}) for &lt;br /&gt;
  Sam the blacksmith. 10 logs take 90% off a cottage; 20 logs and 5 loads &lt;br /&gt;
  of ore 90% off a house; 5 loads of ore 90% off a lock. Each piece takes &lt;br /&gt;
  its share, so every one counts, and what a purchase uses is spent. &lt;br /&gt;
  John and Sam tell you your new prices, and {list} at the architect &lt;br /&gt;
  shows them too.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. Anyone else inside is shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Cart&amp;diff=3262</id>
		<title>Help/Cart</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Cart&amp;diff=3262"/>
		<updated>2026-11-17T09:23:43Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: One cart at a time: hiring another fetches the old one&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Cart =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 hire cart&lt;br /&gt;
 put &amp;lt;log or ore&amp;gt; in cart&lt;br /&gt;
 unload cart&lt;br /&gt;
 hitch cart to horse&lt;br /&gt;
 unhitch cart&lt;br /&gt;
&lt;br /&gt;
Calvin the carpenter on Colosseum Square in Midgaard hires out a cart with &lt;br /&gt;
a draught horse ({hire cart}). They wait for you on the square, hitched, &lt;br /&gt;
and stay yours, wherever you leave them, until the next reboot brings them &lt;br /&gt;
back to him. You have one at a time: hire another, and his lad fetches &lt;br /&gt;
the old pair, leaving whatever was in the cart where it stood. Only you &lt;br /&gt;
can mount the horse: {mount horse}, and ride where you like; the cart &lt;br /&gt;
follows.&lt;br /&gt;
&lt;br /&gt;
A cart holds a dozen logs or more loads of ore. {put log in cart} heaves &lt;br /&gt;
up a log or load lying on the ground, which takes some endurance. By &lt;br /&gt;
John the Lumberjack or Sam the blacksmith, {unload cart} hands them &lt;br /&gt;
everything in it, even from the saddle; each piece counts for whoever &lt;br /&gt;
felled or mined it.&lt;br /&gt;
&lt;br /&gt;
Friends can climb in ({enter cart}) and ride along, though they take up &lt;br /&gt;
room the cargo could have had.&lt;br /&gt;
&lt;br /&gt;
{unhitch cart} leaves the cart standing; {hitch cart to horse} hitches it &lt;br /&gt;
again, to the draught horse or another horse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Houses}&lt;br /&gt;
 &amp;gt; {Help Mount}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Cart&amp;diff=3261</id>
		<title>Help/Cart</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Cart&amp;diff=3261"/>
		<updated>2026-11-17T09:19:37Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Friends can ride along in a cart&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Cart =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 hire cart&lt;br /&gt;
 put &amp;lt;log or ore&amp;gt; in cart&lt;br /&gt;
 unload cart&lt;br /&gt;
 hitch cart to horse&lt;br /&gt;
 unhitch cart&lt;br /&gt;
&lt;br /&gt;
Calvin the carpenter on Colosseum Square in Midgaard hires out a cart with &lt;br /&gt;
a draught horse ({hire cart}). They wait for you on the square, hitched, &lt;br /&gt;
until the next reboot brings them back to him. Only you can mount the &lt;br /&gt;
horse: {mount horse}, and ride where you like; the cart follows.&lt;br /&gt;
&lt;br /&gt;
A cart holds a dozen logs or more loads of ore. {put log in cart} heaves &lt;br /&gt;
up a log or load lying on the ground, which takes some endurance. By &lt;br /&gt;
John the Lumberjack or Sam the blacksmith, {unload cart} hands them &lt;br /&gt;
everything in it, even from the saddle; each piece counts for whoever &lt;br /&gt;
felled or mined it.&lt;br /&gt;
&lt;br /&gt;
Friends can climb in ({enter cart}) and ride along, though they take up &lt;br /&gt;
room the cargo could have had.&lt;br /&gt;
&lt;br /&gt;
{unhitch cart} leaves the cart standing; {hitch cart to horse} hitches it &lt;br /&gt;
again, to the draught horse or another horse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Houses}&lt;br /&gt;
 &amp;gt; {Help Mount}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Cart&amp;diff=3260</id>
		<title>Help/Cart</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Cart&amp;diff=3260"/>
		<updated>2026-11-17T09:12:11Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: New: Cart, for the house building materials (DikuMUD3 #617)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Cart =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 hire cart&lt;br /&gt;
 put &amp;lt;log or ore&amp;gt; in cart&lt;br /&gt;
 unload cart&lt;br /&gt;
 hitch cart to horse&lt;br /&gt;
 unhitch cart&lt;br /&gt;
&lt;br /&gt;
Calvin the carpenter on Colosseum Square in Midgaard hires out a cart with &lt;br /&gt;
a draught horse ({hire cart}). They wait for you on the square, hitched, &lt;br /&gt;
until the next reboot brings them back to him. Only you can mount the &lt;br /&gt;
horse: {mount horse}, and ride where you like; the cart follows.&lt;br /&gt;
&lt;br /&gt;
A cart holds a dozen logs or more loads of ore. {put log in cart} heaves &lt;br /&gt;
up a log or load lying on the ground, which takes some endurance. By &lt;br /&gt;
John the Lumberjack or Sam the blacksmith, {unload cart} hands them &lt;br /&gt;
everything in it, even from the saddle; each piece counts for whoever &lt;br /&gt;
felled or mined it.&lt;br /&gt;
&lt;br /&gt;
{unhitch cart} leaves the cart standing; {hitch cart to horse} hitches it &lt;br /&gt;
again, to the draught horse or another horse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Houses}&lt;br /&gt;
 &amp;gt; {Help Mount}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Mine&amp;diff=3259</id>
		<title>Help/Mine</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Mine&amp;diff=3259"/>
		<updated>2026-11-17T09:12:08Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: New: Mine, for the house building materials (DikuMUD3 #617)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Mine =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 mine&lt;br /&gt;
 mine for &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where a seam of iron ore runs through the rock, with a miner's pick &lt;br /&gt;
wielded, you break loose a load of iron ore. There are veins in the &lt;br /&gt;
crystal cavern behind the hobgoblin waterfall and in the hewn passage &lt;br /&gt;
next to it. A vein gives ore once every ten minutes. Mining takes &lt;br /&gt;
endurance, and at low levels it gives a little experience.&lt;br /&gt;
&lt;br /&gt;
Sam the blacksmith in Midgaard sells miner's picks ({buy pick}) and takes &lt;br /&gt;
the ore: give it to him, drop it by him, or unload a cart by him. Each &lt;br /&gt;
load counts for whoever mined it, whoever brings it in, and the &lt;br /&gt;
architect in Midgaard takes it off the price of a lock ({Help Houses}). &lt;br /&gt;
The first load you hand in solves the quest Iron for a Lock.&lt;br /&gt;
&lt;br /&gt;
{mine for &amp;lt;name&amp;gt;} mines for a friend: that load counts for them. Ore is &lt;br /&gt;
only taken while whoever mined it is in the game.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Houses}&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Fell&amp;diff=3258</id>
		<title>Help/Fell</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Fell&amp;diff=3258"/>
		<updated>2026-11-17T09:12:06Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: New: Fell, for the house building materials (DikuMUD3 #617)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Fell =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 fell&lt;br /&gt;
 fell tree for &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In a forest, with an axe wielded, you fell a tree and trim it into a log. &lt;br /&gt;
Each stretch of forest gives one tree an hour; then try deeper in the &lt;br /&gt;
forest. Felling takes endurance, and at low levels it gives a little &lt;br /&gt;
experience.&lt;br /&gt;
&lt;br /&gt;
A log is heavy: the strong carry one, others {drag} it, and a cart &lt;br /&gt;
carries a dozen ({Help Cart}). John the Lumberjack in Haon-Dor, west of &lt;br /&gt;
Udgaard, takes logs for the houses on Hearth Lane: give one to him, drag &lt;br /&gt;
it to where he stands, or unload a cart by him. Each log counts for &lt;br /&gt;
whoever felled it, whoever brings it in, and the architect in Midgaard &lt;br /&gt;
takes them off the price of a house ({Help Houses}). The first log you &lt;br /&gt;
hand in solves the quest Timber for a House.&lt;br /&gt;
&lt;br /&gt;
{fell tree for &amp;lt;name&amp;gt;} fells a tree for a friend: that log counts for &lt;br /&gt;
them. A log is only taken while whoever felled it is in the game.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Houses}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;br /&gt;
 &amp;gt; {Help Drag}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3257</id>
		<title>Help/Houses</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Houses&amp;diff=3257"/>
		<updated>2026-11-17T09:12:03Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: Houses can be bought now (architect, Hearth Lane), with locks, keys and furniture: DikuMUD3 #616/#617&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Houses =&lt;br /&gt;
&lt;br /&gt;
A house of your own in Valhalla: a place to keep your things through any &lt;br /&gt;
storm, to rest, and to show the world. Houses stand on Hearth Lane, west &lt;br /&gt;
of the Udgaard market, and more lanes will follow.&lt;br /&gt;
&lt;br /&gt;
'''Buying a house.''' Haldor the architect, in the Hall of the Citizens &lt;br /&gt;
in Midgaard's Town Hall, sells them: type {list} there.&lt;br /&gt;
&lt;br /&gt;
* A cottage has one room, a house two. You must be level 10 or higher, &lt;br /&gt;
  and Hearth Lane is for the folk of Udgaard: those whose hometown is &lt;br /&gt;
  Udgaard. You can own one house.&lt;br /&gt;
* Timber and iron make it much cheaper: logs you fell ({Help Fell}) and &lt;br /&gt;
  hand to John the Lumberjack take up to 90% off a house, and iron ore &lt;br /&gt;
  you mine ({Help Mine}) for Sam the blacksmith up to 90% off a lock. &lt;br /&gt;
  {list} at the architect shows what you have handed in and what that &lt;br /&gt;
  makes your prices.&lt;br /&gt;
&lt;br /&gt;
'''Your door.''' A new house is open to anyone: having one is something &lt;br /&gt;
in itself. Buy a lock from the architect ({buy lock}) to keep others &lt;br /&gt;
out. Inside, the owner can then:&lt;br /&gt;
&lt;br /&gt;
* {lock door} and {unlock door}: while it is locked, only you, those &lt;br /&gt;
  you gave a key and the gods come in. Anyone else inside is shown out.&lt;br /&gt;
* {invite &amp;lt;name&amp;gt;} gives a friend a key, {uninvite &amp;lt;name&amp;gt;} takes it back.&lt;br /&gt;
&lt;br /&gt;
{house} shows whose house you are in, its condition, and whether the &lt;br /&gt;
door is locked; the owner also sees who has a key.&lt;br /&gt;
&lt;br /&gt;
'''Furniture.''' Calvin the carpenter on Colosseum Square in Midgaard &lt;br /&gt;
makes beds and chests and has them carried into your house: {list} in &lt;br /&gt;
his shop.&lt;br /&gt;
&lt;br /&gt;
* A bed you lie in: {enter bed}, {sleep}, {leave}.&lt;br /&gt;
* Chests for 10, 15 or 25 things (what is in a bag counts too). For &lt;br /&gt;
  half a chest's price he fits it with a lock ({buy lock for small &lt;br /&gt;
  chest}): then only you can open it, door locked or not. Closing it &lt;br /&gt;
  locks it, and it locks itself when you leave it open and go.&lt;br /&gt;
&lt;br /&gt;
What is in the chests is kept through any reboot. Things left lying on &lt;br /&gt;
the floor are not.&lt;br /&gt;
&lt;br /&gt;
Special houses, made to your own plan, can still be asked of the gods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also:&lt;br /&gt;
 &amp;gt; {Help Fell}&lt;br /&gt;
 &amp;gt; {Help Mine}&lt;br /&gt;
 &amp;gt; {Help Cart}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/wait()&amp;diff=3256</id>
		<title>Manual:DIL Manual/wait()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/wait()&amp;diff=3256"/>
		<updated>2026-11-15T07:21:17Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= wait() =&lt;br /&gt;
'''Procedure.''' Stops the program until an event of the given kinds comes, for which a condition holds.&lt;br /&gt;
&lt;br /&gt;
 wait(events : integer, condition)&lt;br /&gt;
&lt;br /&gt;
Every program spends most of its life here. &amp;lt;code&amp;gt;wait()&amp;lt;/code&amp;gt; always stops the program; it&lt;br /&gt;
goes on only with an event of one of the kinds in &amp;lt;code&amp;gt;events&amp;lt;/code&amp;gt; (the &amp;lt;code&amp;gt;SFB_&amp;lt;/code&amp;gt;&lt;br /&gt;
values in vme.h, joined with &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;) for which &amp;lt;code&amp;gt;condition&amp;lt;/code&amp;gt; is true. At each&lt;br /&gt;
such event the program wakes, the condition is worked out again, and if it is false the program&lt;br /&gt;
goes back to waiting. The built-ins &amp;lt;code&amp;gt;activator&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;medium&amp;lt;/code&amp;gt;,&lt;br /&gt;
&amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;power&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;argument&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;command()&amp;lt;/code&amp;gt;&lt;br /&gt;
describe the event, so the condition can test them.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Value !! Event&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_CMD&amp;lt;/code&amp;gt; || A command typed by someone near the unit, before it runs (it can still be blocked)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_DONE&amp;lt;/code&amp;gt; || A command that has been carried out&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_PRE&amp;lt;/code&amp;gt; || The step before some actions, e.g. a spell about to hit&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_TICK&amp;lt;/code&amp;gt; || The unit's heartbeat&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_RANTIME&amp;lt;/code&amp;gt; || With &amp;lt;code&amp;gt;SFB_TICK&amp;lt;/code&amp;gt;: the tick comes at a random time around the heartbeat&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_MSG&amp;lt;/code&amp;gt; || A message from another program (&amp;lt;code&amp;gt;send&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sendto&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sendtoall&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sendtoalldil&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_COM&amp;lt;/code&amp;gt; || A combat round&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_DEAD&amp;lt;/code&amp;gt; || A death nearby&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_EDIT&amp;lt;/code&amp;gt; || The end of an editor started with &amp;lt;code&amp;gt;beginedit()&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SFB_PROMPT&amp;lt;/code&amp;gt; || The player's prompt being made&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pause;&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;wait(SFB_TICK | SFB_RANTIME, TRUE)&amp;lt;/code&amp;gt;, a macro in wmacros.h.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| events || integer || The kinds of event to wake for.&lt;br /&gt;
|-&lt;br /&gt;
| condition || any || True to go on: a non-zero integer, a unit or string that isn't null, a list that isn't empty.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* A program read from a file (a room's or object's program when the zone boots, a unit brought back with [[Manual:DIL Manual/restore()|restore()]], a &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; program on a player) doesn't run until the first event reaches it, and that event only takes it as far as its &amp;lt;code&amp;gt;wait()&amp;lt;/code&amp;gt;: the event itself is lost. A room program waiting for a command misses the first one after a boot. Programs on units that &amp;lt;code&amp;gt;%reset&amp;lt;/code&amp;gt; loads start at once and aren't affected.&lt;br /&gt;
* It waits even if the condition is true already.&lt;br /&gt;
* Every event of the given kinds wakes the program, even one the condition then turns down. '''At every wake each &amp;lt;code&amp;gt;unitptr&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;extraptr&amp;lt;/code&amp;gt; variable that isn't secured becomes null.''' Save what you need from &amp;lt;code&amp;gt;activator&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;argument&amp;lt;/code&amp;gt; and the rest right after the &amp;lt;code&amp;gt;wait&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;secure()&amp;lt;/code&amp;gt; a unit you want to keep.&lt;br /&gt;
* Other bits are dropped: &amp;lt;code&amp;gt;wait(SFB_SAVE, ...)&amp;lt;/code&amp;gt; never wakes. Use &amp;lt;code&amp;gt;interrupt()&amp;lt;/code&amp;gt; for such events.&lt;br /&gt;
* The program also wakes for the events of its &amp;lt;code&amp;gt;interrupt()&amp;lt;/code&amp;gt;s, which may jump elsewhere.&lt;br /&gt;
* A condition that fails (a field of a null unit) counts as false. A text field or list entry tested on its own (&amp;lt;code&amp;gt;wait(SFB_TICK, self.title)&amp;lt;/code&amp;gt;) counts the wrong way round, as true when the text is empty: compare with &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; instead.&lt;br /&gt;
* A program that runs on without a &amp;lt;code&amp;gt;wait&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;pause&amp;lt;/code&amp;gt; for about 52000 instructions is stopped (&amp;quot;had endless loop&amp;quot; in the zone log).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin greeter();&lt;br /&gt;
var&lt;br /&gt;
   pc : unitptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   heartbeat := PULSE_SEC * 3;&lt;br /&gt;
   :start:&lt;br /&gt;
   wait(SFB_CMD, command(&amp;quot;say&amp;quot;) and (activator.type == UNIT_ST_PC) and&lt;br /&gt;
                 (&amp;quot;hello&amp;quot; in argument));&lt;br /&gt;
   pc := activator;&lt;br /&gt;
   secure(pc, start);&lt;br /&gt;
   pause;                    // let the player's words show first&lt;br /&gt;
   exec(&amp;quot;say Welcome, &amp;quot; + pc.name + &amp;quot;!&amp;quot;, self);&lt;br /&gt;
   unsecure(pc);&lt;br /&gt;
   goto start;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
An NPC that welcomes a player who says hello.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/interrupt()|interrupt()]]&lt;br /&gt;
* [[Manual:DIL Manual/secure()|secure()]]&lt;br /&gt;
* [[Manual:DIL Manual/command()|command()]]&lt;br /&gt;
* [[Manual:DIL Manual/heartbeat|heartbeat]]&lt;br /&gt;
* [[Manual:DIL Manual/activator|activator]]&lt;br /&gt;
* [[Manual:DIL Manual/argument|argument]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/strcmp()&amp;diff=3255</id>
		<title>Manual:DIL Manual/strcmp()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/strcmp()&amp;diff=3255"/>
		<updated>2026-11-15T07:21:14Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= strcmp() =&lt;br /&gt;
'''Function''' (integer). Compares two strings, minding upper and lower case.&lt;br /&gt;
&lt;br /&gt;
 strcmp(s1 : string, s2 : string)&lt;br /&gt;
&lt;br /&gt;
DIL's &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;!=&amp;lt;/code&amp;gt; on strings ignore case (&amp;lt;code&amp;gt;&amp;quot;Sofa&amp;quot; == &amp;quot;sofa&amp;quot;&amp;lt;/code&amp;gt; is&lt;br /&gt;
true). Use strcmp() when case matters, as with passwords: it compares the two strings byte by&lt;br /&gt;
byte, as the C function of that name does.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| s1 || string || The first string.&lt;br /&gt;
|-&lt;br /&gt;
| s2 || string || The second string.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Integer: 0 when the strings are the same, less than 0 when &amp;lt;code&amp;gt;s1&amp;lt;/code&amp;gt; sorts before&lt;br /&gt;
&amp;lt;code&amp;gt;s2&amp;lt;/code&amp;gt;, more than 0 when after. Test the sign only: the value need not be -1 or 1.&lt;br /&gt;
&lt;br /&gt;
A string variable that was never set counts as &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;. It fails when an argument is a&lt;br /&gt;
failed value.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Capitals sort before small letters: &amp;lt;code&amp;gt;strcmp(&amp;quot;Z&amp;quot;, &amp;quot;a&amp;quot;)&amp;lt;/code&amp;gt; is less than 0.&lt;br /&gt;
* All of DIL's string comparisons ignore case: &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;!=&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;amp;lt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;amp;lt;=&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;amp;gt;=&amp;lt;/code&amp;gt;. Only strcmp() and strncmp() mind it.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer same_pwd(first : string, second : string);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   return (strcmp(first, second) == 0);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether a password was typed the same way twice, capitals included, as the password&lt;br /&gt;
change in commands.zon checks with &amp;lt;code&amp;gt;excmdstr_case&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/strncmp()|strncmp()]]&lt;br /&gt;
* [[Manual:DIL Manual/excmdstr case|excmdstr_case]]&lt;br /&gt;
* [[Manual:DIL Manual/tolower()|tolower()]]&lt;br /&gt;
* [[Manual:DIL Manual/Operators|Operators]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/spellinfo()&amp;diff=3254</id>
		<title>Manual:DIL Manual/spellinfo()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/spellinfo()&amp;diff=3254"/>
		<updated>2026-11-15T07:21:10Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= spellinfo() =&lt;br /&gt;
'''Function''' (string). Returns a spell's name and puts its properties in seven integer variables.&lt;br /&gt;
&lt;br /&gt;
 spellinfo(i : integer, realm : integer, sphere : integer, mana : integer,&lt;br /&gt;
           offensive : integer, resist : integer, media : integer, targets : integer)&lt;br /&gt;
&lt;br /&gt;
Returns the name of spell number &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; and sets the other seven arguments from the&lt;br /&gt;
spell's entry in &amp;lt;code&amp;gt;spells.def&amp;lt;/code&amp;gt;. Arguments 2 to 8 must be integer variables (or&lt;br /&gt;
elements of an integerlist variable): vmc refuses constants and expressions. When you only want&lt;br /&gt;
the name, give one variable seven times, as &amp;lt;code&amp;gt;spellinfo(i, t, t, t, t, t, t, t)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| i || integer || The spell number, 0 to &amp;lt;code&amp;gt;SPL_TREE_MAX&amp;lt;/code&amp;gt; - 1 (499). [[Manual:DIL Manual/spellindex()|spellindex()]] finds it from a name.&lt;br /&gt;
|-&lt;br /&gt;
| realm || integer variable || Set to &amp;lt;code&amp;gt;ABIL_MAG&amp;lt;/code&amp;gt; (0) or &amp;lt;code&amp;gt;ABIL_DIV&amp;lt;/code&amp;gt; (1): the ability the spell is cast with.&lt;br /&gt;
|-&lt;br /&gt;
| sphere || integer variable || Set to the sphere the spell belongs to, &amp;lt;code&amp;gt;SPL_DIVINE&amp;lt;/code&amp;gt; (1) to &amp;lt;code&amp;gt;SPL_EXTERNAL&amp;lt;/code&amp;gt; (11). That is a spell number too, so &amp;lt;code&amp;gt;spellinfo()&amp;lt;/code&amp;gt; on it gives the sphere's name.&lt;br /&gt;
|-&lt;br /&gt;
| mana || integer variable || Set to the mana the spell costs.&lt;br /&gt;
|-&lt;br /&gt;
| offensive || integer variable || Set to non-zero for an attack spell, 0 otherwise.&lt;br /&gt;
|-&lt;br /&gt;
| resist || integer variable || Set to &amp;lt;code&amp;gt;SPLCST_CHECK&amp;lt;/code&amp;gt; (1), &amp;lt;code&amp;gt;SPLCST_RESIST&amp;lt;/code&amp;gt; (2) or &amp;lt;code&amp;gt;SPLCST_IGNORE&amp;lt;/code&amp;gt; (3) (the &amp;lt;code&amp;gt;check&amp;lt;/code&amp;gt; line in &amp;lt;code&amp;gt;spells.def&amp;lt;/code&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| media || integer variable || Set to the bits of what may carry the spell: 1 spell, 2 potion, 4 wand, 8 staff, 16 scroll (&amp;lt;code&amp;gt;MEDIA_*&amp;lt;/code&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| targets || integer variable || Set to the bits of what it may target: &amp;lt;code&amp;gt;FIND_UNIT_*&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;TAR_*&amp;lt;/code&amp;gt; bits.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
String: the spell's name, or &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; for a number in range that has no spell. For a&lt;br /&gt;
number below 0 or above 499 it fails and the seven variables are not changed.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The &amp;lt;code&amp;gt;SPLCST_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;MEDIA_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;TAR_*&amp;lt;/code&amp;gt; constants are in&lt;br /&gt;
  &amp;lt;code&amp;gt;spelldef.h&amp;lt;/code&amp;gt;, which &amp;lt;code&amp;gt;macros.h&amp;lt;/code&amp;gt; doesn't include: add&lt;br /&gt;
  &amp;lt;code&amp;gt;#include &amp;amp;lt;spelldef.h&amp;amp;gt;&amp;lt;/code&amp;gt; at the top of the zone. Only &amp;lt;code&amp;gt;SPLCST_*&amp;lt;/code&amp;gt;&lt;br /&gt;
  can be used there: &amp;lt;code&amp;gt;MEDIA_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;TAR_*&amp;lt;/code&amp;gt; are written with&lt;br /&gt;
  &amp;lt;code&amp;gt;&amp;amp;lt;&amp;amp;lt;&amp;lt;/code&amp;gt;, which DIL doesn't have, so vmc stops with a syntax error at the&lt;br /&gt;
  &amp;lt;code&amp;gt;&amp;amp;lt;&amp;lt;/code&amp;gt;. Use the numbers: &amp;lt;code&amp;gt;MEDIA_*&amp;lt;/code&amp;gt; as above; &amp;lt;code&amp;gt;TAR_IGNORE&amp;lt;/code&amp;gt; 32,&lt;br /&gt;
  &amp;lt;code&amp;gt;TAR_CHAR&amp;lt;/code&amp;gt; 64, &amp;lt;code&amp;gt;TAR_OBJ&amp;lt;/code&amp;gt; 128, &amp;lt;code&amp;gt;TAR_ROOM&amp;lt;/code&amp;gt; 256,&lt;br /&gt;
  &amp;lt;code&amp;gt;TAR_FIGHT_SELF&amp;lt;/code&amp;gt; 512, &amp;lt;code&amp;gt;TAR_FIGHT_VICT&amp;lt;/code&amp;gt; 1024, &amp;lt;code&amp;gt;TAR_SELF_ONLY&amp;lt;/code&amp;gt; 2048,&lt;br /&gt;
  &amp;lt;code&amp;gt;TAR_SELF_NONO&amp;lt;/code&amp;gt; 4096, &amp;lt;code&amp;gt;TAR_AUTO_SELF&amp;lt;/code&amp;gt; 8192.&lt;br /&gt;
* The spells are numbered without gaps from 0 to the last one (236 in spells.def today); a number past the last gives an empty name.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin spell_facts(arg : string);&lt;br /&gt;
var&lt;br /&gt;
   si : integer;&lt;br /&gt;
   nrealm : integer;&lt;br /&gt;
   nsphere : integer;&lt;br /&gt;
   nmana : integer;&lt;br /&gt;
   boffense : integer;&lt;br /&gt;
   nresist : integer;&lt;br /&gt;
   bvmedia : integer;&lt;br /&gt;
   bvtargets : integer;&lt;br /&gt;
   t : integer;&lt;br /&gt;
   sname : string;&lt;br /&gt;
   sphname : string;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   si := spellindex(arg);&lt;br /&gt;
   if (si == -1)&lt;br /&gt;
   {&lt;br /&gt;
      sendtext(&amp;quot;No such spell.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
      quit;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   sname := spellinfo(si, nrealm, nsphere, nmana, boffense, nresist, bvmedia, bvtargets);&lt;br /&gt;
   sphname := spellinfo(nsphere, t, t, t, t, t, t, t);&lt;br /&gt;
&lt;br /&gt;
   if (nrealm == ABIL_DIV)&lt;br /&gt;
      sendtext(sname + &amp;quot; is a divine spell of the &amp;quot; + sphname, self);&lt;br /&gt;
   else&lt;br /&gt;
      sendtext(sname + &amp;quot; is a magic spell of the &amp;quot; + sphname, self);&lt;br /&gt;
   sendtext(&amp;quot; and costs &amp;quot; + itoa(nmana) + &amp;quot; mana.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
&lt;br /&gt;
   if (boffense)&lt;br /&gt;
      sendtext(&amp;quot;It is an attack spell.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   if (nresist == SPLCST_RESIST)&lt;br /&gt;
      sendtext(&amp;quot;Its victim may resist it.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   if (isset(bvmedia, 2))      // MEDIA_POTION, see the notes&lt;br /&gt;
      sendtext(&amp;quot;It can be put in a potion.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A player command that describes the spell named. The zone needs&lt;br /&gt;
&amp;lt;code&amp;gt;#include &amp;amp;lt;spelldef.h&amp;amp;gt;&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;SPLCST_RESIST&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/spellindex()|spellindex()]]&lt;br /&gt;
* [[Manual:DIL Manual/cast spell()|cast spell()]]&lt;br /&gt;
* [[Manual:DIL Manual/spells|spells]]&lt;br /&gt;
* [[Manual:DIL Manual/isset()|isset()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/set_fighting()&amp;diff=3253</id>
		<title>Manual:DIL Manual/set fighting()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/set_fighting()&amp;diff=3253"/>
		<updated>2026-11-15T07:21:07Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= set_fighting() =&lt;br /&gt;
'''Procedure.''' Starts a fight between two characters.&lt;br /&gt;
&lt;br /&gt;
 set_fighting(u : unitptr, t : unitptr)&lt;br /&gt;
&lt;br /&gt;
Makes &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; fight &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt; gets &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; as an opponent (its &amp;lt;code&amp;gt;opponentcount&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;opponent()&amp;lt;/code&amp;gt; show it), but its own &amp;lt;code&amp;gt;fighting&amp;lt;/code&amp;gt; stays null, and its position unchanged, until its first combat round picks whom to hit. If&lt;br /&gt;
&amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; isn't fighting yet, &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt; becomes the one it hits. If &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; is&lt;br /&gt;
fighting already, &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt; joins its opponents, but &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; goes on hitting the one&lt;br /&gt;
it was hitting. No blow is struck now: the combat rounds that follow do that.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| u || unitptr || The attacker.&lt;br /&gt;
|-&lt;br /&gt;
| t || unitptr || The one attacked.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Both must be characters (players or NPCs). Otherwise, or when either is null, or &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt;, nothing happens.&lt;br /&gt;
* &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt;'s position becomes fighting, even if it was asleep. &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt;'s position isn't changed.&lt;br /&gt;
* It checks nothing else: not whether the two are in the same room, can see each other, or may fight at all (player killing, &amp;lt;code&amp;gt;CHAR_PEACEFUL&amp;lt;/code&amp;gt;). Check that first.&lt;br /&gt;
* It gives no message; use [[Manual:DIL Manual/act()|act()]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin no_backstab();&lt;br /&gt;
var&lt;br /&gt;
   pc : unitptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   :start:&lt;br /&gt;
   wait(SFB_CMD, command(&amp;quot;backstab&amp;quot;) and (activator.type == UNIT_ST_PC) and&lt;br /&gt;
                 (self.position &amp;gt;= POSITION_RESTING));&lt;br /&gt;
   pc := activator;&lt;br /&gt;
   secure(pc, start);&lt;br /&gt;
   block;&lt;br /&gt;
   act(&amp;quot;$3n turns around just in time!&amp;quot;, A_SOMEONE, pc, null, self, TO_CHAR);&lt;br /&gt;
   act(&amp;quot;$3n turns around and catches $1n!&amp;quot;, A_SOMEONE, pc, null, self, TO_REST);&lt;br /&gt;
   set_fighting(self, pc);&lt;br /&gt;
   unsecure(pc);&lt;br /&gt;
   goto start;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
An NPC that can't be backstabbed: it blocks the command and attacks the player, as &amp;lt;code&amp;gt;command_block&amp;lt;/code&amp;gt; in basis.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/stop fighting()|stop_fighting()]]&lt;br /&gt;
* [[Manual:DIL Manual/fighting|fighting]]&lt;br /&gt;
* [[Manual:DIL Manual/opponent()|opponent()]]&lt;br /&gt;
* [[Manual:DIL Manual/opponentcount|opponentcount]]&lt;br /&gt;
* [[Manual:DIL Manual/change speed()|change_speed()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/restore()&amp;diff=3252</id>
		<title>Manual:DIL Manual/restore()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/restore()&amp;diff=3252"/>
		<updated>2026-11-15T07:21:03Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= restore() =&lt;br /&gt;
'''Function''' (unitptr). Loads units saved with store() back into the game.&lt;br /&gt;
&lt;br /&gt;
 restore(filename : string, u : unitptr)&lt;br /&gt;
&lt;br /&gt;
Reads the file that [[Manual:DIL Manual/store()|store()]] wrote and loads the units in it into&lt;br /&gt;
&amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt;, or into the unit running the program when &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; is null. Units inside&lt;br /&gt;
other units come back inside them, and equipment a character wore is worn again. With&lt;br /&gt;
&amp;lt;code&amp;gt;store()&amp;lt;/code&amp;gt; this keeps things through a reboot: a chest's contents, a room's donations,&lt;br /&gt;
parcels in a mail system.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| filename || string || The file's name, as given to &amp;lt;code&amp;gt;store()&amp;lt;/code&amp;gt;: letters, digits, &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; only, at most 512 characters.&lt;br /&gt;
|-&lt;br /&gt;
| u || unitptr || The unit to put them in, or null for the unit running the program.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
unitptr: the first unit loaded, whether &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; is null or not. That is the container&lt;br /&gt;
when it was stored with &amp;lt;code&amp;gt;store(u, name, TRUE)&amp;lt;/code&amp;gt;, and otherwise the first of the stored&lt;br /&gt;
contents (the others are in &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; too). Null when there is no such file, or it is&lt;br /&gt;
empty.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* A program read from a file (a room's or object's program when the zone boots, a unit brought back with [[Manual:DIL Manual/restore()|restore()]], a &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; program on a player) doesn't run until the first event reaches it, and that event only takes it as far as its &amp;lt;code&amp;gt;wait()&amp;lt;/code&amp;gt;: the event itself is lost. A room program waiting for a command misses the first one after a boot. Programs on units that &amp;lt;code&amp;gt;%reset&amp;lt;/code&amp;gt; loads start at once and aren't affected.&lt;br /&gt;
* The files are in the &amp;lt;code&amp;gt;units&amp;lt;/code&amp;gt; folder of the zone's DIL file directory, or of the&lt;br /&gt;
  server's &amp;lt;code&amp;gt;dil_file_dir&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;server.cfg&amp;lt;/code&amp;gt;) when the zone has none.&lt;br /&gt;
* A name with other characters (a &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;, a space) is refused with a line in the zone's&lt;br /&gt;
  log, and the result is null.&lt;br /&gt;
* Restoring doesn't remove the file: restore it twice and you have two copies. Remove it with&lt;br /&gt;
  [[Manual:DIL Manual/delunit()|delunit()]] when it has served.&lt;br /&gt;
* &amp;lt;code&amp;gt;store()&amp;lt;/code&amp;gt; of a unit with nothing in it writes no file, so an older file stays and&lt;br /&gt;
  is restored. Use &amp;lt;code&amp;gt;delunit()&amp;lt;/code&amp;gt; when the unit is empty, as in the example.&lt;br /&gt;
* A unit whose definition no longer exists in its zone comes back as slime&lt;br /&gt;
  (''The slimy remains of ...'').&lt;br /&gt;
* Only zones whose access level in &amp;lt;code&amp;gt;zonelist&amp;lt;/code&amp;gt; is 10 or less may use it. In other&lt;br /&gt;
  zones the program stops at once, and the attempt is logged.&lt;br /&gt;
* It reads the disk: don't call it often.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin keep_chest();&lt;br /&gt;
var&lt;br /&gt;
   u : unitptr;&lt;br /&gt;
   i : integer;&lt;br /&gt;
   fn : string;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   fn := &amp;quot;chest_&amp;quot; + self.nameidx + &amp;quot;.&amp;quot; + self.zoneidx;&lt;br /&gt;
   u := restore(fn, self);         // put back what was in it before the reboot&lt;br /&gt;
&lt;br /&gt;
   heartbeat := PULSE_SEC * 300;&lt;br /&gt;
   :start:&lt;br /&gt;
   pause;&lt;br /&gt;
   if (self.inside == null)&lt;br /&gt;
      i := delunit(fn);            // store() of an empty chest writes nothing&lt;br /&gt;
   else&lt;br /&gt;
      store(self, fn, FALSE);      // the contents, not the chest&lt;br /&gt;
   goto start;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A chest that keeps its contents through reboots: it puts back what it held, then saves its&lt;br /&gt;
contents every five minutes.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/store()|store()]]&lt;br /&gt;
* [[Manual:DIL Manual/delunit()|delunit()]]&lt;br /&gt;
* [[Manual:DIL Manual/load()|load()]]&lt;br /&gt;
* [[Manual:DIL Manual/savestr()|savestr()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/recall&amp;diff=3251</id>
		<title>Manual:DIL Manual/recall</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/recall&amp;diff=3251"/>
		<updated>2026-11-15T07:21:00Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= recall =&lt;br /&gt;
'''Keyword.''' Option of &amp;lt;code&amp;gt;dilbegin&amp;lt;/code&amp;gt;: a saved program goes on where it stopped.&lt;br /&gt;
&lt;br /&gt;
 dilbegin recall name(...);&lt;br /&gt;
&lt;br /&gt;
When a unit is saved with its programs (a player and what the player carries, when the player quits or is saved, and other units the game stores) and later loaded again, its programs are loaded with it. Without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; each program starts again from the first statement of &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt;. With &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; it goes on from the wait where it was, with its &amp;lt;code&amp;gt;interrupt&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;on_activation&amp;lt;/code&amp;gt; settings still in force.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* A program read from a file (a room's or object's program when the zone boots, a unit brought back with [[Manual:DIL Manual/restore()|restore()]], a &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; program on a player) doesn't run until the first event reaches it, and that event only takes it as far as its &amp;lt;code&amp;gt;wait()&amp;lt;/code&amp;gt;: the event itself is lost. A room program waiting for a command misses the first one after a boot. Programs on units that &amp;lt;code&amp;gt;%reset&amp;lt;/code&amp;gt; loads start at once and aren't affected.&lt;br /&gt;
* Variables are saved either way: integer, string, stringlist and intlist values come back with or without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt;; unitptr, extraptr, zoneptr and cmdptr variables come back null, and secures are gone. A recalled program usually has to find its units again.&lt;br /&gt;
* If the template's code has changed since the save, the program starts from the top anyway. If its variables have changed, they are emptied as well.&lt;br /&gt;
* Only the position in the copied template itself is saved, not inside a template it called.&lt;br /&gt;
* The option is stored in each copy when it is made. Adding or removing &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; doesn't change copies that are already saved on players' things.&lt;br /&gt;
* It only matters for units that are saved. On an NPC or a room that is never saved it does nothing.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin recall hunt_timer(minutes : integer);&lt;br /&gt;
var&lt;br /&gt;
   kills : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   heartbeat := PULSE_SEC * 60;&lt;br /&gt;
   sendtext(&amp;quot;The hunt begins: you have &amp;quot; + itoa(minutes) + &amp;quot; minutes.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   while (minutes &amp;gt; 0)&lt;br /&gt;
   {&lt;br /&gt;
      wait(SFB_DEAD | SFB_TICK, command(CMD_AUTO_TICK) or&lt;br /&gt;
           (command(CMD_AUTO_DEATH) and (activator == self.fighting)));&lt;br /&gt;
      if (command(CMD_AUTO_TICK))&lt;br /&gt;
         minutes := minutes - 1;&lt;br /&gt;
      else&lt;br /&gt;
         kills := kills + 1;&lt;br /&gt;
   }&lt;br /&gt;
   sendtext(&amp;quot;The hunt is over: &amp;quot; + itoa(kills) + &amp;quot; kills.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Copied onto a player, it counts down the minutes and the kills. If the player quits and comes back, it goes on counting; without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; it would announce a new hunt (with the minutes and kills it had). Adapted from &amp;lt;code&amp;gt;spree_f&amp;lt;/code&amp;gt; in bounty.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/dilbegin|dilbegin]]&lt;br /&gt;
* [[Manual:DIL Manual/var|var]]&lt;br /&gt;
* [[Manual:DIL Manual/aware|aware]]&lt;br /&gt;
* [[Manual:DIL Manual/unique|unique]]&lt;br /&gt;
* [[Manual:DIL Manual/interrupt()|interrupt()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/mana&amp;diff=3250</id>
		<title>Manual:DIL Manual/mana</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/mana&amp;diff=3250"/>
		<updated>2026-11-15T07:20:57Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= mana =&lt;br /&gt;
'''Field''' (integer, read/write; units: characters).&lt;br /&gt;
&lt;br /&gt;
 ch.mana : integer&lt;br /&gt;
&lt;br /&gt;
A character's current mana: the points that spells cost. The most it regains to is [[Manual:DIL Manual/max mana|max_mana]]. Players regain mana in &amp;lt;code&amp;gt;regen_pc@update&amp;lt;/code&amp;gt;, a DIL program, which stops at &amp;lt;code&amp;gt;max_mana&amp;lt;/code&amp;gt; and never goes below 0.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* An NPC is loaded with full hit points, mana and endurance: the regeneration program every NPC gets (&amp;lt;code&amp;gt;regenerate@update&amp;lt;/code&amp;gt;) sets them to their maximum, so the values in the zone file aren't what a program reads.&lt;br /&gt;
* Players and NPCs. On an object, a room or null the field fails.&lt;br /&gt;
* Assignment is not checked against &amp;lt;code&amp;gt;max_mana&amp;lt;/code&amp;gt;: a program can set more than the maximum, and less than 0. Clamp it yourself, as update.zon does.&lt;br /&gt;
* Stored as a 16-bit signed number: values outside -32768 to 32767 wrap around.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin give_mana(u : unitptr, amount : integer);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if ((u.mana + amount) &amp;gt; u.max_mana)&lt;br /&gt;
      u.mana := u.max_mana;&lt;br /&gt;
   else&lt;br /&gt;
      u.mana := u.mana + amount;&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Gives a character mana up to the maximum, as the regeneration in update.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/max mana|max_mana]]&lt;br /&gt;
* [[Manual:DIL Manual/endurance|endurance]]&lt;br /&gt;
* [[Manual:DIL Manual/hp|hp]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/hp&amp;diff=3249</id>
		<title>Manual:DIL Manual/hp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/hp&amp;diff=3249"/>
		<updated>2026-11-15T07:20:54Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= hp =&lt;br /&gt;
'''Field''' (integer, read/write; units: all).&lt;br /&gt;
&lt;br /&gt;
 u.hp : integer&lt;br /&gt;
&lt;br /&gt;
The unit's current hit points. For a character it is its health. Objects and rooms have hit points too (the &amp;lt;code&amp;gt;hit&amp;lt;/code&amp;gt; line in the zone file); scripts may use them as an item's condition, as basis.zon does, where an object below -1 is broken.&lt;br /&gt;
&lt;br /&gt;
The maximum is the [[Manual:DIL Manual/max hp|max_hp]] field.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* An NPC is loaded with full hit points, mana and endurance: the regeneration program every NPC gets (&amp;lt;code&amp;gt;regenerate@update&amp;lt;/code&amp;gt;) sets them to their maximum, so the values in the zone file aren't what a program reads.&lt;br /&gt;
* Assigning sets the number and nothing else: it isn't capped at max_hp, and the character's position doesn't change. Call [[Manual:DIL Manual/position update()|position_update()]] afterwards: at 0 or below the character is stunned, at -3 incapacitated, at -6 mortally wounded, and at -11 or below it dies there and then.&lt;br /&gt;
* Any zone may assign it, for players too.&lt;br /&gt;
* Stored as a signed 32-bit number.&lt;br /&gt;
* On null it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin smite(vict : unitptr, dam : integer);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if ((vict.type != UNIT_ST_PC) and (vict.type != UNIT_ST_NPC))&lt;br /&gt;
      return;&lt;br /&gt;
   vict.hp := vict.hp - dam;&lt;br /&gt;
   position_update(vict);&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hurts a character outside combat and lets the server work out whether it is stunned or dead, as knight.zon and arena.zon do.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/max hp|max_hp]]&lt;br /&gt;
* [[Manual:DIL Manual/position update()|position_update()]]&lt;br /&gt;
* [[Manual:DIL Manual/position|position]]&lt;br /&gt;
* [[Manual:DIL Manual/endurance|endurance]]&lt;br /&gt;
* [[Manual:DIL Manual/mana|mana]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/exec()&amp;diff=3248</id>
		<title>Manual:DIL Manual/exec()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/exec()&amp;diff=3248"/>
		<updated>2026-11-15T07:20:50Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= exec() =&lt;br /&gt;
'''Procedure.''' Makes a character carry out a command, as if they had typed it.&lt;br /&gt;
&lt;br /&gt;
 exec(cmd : string, ch : unitptr)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ch&amp;lt;/code&amp;gt;, a player or an NPC, carries out &amp;lt;code&amp;gt;cmd&amp;lt;/code&amp;gt; at once through the ordinary command interpreter: the same checks (position, doors, ...), the same messages, and the same events for the programs around. Nothing tells whether it worked; check afterwards, for example &amp;lt;code&amp;gt;self.outside&amp;lt;/code&amp;gt; after a move.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| cmd || string || The command and its arguments, e.g. &amp;lt;code&amp;gt;&amp;quot;say Hello&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;get key&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| ch || unitptr || The character who does it.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* A move made with exec() is followed by a &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; in the new room, and programs that see the character's commands (&amp;lt;code&amp;gt;aware&amp;lt;/code&amp;gt; ones on the character itself, too) see that look as a command.&lt;br /&gt;
* &amp;lt;code&amp;gt;ch&amp;lt;/code&amp;gt; must be a character: on an object, a room or null nothing happens.&lt;br /&gt;
* This is the way to move an NPC through an exit: &amp;lt;code&amp;gt;exec(&amp;quot;north&amp;quot;, self)&amp;lt;/code&amp;gt; makes an ordinary move, with position checks, leave and arrive messages and every program that listens for movement. Use &amp;lt;code&amp;gt;link()&amp;lt;/code&amp;gt; only where there is no exit.&lt;br /&gt;
* The program that calls &amp;lt;code&amp;gt;exec&amp;lt;/code&amp;gt; doesn't get the command itself (it is busy running), but the other programs on &amp;lt;code&amp;gt;ch&amp;lt;/code&amp;gt; and around it do, as &amp;lt;code&amp;gt;SFB_CMD&amp;lt;/code&amp;gt;, and as &amp;lt;code&amp;gt;SFB_DONE&amp;lt;/code&amp;gt; when the command succeeds.&lt;br /&gt;
* Commands are at most 512 characters; a longer one is cut there and logged.&lt;br /&gt;
* A god (level 200 or more) can't be made to use a command that only gods have: it is refused and logged.&lt;br /&gt;
* If the command destroys &amp;lt;code&amp;gt;ch&amp;lt;/code&amp;gt; or takes it away, and the program has &amp;lt;code&amp;gt;secure&amp;lt;/code&amp;gt;d &amp;lt;code&amp;gt;ch&amp;lt;/code&amp;gt;, the secure fires.&lt;br /&gt;
* On a player it looks to them as if they typed it; use it on players with care.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin go_east();&lt;br /&gt;
var&lt;br /&gt;
   here : unitptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   here := self.outside;&lt;br /&gt;
   exec(&amp;quot;east&amp;quot;, self);&lt;br /&gt;
   if (self.outside == here)&lt;br /&gt;
      exec(&amp;quot;say I can't get through here.&amp;quot;, self);&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Walks an NPC east and checks that it got there.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/link()|link()]]&lt;br /&gt;
* [[Manual:DIL Manual/command()|command()]]&lt;br /&gt;
* [[Manual:DIL Manual/send done()|send done()]]&lt;br /&gt;
* [[Manual:DIL Manual/outside|outside]]&lt;br /&gt;
* [[Manual:DIL Manual/SFB CMD|SFB_CMD]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/endurance&amp;diff=3247</id>
		<title>Manual:DIL Manual/endurance</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/endurance&amp;diff=3247"/>
		<updated>2026-11-15T07:20:46Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= endurance =&lt;br /&gt;
'''Field''' (integer, read/write; units: characters).&lt;br /&gt;
&lt;br /&gt;
 ch.endurance : integer&lt;br /&gt;
&lt;br /&gt;
A character's current endurance: the points that moving, fighting and some skills use up. The most it regains to is [[Manual:DIL Manual/max endurance|max_endurance]]. Players regain endurance in &amp;lt;code&amp;gt;regen_pc@update&amp;lt;/code&amp;gt;, a DIL program, which stops at &amp;lt;code&amp;gt;max_endurance&amp;lt;/code&amp;gt; and never goes below 0. In basemove.zon, &amp;lt;code&amp;gt;climb&amp;lt;/code&amp;gt; takes 6 endurance a try and refuses a character with less than 10.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* An NPC is loaded with full hit points, mana and endurance: the regeneration program every NPC gets (&amp;lt;code&amp;gt;regenerate@update&amp;lt;/code&amp;gt;) sets them to their maximum, so the values in the zone file aren't what a program reads.&lt;br /&gt;
* Players and NPCs. On an object, a room or null the field fails.&lt;br /&gt;
* Assignment is not checked against &amp;lt;code&amp;gt;max_endurance&amp;lt;/code&amp;gt;: a program can set more than the maximum, and less than 0. Clamp it yourself.&lt;br /&gt;
* Stored as a 16-bit signed number: values outside -32768 to 32767 wrap around.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer tire(ch : unitptr, amount : integer);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (ch.endurance &amp;lt; amount)&lt;br /&gt;
   {&lt;br /&gt;
      act(&amp;quot;You are too exhausted.&amp;quot;, A_ALWAYS, ch, null, null, TO_CHAR);&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   }&lt;br /&gt;
   ch.endurance := ch.endurance - amount;&lt;br /&gt;
   return (TRUE);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Takes endurance for an effort, or refuses when the character is too tired, as &amp;lt;code&amp;gt;climb&amp;lt;/code&amp;gt; does in basemove.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/max endurance|max_endurance]]&lt;br /&gt;
* [[Manual:DIL Manual/mana|mana]]&lt;br /&gt;
* [[Manual:DIL Manual/hp|hp]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/dilfind()&amp;diff=3246</id>
		<title>Manual:DIL Manual/dilfind()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/dilfind()&amp;diff=3246"/>
		<updated>2026-11-15T07:20:43Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= dilfind() =&lt;br /&gt;
'''Function''' (integer). Tells whether a unit runs a DIL program from a given template.&lt;br /&gt;
&lt;br /&gt;
 dilfind(tmpl : string, u : unitptr) : integer&lt;br /&gt;
&lt;br /&gt;
Looks through the programs on &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; for one that was started from the template &amp;lt;code&amp;gt;tmpl&amp;lt;/code&amp;gt; and hasn't ended. Use it to avoid putting the same program on a unit twice, or to see whether a spell or a curse is still at work.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| tmpl || string || The template's name with its zone, &amp;lt;code&amp;gt;&amp;quot;name@zone&amp;quot;&amp;lt;/code&amp;gt;. Without the &amp;lt;code&amp;gt;@zone&amp;lt;/code&amp;gt; nothing is found.&lt;br /&gt;
|-&lt;br /&gt;
| u || unitptr || The unit to look at.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
TRUE when &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; has such a program, FALSE when not (or the template doesn't exist). FALSE too when &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; is null.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* It checks the template each program was started from, not one the program is busy in after calling it.&lt;br /&gt;
* The name must match the template, not the unit: &amp;lt;code&amp;gt;dilfind(&amp;quot;guard@midgaard&amp;quot;, u)&amp;lt;/code&amp;gt; asks about a program called guard, not about an NPC.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin bleed_once(u : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (not dilfind(&amp;quot;bleeding@ex&amp;quot;, u))&lt;br /&gt;
      dilcopy(&amp;quot;bleeding@ex&amp;quot;, u);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&lt;br /&gt;
dilbegin bleeding();&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   heartbeat := PULSE_SEC * 10;&lt;br /&gt;
   :loop:&lt;br /&gt;
   wait(SFB_TICK, TRUE);&lt;br /&gt;
   act(&amp;quot;You bleed.&amp;quot;, A_ALWAYS, self, null, null, TO_CHAR);&lt;br /&gt;
   goto loop;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Puts a bleeding program on a character unless it already bleeds, as barbarian.zon does with its blood poison. The example zone is called &amp;lt;code&amp;gt;ex&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/dildestroy()|dildestroy()]]&lt;br /&gt;
* [[Manual:DIL Manual/dilcopy()|dilcopy()]]&lt;br /&gt;
* [[Manual:DIL Manual/hasfunc|hasfunc]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/dildestroy()&amp;diff=3245</id>
		<title>Manual:DIL Manual/dildestroy()</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/dildestroy()&amp;diff=3245"/>
		<updated>2026-11-15T07:20:39Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= dildestroy() =&lt;br /&gt;
'''Function''' (integer). Stops a DIL program on a unit and removes it.&lt;br /&gt;
&lt;br /&gt;
 dildestroy(tmpl : string, u : unitptr) : integer&lt;br /&gt;
&lt;br /&gt;
Finds the first running program on &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; made from the template &amp;lt;code&amp;gt;tmpl&amp;lt;/code&amp;gt; and removes it. Just before, that program gets an &amp;lt;code&amp;gt;SFB_DILDESTROY&amp;lt;/code&amp;gt; event, so it can tidy up (a &amp;lt;code&amp;gt;wait&amp;lt;/code&amp;gt; or an [[Manual:DIL Manual/interrupt()|interrupt()]] on &amp;lt;code&amp;gt;SFB_DILDESTROY&amp;lt;/code&amp;gt;); then it is stopped as if it had run &amp;lt;code&amp;gt;quit&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| tmpl || string || The template's name with its zone, &amp;lt;code&amp;gt;&amp;quot;name@zone&amp;quot;&amp;lt;/code&amp;gt;. Without the &amp;lt;code&amp;gt;@zone&amp;lt;/code&amp;gt; nothing is found.&lt;br /&gt;
|-&lt;br /&gt;
| u || unitptr || The unit the program is on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
TRUE when a program was found and removed, FALSE when &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; has none from that template (or the template doesn't exist). FALSE too when &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; is null.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Only one program is removed per call. A unit can carry several copies of the same template (spells put on twice, for example); to remove them all, loop with [[Manual:DIL Manual/dilfind()|dilfind()]] as in the example.&lt;br /&gt;
* It looks at the template each program was started from. A program that is busy in a template it called still counts as its starting template.&lt;br /&gt;
* Programs that have already ended are skipped.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin cure_all(u : unitptr);&lt;br /&gt;
var&lt;br /&gt;
   i : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   while (dilfind(&amp;quot;spl_poison@spells&amp;quot;, u))&lt;br /&gt;
      i := dildestroy(&amp;quot;spl_poison@spells&amp;quot;, u);&lt;br /&gt;
   while (dilfind(&amp;quot;spl_sleep@spells&amp;quot;, u))&lt;br /&gt;
      i := dildestroy(&amp;quot;spl_sleep@spells&amp;quot;, u);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Removes every poison and magical sleep program from a character, as &amp;lt;code&amp;gt;remove_aff&amp;lt;/code&amp;gt; in death.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/dilfind()|dilfind()]]&lt;br /&gt;
* [[Manual:DIL Manual/dilcopy()|dilcopy()]]&lt;br /&gt;
* [[Manual:DIL Manual/quit|quit]]&lt;br /&gt;
* [[Manual:DIL Manual/interrupt()|interrupt()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Help/Variable&amp;diff=3244</id>
		<title>Help/Variable</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Help/Variable&amp;diff=3244"/>
		<updated>2026-11-15T06:33:24Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: no wiki link in a help page: it would point at the wiki from inside the game ({Help Trigger} is in See Also)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Variable =&lt;br /&gt;
&lt;br /&gt;
Variables are basically string lists that can be used in triggers and can be defined as such: &lt;br /&gt;
&lt;br /&gt;
  {variable friends papi|john|aja|bruce|cityguard|the janitor}&lt;br /&gt;
&lt;br /&gt;
To list current variables:&lt;br /&gt;
&lt;br /&gt;
  {variable}&lt;br /&gt;
&lt;br /&gt;
To remove variable:&lt;br /&gt;
&lt;br /&gt;
  {variable friends}&lt;br /&gt;
&lt;br /&gt;
To recall a variable for use in a trigger, you will notate it as (@variablename) or in this example (@friends). &lt;br /&gt;
See the trigger page for more help.&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
  {Help Trigger}&lt;br /&gt;
  {Help Alias}&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Room_Section/DIL_functions_for_rooms&amp;diff=3243</id>
		<title>Manual:Zone Manual/The Room Section/DIL functions for rooms</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Room_Section/DIL_functions_for_rooms&amp;diff=3243"/>
		<updated>2026-11-15T06:27:56Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: checked against the current code (wiki review 2026-11-15)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== DIL functions for rooms ===&lt;br /&gt;
&lt;br /&gt;
DIL is the language for giving rooms, NPCs and objects behaviour of their own. This manual is about building zones, so it doesn't teach you to write DIL; the [[Manual:DIL Manual|DIL manual]] does. The zones that come with the server contain many DIL templates you can use without writing any DIL yourself. This page lists the ones made for rooms.&lt;br /&gt;
&lt;br /&gt;
You put a template on a room with &amp;lt;code&amp;gt;dilcopy&amp;lt;/code&amp;gt;, the template's name, the zone it is in, and its arguments:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy death_room@function(PULSE_SEC * 15, 60, &amp;quot;Flames shoot up from the floor.&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt; at the end is required. vmc checks neither the name nor the arguments: a wrong name or a missing argument compiles without a word and shows up only at boot or when the script runs, in &amp;lt;code&amp;gt;vme.log&amp;lt;/code&amp;gt;. Check them against the template's &amp;lt;code&amp;gt;dilbegin&amp;lt;/code&amp;gt; line in its zone file (in &amp;lt;code&amp;gt;vme/zone/&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Times are given in ticks of a quarter of a second. &amp;lt;code&amp;gt;PULSE_SEC&amp;lt;/code&amp;gt; (4) from &amp;lt;code&amp;gt;vme.h&amp;lt;/code&amp;gt; makes them easier to read: &amp;lt;code&amp;gt;PULSE_SEC * 15&amp;lt;/code&amp;gt; is 15 seconds.&lt;br /&gt;
&lt;br /&gt;
==== Death room ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin death_room(tick : integer, damage : integer, act_s : string);    // function.zon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hurts the players in the room: every &amp;lt;code&amp;gt;tick&amp;lt;/code&amp;gt; ticks (at least 12, three seconds), each player in it loses &amp;lt;code&amp;gt;damage&amp;lt;/code&amp;gt; hit points and sees &amp;lt;code&amp;gt;act_s&amp;lt;/code&amp;gt; (or &amp;quot;You bleed from your wounds.&amp;quot; when it is &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;). A player whose hit points run out dies. It can kill slowly, like a smoky cave, or at once, like open space. Gods are not hurt.&lt;br /&gt;
&lt;br /&gt;
NPCs are spared, unless the room has an extra named &amp;lt;code&amp;gt;$death room for mobs&amp;lt;/code&amp;gt;; then NPCs are hurt too, except those with an extra &amp;lt;code&amp;gt;$no death room&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy death_room@function(PULSE_SEC * 60, 60,&lt;br /&gt;
   &amp;quot;Flames shoot up from the floor, burning your feet.&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This does 60 hit points of damage every minute.&lt;br /&gt;
&lt;br /&gt;
==== Force move ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin force_move(tick : integer, strings : string, random : integer);    // function.zon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Moves everything in the room to another room without anyone typing a command: rivers, quicksand, transporters.&lt;br /&gt;
* &amp;lt;code&amp;gt;tick&amp;lt;/code&amp;gt;: how often, in ticks (at least 12, three seconds).&lt;br /&gt;
* &amp;lt;code&amp;gt;strings&amp;lt;/code&amp;gt;: one string with the destination room as &amp;lt;code&amp;gt;symbol@zone&amp;lt;/code&amp;gt;, a &amp;lt;code&amp;gt;!&amp;lt;/code&amp;gt;, and the message shown to whoever is moved: &amp;lt;code&amp;gt;&amp;quot;river2@riverzon!You float down the river.&amp;quot;&amp;lt;/code&amp;gt;. Without the &amp;lt;code&amp;gt;!&amp;lt;/code&amp;gt; and a message, or with a room that doesn't exist, the script writes an error to &amp;lt;code&amp;gt;vme.log&amp;lt;/code&amp;gt; and stops.&lt;br /&gt;
* &amp;lt;code&amp;gt;random&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;FALSE&amp;lt;/code&amp;gt; (0) moves at a steady rate; &amp;lt;code&amp;gt;TRUE&amp;lt;/code&amp;gt; varies each wait by up to half of &amp;lt;code&amp;gt;tick&amp;lt;/code&amp;gt; either way.&lt;br /&gt;
Players, NPCs and objects in the room are all moved, except rooms inside it and anything with an extra named &amp;lt;code&amp;gt;$no force move&amp;lt;/code&amp;gt;. Each sees the message, players see the new room, and the others there see &amp;quot;''Someone'' has arrived.&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy force_move@function(PULSE_SEC * 30, &amp;quot;river2@riverzon!You float down the river.&amp;quot;, FALSE);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Keep the string on one line in the zone file, and put &amp;lt;code&amp;gt;&amp;amp;lt;br/&amp;amp;gt;&amp;lt;/code&amp;gt; in the message where it should break. The old &amp;lt;code&amp;gt;&amp;amp;amp;n&amp;lt;/code&amp;gt; code doesn't work in DIL arguments.&lt;br /&gt;
&lt;br /&gt;
==== Water current ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin watercurrent(dir : integer, messages : stringlist, beats : integer);    // basemove.zon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A river or stream that carries players, NPCs and objects downstream, a little at a time. About every five seconds everything in the room counts one beat; after &amp;lt;code&amp;gt;beats&amp;lt;/code&amp;gt; beats it is carried out through the exit &amp;lt;code&amp;gt;dir&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;DIR_EAST&amp;lt;/code&amp;gt; and so on from &amp;lt;code&amp;gt;vme.h&amp;lt;/code&amp;gt;; the exit must exist). Players and NPCs make a swimming check against that exit's &amp;lt;code&amp;gt;difficulty&amp;lt;/code&amp;gt; first and swallow water, losing hit points, when they fail; they are carried along either way. Whoever sits in a boat drifts with the boat.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;messages&amp;lt;/code&amp;gt; holds four messages:&lt;br /&gt;
# to the one carried away;&lt;br /&gt;
# to the others in the room left behind;&lt;br /&gt;
# to the one being carried, every second beat while waiting;&lt;br /&gt;
# to the others in the room it arrives in.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy watercurrent@basemove(DIR_EAST,&lt;br /&gt;
   {&amp;quot;The river current gently takes you east.&amp;quot;, &amp;quot;$1n gently flows away to the east.&amp;quot;,&lt;br /&gt;
    &amp;quot;You gently flow further eastwards.&amp;quot;, &amp;quot;$1n flows in from the west.&amp;quot;}, 6);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This, from &amp;lt;code&amp;gt;cypress.zon&amp;lt;/code&amp;gt;, carries everything east after about 30 seconds. Give the room &amp;lt;code&amp;gt;movement SECT_WATER_SWIM&amp;lt;/code&amp;gt; so that walking in and out of it means swimming too.&lt;br /&gt;
&lt;br /&gt;
==== Scrambled exits ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin scramble(a_exit : string);    // function.zon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For mazes: when a player types one of the directions named in &amp;lt;code&amp;gt;a_exit&amp;lt;/code&amp;gt;, they are taken out through a random exit of the room instead, together with their followers. Only &amp;lt;code&amp;gt;north&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;east&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;south&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;west&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;up&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;down&amp;lt;/code&amp;gt; are used, also for the random pick, and a closed door doesn't stop it. Gods and NPCs walk normally.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy scramble@function(&amp;quot;north east south west&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The template also means to refuse &amp;lt;code&amp;gt;drag&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ride&amp;lt;/code&amp;gt; in the room, but doesn't: those commands still work.&lt;br /&gt;
&lt;br /&gt;
==== Blocking commands ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin block_cmd(blockcmds : stringlist, actvict : string, actrest : string);    // function.zon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Made for guards, but it works on a room too: the commands in &amp;lt;code&amp;gt;blockcmds&amp;lt;/code&amp;gt; do nothing in the room, for anyone. &amp;lt;code&amp;gt;actvict&amp;lt;/code&amp;gt; is shown to the one who tried, &amp;lt;code&amp;gt;actrest&amp;lt;/code&amp;gt; to the others in the room; either can be &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy block_cmd@function({&amp;quot;bury&amp;quot;, &amp;quot;dig&amp;quot;}, &amp;quot;The floor is solid rock.&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Seasonal zones ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin season(startm : integer, startd : integer, endm : integer, endd : integer,&lt;br /&gt;
                minutes : integer, syms : stringlist, hook : string);    // function.zon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Put on one room of a zone with &amp;lt;code&amp;gt;reset RESET_NEVER&amp;lt;/code&amp;gt;, it resets the zone every &amp;lt;code&amp;gt;minutes&amp;lt;/code&amp;gt; minutes between two dates of the real calendar (a Christmas or Halloween event), and removes the units in &amp;lt;code&amp;gt;syms&amp;lt;/code&amp;gt; when the season ends. The comment above it in &amp;lt;code&amp;gt;function.zon&amp;lt;/code&amp;gt; explains the arguments; &amp;lt;code&amp;gt;hallows23.zon&amp;lt;/code&amp;gt; uses it.&lt;br /&gt;
&lt;br /&gt;
==== safe_room ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy safe_room@function();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Refuses attacks in the room: &amp;lt;code&amp;gt;kill&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;backstab&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;kick&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;trip&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;disarm&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rescue&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;drag&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;steal&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;filch&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pickpocket&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cast&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;use&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;recite&amp;lt;/code&amp;gt; get &amp;quot;Spells and attacks are not allowed in safe rooms.&amp;quot; It only looks at commands whose last word names a unit in the room, so a spell cast without a target (an area spell, say) gets through. NPCs without a master are not checked, anyone may act on the character they follow, and members of the police academy quest may attack outlaws. See [[Manual:Game Mechanics/Rooms|Game Mechanics: Rooms]].&lt;br /&gt;
&lt;br /&gt;
==== Templates you won't find ====&lt;br /&gt;
Older versions of this page and of the manual list templates that are gone or never existed:&lt;br /&gt;
* &amp;lt;code&amp;gt;death@function&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;death_room@function&amp;lt;/code&amp;gt;, and its damage is in hit points, not percent.&lt;br /&gt;
* &amp;lt;code&amp;gt;climb@function&amp;lt;/code&amp;gt; still exists but does nothing: climbing is now set with the &amp;lt;code&amp;gt;EX_CLIMB&amp;lt;/code&amp;gt; exit flag, see [[Manual:Zone_Manual/The_Room_Section/Climbing|Climbing]].&lt;br /&gt;
* The old &amp;lt;code&amp;gt;special SFUN_DEATH_ROOM&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;SFUN_FORCE_MOVE&amp;lt;/code&amp;gt; were replaced by the two templates above.&lt;br /&gt;
&lt;br /&gt;
To write a template of your own, start with [[Manual:DIL Manual/dilbegin|dilbegin]] and the room's events: a room script is woken by the commands typed in it ([[Manual:DIL Manual/SFB CMD|SFB_CMD]]) and by its [[Manual:DIL Manual/heartbeat|heartbeat]] ([[Manual:DIL Manual/SFB TICK|SFB_TICK]]), and moves units about with [[Manual:DIL Manual/link()|link()]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'&amp;gt;[[Manual:Zone_Manual/The_Room_Section/Compiling_and_debugging_your_first_room|Previous: Compiling and debugging your first room]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'&amp;gt;[[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms|Next: A more complex set of rooms]]&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Game_Mechanics/Combat&amp;diff=3242</id>
		<title>Manual:Game Mechanics/Combat</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Game_Mechanics/Combat&amp;diff=3242"/>
		<updated>2026-11-15T06:27:28Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: checked against the current code (wiki review 2026-11-15)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains how a fight is worked out: rounds and attacks, the roll for each blow, damage, shields, armour, and what happens when hit points run out. The code is in &amp;lt;code&amp;gt;vme/src/combat.cpp&amp;lt;/code&amp;gt; (rounds), &amp;lt;code&amp;gt;fight.cpp&amp;lt;/code&amp;gt; (blows and damage), &amp;lt;code&amp;gt;experience.cpp&amp;lt;/code&amp;gt; (the hit roll, shields, &amp;lt;code&amp;gt;consider&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;skills.cpp&amp;lt;/code&amp;gt; (damage tables). The players' side is in [[Help/Combat|help combat]] and [[Help/Kill|help kill]].&lt;br /&gt;
&lt;br /&gt;
== Starting and stopping ==&lt;br /&gt;
&amp;lt;code&amp;gt;kill&amp;lt;/code&amp;gt; (or a skill such as &amp;lt;code&amp;gt;kick&amp;lt;/code&amp;gt;, or an attack spell) starts a fight: both sides fight until one falls, dies or flees, or they are no longer in the same place. A character can fight several opponents, but hits one of them at a time; changing who they hit takes most of a round. Players can only fight each other when both have signed the Book of Blood ([[Help/Bob|help bob]]), and a room with &amp;lt;code&amp;gt;safe_room@function&amp;lt;/code&amp;gt; refuses attacks altogether (see [[Manual:Game Mechanics/Rooms#Safe rooms|Rooms]]).&lt;br /&gt;
&lt;br /&gt;
When someone falls stunned or worse, the fight stops for both; whoever wants to finish them off must attack again.&lt;br /&gt;
&lt;br /&gt;
== Rounds ==&lt;br /&gt;
A combat round comes every 3 seconds (&amp;lt;code&amp;gt;PULSE_VIOLENCE&amp;lt;/code&amp;gt;). In each round every fighter has 12 units of time (&amp;lt;code&amp;gt;SPEED_DEFAULT&amp;lt;/code&amp;gt;), and everything they do in the fight spends some:&lt;br /&gt;
* a blow takes the weapon's speed from &amp;lt;code&amp;gt;vme/etc/weapons.def&amp;lt;/code&amp;gt;: 9 for two-handed weapons, 7 for one-handed ones, 4 for light weapons such as the dagger, and 4 for natural attacks (2, but 4 is the least a blow takes);&lt;br /&gt;
* a skill or command typed during the fight takes its &amp;lt;code&amp;gt;turns&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;vme/etc/commands.def&amp;lt;/code&amp;gt; (kick takes 6, half a round), and a spell its &amp;lt;code&amp;gt;turns&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;spells.def&amp;lt;/code&amp;gt; (a full round unless the spell says otherwise). When the fighter has no time left this round, the command waits for the next;&lt;br /&gt;
* a fumble costs another half round (6 units), and changing whom you hit 9 units.&lt;br /&gt;
Time spent beyond the 12 is taken from the next round.&lt;br /&gt;
&lt;br /&gt;
How many blows a fighter gets depends on their &amp;lt;code&amp;gt;speed&amp;lt;/code&amp;gt;: 12 is normal, lower is faster (4 to 200). At normal speed a fighter strikes once a round, or twice when fighting with two weapons, but only if both blows fit in the 12 units: with two one-handed weapons (7 + 7) only one does; with a light weapon in one hand (7 + 4) both do. Faster fighters get more blows, and each takes less time:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Speed !! 12 !! 8 !! 6 !! 5 !! 4&lt;br /&gt;
|-&lt;br /&gt;
| Blows per round (one weapon) || 1 || 1 || 2 || 2 || 2 (players), 3 (monsters)&lt;br /&gt;
|}&lt;br /&gt;
That is 1 &amp;amp;times; 12 / speed, rounded down, at most 2 for players and 3 for monsters. Haste spells and &amp;lt;code&amp;gt;SPEED_TRANSFER&amp;lt;/code&amp;gt; items make a character faster. A speed above 12 doesn't give fewer blows: a fighter whose blow still fits in the round strikes every round, and one whose blow no longer fits (above speed 35 with a natural attack, 20 with a one-handed weapon, 16 with a two-handed one) never strikes at all.&lt;br /&gt;
&lt;br /&gt;
== A blow ==&lt;br /&gt;
Each blow is worked out in &amp;lt;code&amp;gt;one_hit()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;fight.cpp&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Where it lands ===&lt;br /&gt;
A roll of 2d8 picks the place: body 34%, legs 28%, arms 23%, and head, hands and feet 5% each. The armour worn there is the armour that counts for this blow. With none, the defender's natural armour counts (clothes for a player), with no bonus.&lt;br /&gt;
&lt;br /&gt;
=== The hit roll ===&lt;br /&gt;
First the attack bonus (&amp;lt;code&amp;gt;melee_bonus()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;experience.cpp&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 bonus = 2 &amp;amp;times; (attack ability - defender's dexterity)&lt;br /&gt;
       + 2 &amp;amp;times; (attacker's weapon skill - defender's weapon defence)&lt;br /&gt;
       + attacker's bonuses - defender's bonuses&lt;br /&gt;
&lt;br /&gt;
and at least -50. Then:&lt;br /&gt;
&lt;br /&gt;
 result = bonus + open-ended 1d100 (+ the bonus of a skill such as kick)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Part !! What it is&lt;br /&gt;
|-&lt;br /&gt;
| attack ability || the average of the three abilities the weapon uses (most weapons: strength, strength, dexterity)&lt;br /&gt;
|-&lt;br /&gt;
| defender's dexterity || after armour has lowered it (see [[Manual:Game Mechanics/Abilities#Armour and dexterity|Abilities]])&lt;br /&gt;
|-&lt;br /&gt;
| weapon skill || a player's skill in the weapon, or in its family if that is higher, or -25 with neither; a monster's skill in the family&lt;br /&gt;
|-&lt;br /&gt;
| weapon defence || a player's best of: half their skill in the attacker's weapon, or their skill in its family; a monster's half skill in the family&lt;br /&gt;
|-&lt;br /&gt;
| attacker's bonuses ||&lt;br /&gt;
* the monster's &amp;lt;code&amp;gt;offensive&amp;lt;/code&amp;gt; value (for a player 0, unless a god or a DIL changes it);&lt;br /&gt;
* the weapon's craftsmanship and magic (-20 to +20 each, see [[Manual:Game Mechanics/Objects|Objects]]);&lt;br /&gt;
* +25 if the defender can't see the attacker;&lt;br /&gt;
* against a race the weapon slays: +50, and 1 more for each level the defender is above 50;&lt;br /&gt;
* with two weapons: -(25 - two weapon style / 4) for the main weapon and -(50 - two weapon style / 4) for the second, never above 0; a monster uses its dexterity for the skill.&lt;br /&gt;
|-&lt;br /&gt;
| defender's bonuses ||&lt;br /&gt;
* the monster's &amp;lt;code&amp;gt;defensive&amp;lt;/code&amp;gt; value;&lt;br /&gt;
* the craftsmanship and magic of the armour where the blow lands;&lt;br /&gt;
* +25 if the attacker can't see the defender;&lt;br /&gt;
* +20 for protection from evil against an evil attacker, protection from good against a good one;&lt;br /&gt;
* -25 if the defender isn't fighting the attacker: fighting someone else, or not fighting yet.&lt;br /&gt;
|}&lt;br /&gt;
A defender who is asleep, stunned or worse doesn't defend: the bonus is 2 &amp;amp;times; attack ability + 2 &amp;amp;times; weapon skill + the attacker's bonuses, and the result is at least 100.&lt;br /&gt;
&lt;br /&gt;
A monster above level 50 has its roll multiplied by (level - 30) / 25; see [[Manual:Game Mechanics/Monsters#Level|Monsters]].&lt;br /&gt;
&lt;br /&gt;
=== Fumbles ===&lt;br /&gt;
If the attacker wields a weapon and the roll (before the bonus) is at most the weapon's &amp;lt;code&amp;gt;fumble&amp;lt;/code&amp;gt; value in &amp;lt;code&amp;gt;weapons.def&amp;lt;/code&amp;gt;, the blow is a fumble: it misses and costs half a round. A long sword fumbles on 7 or less, a dagger on 2 or less.&lt;br /&gt;
&lt;br /&gt;
=== Damage ===&lt;br /&gt;
A result below 0 is a miss. From 0 up it is a hit, and the result is looked up in the weapon's damage table, in the column of the armour where the blow landed. Each entry is {''offset'', ''base'', ''step''}:&lt;br /&gt;
&lt;br /&gt;
 damage = base + (result - offset) / step, or 0 if the result is below the offset&lt;br /&gt;
&lt;br /&gt;
A hit for 0 damage glances off the armour. A long sword against chain is {50, 4, 9}: a result of 50 does 4 damage, 104 does 10, 158 does 16. The tables for each weapon are in &amp;lt;code&amp;gt;weapons.def&amp;lt;/code&amp;gt;; see [[Manual:Game Mechanics/Objects#Weapons|Objects]] for some.&lt;br /&gt;
&lt;br /&gt;
* A slaying weapon against its race adds a fifth to the result after the hit.&lt;br /&gt;
* A natural attack (a monster's claw, a player's fist) is weaker for a light attacker: the result is cut to 50% for a tiny one (up to 5 pounds), 60% small (to 40), 70% medium (to 160), 80% large (to 500), and stays whole for a huge one.&lt;br /&gt;
* There is no upper limit to the damage.&lt;br /&gt;
&lt;br /&gt;
=== Shields ===&lt;br /&gt;
After a hit, a defender who is awake and has a shield tries to put it in the way. The chance depends on the size of the shield, its craftsmanship and magic, and the shield skill of both sides. Against most weapons a block stops the blow entirely and the shield takes the damage; against the morning star and the flail the shield only takes a part away; against the whip it is useless. The numbers are on [[Manual:Game Mechanics/Objects#Shields|Objects]].&lt;br /&gt;
&lt;br /&gt;
=== An example ===&lt;br /&gt;
A fighter with strength 40 and dexterity 30 (attack ability (40 + 40 + 30) / 3 = 36) and 40 in long sword attacks with a good long sword (craftsmanship +5 in the game). The defender wears a plain chain shirt, has dexterity 30 after the shirt has lowered it, and 20 in swords (a defence of 20).&lt;br /&gt;
&lt;br /&gt;
 bonus = 2 &amp;amp;times; (36 - 30) + 2 &amp;amp;times; (40 - 20) + 5 - 0 = 57&lt;br /&gt;
&lt;br /&gt;
A blow to the body, in the chain shirt, with a roll of 50: 57 + 50 = 107, which does 4 + (107 - 50) / 9 = 10 damage. A roll of 5 does 5, a roll of 95 does 15. A defender with 110 hit points lasts about 11 rounds. &amp;lt;code&amp;gt;wstat &amp;amp;lt;attacker&amp;amp;gt; combat &amp;amp;lt;defender&amp;amp;gt;&amp;lt;/code&amp;gt; shows such a breakdown for two real characters (see [[Wizhelp/Wstat|wstat]]).&lt;br /&gt;
&lt;br /&gt;
== Wear on equipment ==&lt;br /&gt;
Each blow wears the weapon that struck and the armour that was hit, and a block wears the shield. Craftsmanship decides how much an item can take; when it is used up the item breaks. See [[Manual:Game Mechanics/Objects#Wear and breaking|Objects]].&lt;br /&gt;
&lt;br /&gt;
== Hit points and positions ==&lt;br /&gt;
Damage takes hit points away (&amp;lt;code&amp;gt;damage()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;update_pos()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;fight.cpp&amp;lt;/code&amp;gt;):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Hit points !! Position&lt;br /&gt;
|-&lt;br /&gt;
| 1 and up || fighting, or whatever they were doing&lt;br /&gt;
|-&lt;br /&gt;
| 0 to -2 || stunned: gets up again as hit points come back&lt;br /&gt;
|-&lt;br /&gt;
| -3 to -5 || incapacitated: loses 1 hit point every 30 seconds&lt;br /&gt;
|-&lt;br /&gt;
| -6 to -10 || mortally wounded: loses 2 hit points every 30 seconds&lt;br /&gt;
|-&lt;br /&gt;
| -11 or less || dead&lt;br /&gt;
|}&lt;br /&gt;
A blow that does more than a fifth of the victim's maximum makes them scream. A sleeping victim who is hurt wakes up.&lt;br /&gt;
&lt;br /&gt;
A player in wimpy mode ([[Help/Wimpy|help wimpy]]) flees by themselves when a blow takes more than a quarter of the hit points they have left, or when they are below a quarter of their maximum. A player who has lost their connection flees when hit.&lt;br /&gt;
&lt;br /&gt;
== Fleeing ==&lt;br /&gt;
&amp;lt;code&amp;gt;flee&amp;lt;/code&amp;gt; costs 20 endurance and runs through a random exit. The flee skill, dexterity and brain against the opponent's dexterity and brain decide how it goes: a bad try gives the opponent a free blow, a very bad one can leave the character in a panic, still fighting. See [[Manual:Game Mechanics/Skills#Fleeing|Skills]] and [[Help/Fleeing|help fleeing]].&lt;br /&gt;
&lt;br /&gt;
== Death ==&lt;br /&gt;
A character that dies leaves a corpse with everything they carried. The killer, and the group with them, get the monster's experience (see [[Manual:Game Mechanics/Levels#Experience from a kill|Levels]]); a player who dies loses some experience ([[Manual:Game Mechanics/Levels#Losing experience|Levels]], [[Help/Die|help death]]). Killing a player gives no experience, and killing someone protected by the law is a crime.&lt;br /&gt;
&lt;br /&gt;
== Spells in a fight ==&lt;br /&gt;
An attack spell is worked out much like a blow (&amp;lt;code&amp;gt;spell_bonus()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;experience.cpp&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;spell_offensive()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;magic.cpp&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
 bonus = 2 &amp;amp;times; (caster's magic or divine - target's brain)&lt;br /&gt;
       + 2 &amp;amp;times; (caster's skill in the spell - target's defence against it)&lt;br /&gt;
       + caster's bonuses - target's bonuses&lt;br /&gt;
&lt;br /&gt;
at least -50, plus an open-ended roll, looked up in the spell's damage table in &amp;lt;code&amp;gt;vme/etc/spells.def&amp;lt;/code&amp;gt;. The spell uses magic or divine as the spell's &amp;lt;code&amp;gt;realm&amp;lt;/code&amp;gt; says. The target's defence is the best of half their skill in that spell and their skill in its sphere (for a monster, half its sphere skill). The caster gets their &amp;lt;code&amp;gt;offensive&amp;lt;/code&amp;gt; value, +50 with both hands free (no weapon and no shield), and -25 if they can't see the target; the target gets their &amp;lt;code&amp;gt;defensive&amp;lt;/code&amp;gt; value, the craftsmanship and magic of the armour where the spell lands, and +25 for protection from good or evil. A target who is asleep doesn't defend: only the bonuses count against the caster's ability and skill. The target's shield can block or soften the spell as it does a blow, as &amp;lt;code&amp;gt;spells.def&amp;lt;/code&amp;gt; says for each spell. &amp;lt;code&amp;gt;wstat &amp;amp;lt;caster&amp;amp;gt; splcombat &amp;amp;lt;target&amp;amp;gt; &amp;amp;lt;spell&amp;amp;gt;&amp;lt;/code&amp;gt; shows the breakdown.&lt;br /&gt;
&lt;br /&gt;
== Consider ==&lt;br /&gt;
&amp;lt;code&amp;gt;consider&amp;lt;/code&amp;gt; (a skill; a player must have practised it) estimates how many rounds the other would need to kill you: it works out the damage of rolls of 5, 50 and 95 against your body, takes the average, and divides your maximum hit points by it. It doesn't count spells, breath, helpers, or how often blows miss.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Rounds !! Message&lt;br /&gt;
|-&lt;br /&gt;
| 1 || RUN AWAY!&lt;br /&gt;
|-&lt;br /&gt;
| 2 || You ARE mad!&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Very risky indeed!&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Quite a risk.&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Perhaps you would have time to flee.&lt;br /&gt;
|-&lt;br /&gt;
| 6 to 7 || You got a fair chance of fleeing.&lt;br /&gt;
|-&lt;br /&gt;
| 8 to 10 || You got a very good chance of fleeing.&lt;br /&gt;
|-&lt;br /&gt;
| 11 or more || Plenty of time to flee.&lt;br /&gt;
|}&lt;br /&gt;
A monster 10 or more levels above the player is also &amp;quot;probably out of your league&amp;quot;. A god sees the number of rounds both ways and the breakdown. See [[Help/Consider|help consider]].&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Game_Mechanics/Monsters&amp;diff=3241</id>
		<title>Manual:Game Mechanics/Monsters</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Game_Mechanics/Monsters&amp;diff=3241"/>
		<updated>2026-11-15T06:27:24Z</updated>

		<summary type="html">&lt;p&gt;Agent-mud: checked against the current code (wiki review 2026-11-15)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what a monster's numbers do and how to balance a monster against the players who will meet it. How to write monsters, their fields and the &amp;lt;code&amp;gt;%reset&amp;lt;/code&amp;gt; commands that load them is in [[Manual:Zone Manual/The NPC Section|the Zone Manual]], with the templates on [[Manual:Zone Manual/The NPC Section/NPC macros|NPC macros]]. The macros named here come with &amp;lt;code&amp;gt;#include &amp;amp;lt;macros.h&amp;amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Level ==&lt;br /&gt;
A monster's &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; is 0 to 199; vmc refuses other values. Mortal players are level 1 to 50, though their virtual level goes on (see [[Manual:Game Mechanics/Levels|Levels]]). The level decides how many points the monster's abilities and weapon and spell skills get (below) and how much experience it gives:&lt;br /&gt;
* 15% more for each level the monster is above the player (up to a cap, see [[Manual:Game Mechanics/Levels#Experience from a kill|Levels]]), 15% less for each level below; a monster seven levels below a player gives nothing;&lt;br /&gt;
* in a group, a member more than five levels below the group's best loses 7% for each level beyond five.&lt;br /&gt;
So an area works best when its monsters span about ten levels: below that range they give no experience, above it they kill. A goblin camp for beginners might be level 1 to 8, an orc fortress 10 to 20.&lt;br /&gt;
&lt;br /&gt;
Monsters above level 50 hit harder still: the roll of each blow and attack spell is multiplied by (level - 30) / 25 (&amp;lt;code&amp;gt;roll_boost()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;vme/src/fight.cpp&amp;lt;/code&amp;gt;), so a level 60 monster rolls 1.2 times as high, a level 100 one 2.8 times, a level 199 one 6.8 times. For levels 51 to 54 the factor is below 1 (0.84 at level 51), so those monsters roll lower than a level 50 one. Players are never above level 50, so this only works for monsters (and gods).&lt;br /&gt;
&lt;br /&gt;
== Abilities ==&lt;br /&gt;
A monster's abilities are given as percentages, not values: &amp;lt;code&amp;gt;MSET_ABILITY(str, dex, con, hpp, bra, cha, mag, div)&amp;lt;/code&amp;gt;. The eight must add up to 100, or vmc stops (&amp;quot;Abilities in '...' sums up to ..., and not 100&amp;quot;). Without it a monster has STR 40, DEX 30, CON 10, HPP 15, BRA 3, CHA 2.&lt;br /&gt;
&lt;br /&gt;
vmc gives the monster 96 &amp;amp;times; level points and spends each ability's share of them (&amp;lt;code&amp;gt;set_points()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;vme/src/vmc/vmc_process.cpp&amp;lt;/code&amp;gt;). Points get dearer as they are bought: the first ''level'' + 1 points of an ability cost 10 each, the next ''level'' + 1 cost 20 each, and so on. A high percentage therefore gives less than its share:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Level !! 5% !! 10% !! 15% !! 20% !! 25% !! 30% !! 40% !! 50%&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 0 || 0 || 1 || 1 || 2 || 2 || 2 || 3&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 2 || 4 || 6 || 7 || 9 || 10 || 12 || 14&lt;br /&gt;
|-&lt;br /&gt;
| 10 || 4 || 9 || 12 || 15 || 17 || 19 || 23 || 27&lt;br /&gt;
|-&lt;br /&gt;
| 20 || 9 || 19 || 24 || 29 || 34 || 39 || 46 || 53&lt;br /&gt;
|-&lt;br /&gt;
| 30 || 14 || 28 || 37 || 44 || 51 || 58 || 69 || 79&lt;br /&gt;
|-&lt;br /&gt;
| 50 || 24 || 48 || 61 || 73 || 85 || 97 || 115 || 131&lt;br /&gt;
|-&lt;br /&gt;
| 100 || 48 || 96 || 122 || 146 || 170 || 194 || 229 || 261&lt;br /&gt;
|-&lt;br /&gt;
| 150 || 72 || 144 || 183 || 219 || 255 || 291 || 343 || 391&lt;br /&gt;
|-&lt;br /&gt;
| 199 || 95 || 191 || 243 || 291 || 338 || 386 || 454 || 500&lt;br /&gt;
|}&lt;br /&gt;
No value goes above 500: vmc cuts it there and warns &amp;quot;An ability is ... points&amp;quot;. Spend nothing on both magic and divine: a monster's spells use only one of them (see [[Manual:Game Mechanics/Abilities|Abilities]]). A warrior wants strength (damage), dexterity (defence) and hit points; a caster wants magic or divine, and brain to resist spells.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vmc -v&amp;lt;/code&amp;gt; prints the values it worked out, with the hit points in the HIT column:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                      STR  DEX  CON  HIT  BRA  CHA  MAG  DIV&lt;br /&gt;
&lt;br /&gt;
black_dragon           44   32   32  106   32   32   44    0&lt;br /&gt;
young_dragon           51   28   28   94   44   28   37    0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(the two dragons in the example at the end of this page).&lt;br /&gt;
&lt;br /&gt;
== Hit points ==&lt;br /&gt;
A monster's hit points are 3 &amp;amp;times; HPP + 10; &amp;lt;code&amp;gt;hit&amp;lt;/code&amp;gt; in the zone is ignored. With the HPP percentage:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Level !! 1 !! 5 !! 10 !! 20 !! 30 !! 50 !! 75 !! 100 !! 150 !! 199&lt;br /&gt;
|-&lt;br /&gt;
| HPP 10% || 10 || 22 || 37 || 67 || 94 || 154 || 226 || 298 || 442 || 583&lt;br /&gt;
|-&lt;br /&gt;
| HPP 15% (default) || 13 || 28 || 46 || 82 || 121 || 193 || 286 || 376 || 559 || 739&lt;br /&gt;
|-&lt;br /&gt;
| HPP 20% || 13 || 31 || 55 || 97 || 142 || 229 || 340 || 448 || 667 || 883&lt;br /&gt;
|-&lt;br /&gt;
| HPP 30% || 16 || 40 || 67 || 127 || 184 || 301 || 448 || 592 || 883 || 1,168&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Weapon and spell skills ==&lt;br /&gt;
A monster knows weapons and spells by family and sphere only: one value for all swords, one for all fire spells. &amp;lt;code&amp;gt;MSET_WEAPON(axe_ham, sword, club_mace, pole, unarmed, special)&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;MSET_SPELL(div, pro, det, sum, cre, min, hea, col, cel, int, ext)&amp;lt;/code&amp;gt; give them as percentages, and the weapons and spells together must add up to 100 (&amp;quot;Spells&amp;amp;weapons in '...' sums up to ...&amp;quot;). The default is 100% unarmed. The families are:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Family !! Weapons&lt;br /&gt;
|-&lt;br /&gt;
| axe_ham || axes and hammers&lt;br /&gt;
|-&lt;br /&gt;
| sword || swords, daggers, rapiers&lt;br /&gt;
|-&lt;br /&gt;
| club_mace || clubs, maces, flails, morning stars&lt;br /&gt;
|-&lt;br /&gt;
| pole || quarterstaff, spear, halberd, bardiche, scythe, trident&lt;br /&gt;
|-&lt;br /&gt;
| unarmed || fist, kick, claw, bite, sting, crush: all natural attacks&lt;br /&gt;
|-&lt;br /&gt;
| special || whip, bow, crossbow, sling&lt;br /&gt;
|}&lt;br /&gt;
The spheres are divine, protection, detection, summoning, creation, mind, heat (fire), cold, cell (electricity), internal (poison) and external (acid).&lt;br /&gt;
&lt;br /&gt;
vmc gives the monster 120 &amp;amp;times; level points for them, bought the same way as abilities. A quarter of its best family becomes its skill in all weapons, and a quarter of its best sphere its skill in all spells. A monster attacks with its skill in the weapon's family, and defends against a weapon with half its skill in that weapon's family (or the quarter, if that is more). Spells work the same way: the spheres are both how well it casts and how well it resists. An orc with nothing in clubs fights badly with a club, and defends poorly against one: give a monster skill in what it wields and in what it will meet.&lt;br /&gt;
&lt;br /&gt;
== Natural attack and armour ==&lt;br /&gt;
&amp;lt;code&amp;gt;NATURAL_DEF(weapon, armour)&amp;lt;/code&amp;gt; sets what the monster hits with when it wields no weapon, and what protects it where it wears no armour. The default is &amp;lt;code&amp;gt;NATURAL_DEF(WPN_FIST, ARM_HLEATHER)&amp;lt;/code&amp;gt;. vmc takes any weapon type numbered from &amp;lt;code&amp;gt;WPN_FIST&amp;lt;/code&amp;gt; (34) to &amp;lt;code&amp;gt;WPN_CRUSH&amp;lt;/code&amp;gt; (124) in &amp;lt;code&amp;gt;vme/include/values.h&amp;lt;/code&amp;gt;; use a natural one: fist, kick, elbow, knee, claw, or one of the sized bites, stings, claws and crushes (&amp;lt;code&amp;gt;WPN_BITE_SMALL&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WPN_CLAW_LARGE&amp;lt;/code&amp;gt;...). &amp;lt;code&amp;gt;WPN_CRUSH_LARGE&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;WPN_CRUSH_HUGE&amp;lt;/code&amp;gt; are above that range and refused. The armour is one of &amp;lt;code&amp;gt;ARM_CLOTHES&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ARM_LEATHER&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ARM_HLEATHER&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ARM_CHAIN&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ARM_PLATE&amp;lt;/code&amp;gt;; it decides which column of the attacker's damage table is used (see [[Manual:Game Mechanics/Objects#Weapons|Objects]]).&lt;br /&gt;
&lt;br /&gt;
A natural attack hurts more the heavier the monster is: the roll is cut to a part of itself before the damage table, by the monster's &amp;lt;code&amp;gt;weight&amp;lt;/code&amp;gt; in pounds:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Weight !! up to 5 !! 6 to 40 !! 41 to 160 !! 161 to 500 !! over 500&lt;br /&gt;
|-&lt;br /&gt;
| Size || tiny || small || medium || large || huge&lt;br /&gt;
|-&lt;br /&gt;
| Roll counts || 50% || 60% || 70% || 80% || 100%&lt;br /&gt;
|}&lt;br /&gt;
The default weight is 120 pounds, medium. A rat's bite should not hurt like a dragon's.&lt;br /&gt;
&lt;br /&gt;
== Other numbers ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Range !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;offensive&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;defensive&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;ATTACK_DEFENSE(off, def)&amp;lt;/code&amp;gt;) || -1000 to 1000, default 0 || Added to every attack the monster makes, and to its defence against every attack, in melee and against spells. 25 is about what not being able to see the opponent costs.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;speed&amp;lt;/code&amp;gt; || 4 to 200, default 12 || Lower is faster. A monster at speed 6 gets two attacks a round, at speed 4 three. Slower than 12 doesn't give fewer attacks: as long as one blow fits in a round, it attacks every round, and once it doesn't fit (above speed 35 with a natural attack, 20 with a one-handed weapon, 16 with a two-handed one) it never attacks in melee. See [[Manual:Game Mechanics/Combat#Rounds|Combat]].&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;alignment&amp;lt;/code&amp;gt; || -1000 to 1000 || 350 and up is good, -350 and down evil. A good player gets 20% more experience for killing an evil monster, an evil one 10% more for a good monster; killing changes the killer's alignment.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt; || -500 to 499, default 100 || The experience the monster gives a single player of its own level, before the adjustments on [[Manual:Game Mechanics/Levels#Experience from a kill|Levels]]. 0 gives none; below 0 is a penalty for killing it.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;money&amp;lt;/code&amp;gt; || || vmc warns, without stopping, when a monster carries more than its level's share: level &amp;amp;times; 5 iron pieces up to level 20, &amp;amp;times; 10 up to 100, &amp;amp;times; 15 up to 150, &amp;amp;times; 20 up to 200.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== How much experience ==&lt;br /&gt;
The default of 100 suits an ordinary monster. A monster that is harder to kill than its level shows, or more dangerous, should give more; one that is easier should give less. As a guide, add to 100:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! The monster !! Add&lt;br /&gt;
|-&lt;br /&gt;
| has a breath weapon || +50 (the dragon templates have &amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt; 150 to 160)&lt;br /&gt;
|-&lt;br /&gt;
| has a dangerous fighting routine, such as fleeing to heal and coming back || +20 to +50&lt;br /&gt;
|-&lt;br /&gt;
| is poisonous: a player can die after the fight is won || +20&lt;br /&gt;
|-&lt;br /&gt;
| is invisible: players who can't see it can't attack it || +15&lt;br /&gt;
|-&lt;br /&gt;
| casts spells strong for its level || +10 to +30&lt;br /&gt;
|-&lt;br /&gt;
| hides || +10&lt;br /&gt;
|-&lt;br /&gt;
| ambushes players || +10&lt;br /&gt;
|-&lt;br /&gt;
| gets help from others, or is guarded by monsters that rescue it || +5 to +50&lt;br /&gt;
|-&lt;br /&gt;
| is aggressive || +5&lt;br /&gt;
|-&lt;br /&gt;
| sees invisible and is aggressive || +5&lt;br /&gt;
|-&lt;br /&gt;
| rescues others, and so gets into every fight || -5&lt;br /&gt;
|-&lt;br /&gt;
| leaves thieves alone (&amp;lt;code&amp;gt;NPC_NICE_THIEF&amp;lt;/code&amp;gt;) || -5&lt;br /&gt;
|-&lt;br /&gt;
| is blind || -15&lt;br /&gt;
|-&lt;br /&gt;
| wields a weapon of a family it has no skill in || -50&lt;br /&gt;
|}&lt;br /&gt;
Don't add for the wands, scrolls or magic items a monster carries: the items are reward enough.&lt;br /&gt;
&lt;br /&gt;
== Spells and breath ==&lt;br /&gt;
A monster casts in combat with &amp;lt;code&amp;gt;combat_mag@function(attack_spell, defence_spell, percent, speed)&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;function.zon&amp;lt;/code&amp;gt;: it casts the attack spell, and the defence spell (such as a heal) when its hit points fall below ''percent''; ''speed'' is how many rounds between spells, 1 to 5. Either spell can be &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; for none.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilcopy combat_mag@function(&amp;quot;fireball&amp;quot;, &amp;quot;heal&amp;quot;, 25, 2);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A spell is cast with the monster's magic or divine (whichever the spell uses), against the target's brain, and with its skill in the spell's sphere against the target's. Give a caster both: &amp;lt;code&amp;gt;MSET_ABILITY&amp;lt;/code&amp;gt; with magic or divine, and &amp;lt;code&amp;gt;MSET_SPELL&amp;lt;/code&amp;gt; with the sphere of its spells. Breath weapons are spells too (&amp;quot;acid breath&amp;quot;, &amp;quot;fire breath&amp;quot;, &amp;quot;frost breath&amp;quot;, &amp;quot;gas breath&amp;quot;, &amp;quot;light breath&amp;quot;...), and the dragon templates cast them with &amp;lt;code&amp;gt;combat_mag&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Other behaviour comes from DIL in &amp;lt;code&amp;gt;function.zon&amp;lt;/code&amp;gt; as well, for example &amp;lt;code&amp;gt;aggressive@function&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;teamwork@function&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rescue@function&amp;lt;/code&amp;gt;; the comment above each tells its arguments. The old specials &amp;lt;code&amp;gt;SFUN_COMBAT_MAGIC&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;SFUN_BREATH_WEAPON&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;SFUN_AGGRESSIVE&amp;lt;/code&amp;gt; are gone.&lt;br /&gt;
&lt;br /&gt;
== Templates ==&lt;br /&gt;
&amp;lt;code&amp;gt;macros.h&amp;lt;/code&amp;gt; includes a large set of ready-made monsters: &amp;lt;code&amp;gt;mhumanoid.h&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;chumanoid.h&amp;lt;/code&amp;gt; (people and children of every race and trade), &amp;lt;code&amp;gt;monster.h&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fantasy.h&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plant.h&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;aquatic.h&amp;lt;/code&amp;gt; (animals, dragons, plants, sea creatures). Look at how they are made before making your own; most monsters in the public zones start from one. Most take a level and a sex, such as &amp;lt;code&amp;gt;M_DRAGON_BLACK_SMALL(level, sex)&amp;lt;/code&amp;gt;, and set the race, abilities, skills, natural attack, behaviour and experience.&lt;br /&gt;
&lt;br /&gt;
== Example: a black dragon ==&lt;br /&gt;
Made by hand, a female black dragon of level 30 with an acid breath:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
black_dragon&lt;br /&gt;
names {&amp;quot;black dragon&amp;quot;, &amp;quot;dragon&amp;quot;}&lt;br /&gt;
title &amp;quot;a black dragon&amp;quot;&lt;br /&gt;
descr &amp;quot;A black dragon lies here, watching you.&amp;quot;&lt;br /&gt;
race RACE_DRAGON_BLACK&lt;br /&gt;
sex SEX_FEMALE&lt;br /&gt;
level 30&lt;br /&gt;
height 625&lt;br /&gt;
weight 1250&lt;br /&gt;
alignment -900&lt;br /&gt;
NATURAL_DEF(WPN_CLAW_MEDIUM, ARM_PLATE)&lt;br /&gt;
MSET_ABILITY(20,12,12,12,12,12,20,0)&lt;br /&gt;
MSET_WEAPON(10,10,10,5,30,5)&lt;br /&gt;
MSET_SPELL(0,0,0,0,0,0,0,0,0,0,30)&lt;br /&gt;
exp 150&lt;br /&gt;
dilcopy combat_mag@function(&amp;quot;acid breath&amp;quot;, &amp;quot;&amp;quot;, 25, 2);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Height is in centimetres, weight in pounds. At 1,250 pounds she is huge: her claws use the whole roll.&lt;br /&gt;
* The abilities add up to 100, with most in strength and magic; the weapons (70) and the spells (30) together add up to 100, with natural attacks and the acid (external) sphere first.&lt;br /&gt;
* &amp;lt;code&amp;gt;exp 150&amp;lt;/code&amp;gt;: 100, and 50 for the breath weapon.&lt;br /&gt;
The same from a template, which also makes her aggressive:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
young_dragon&lt;br /&gt;
names {&amp;quot;young black dragon&amp;quot;, &amp;quot;black dragon&amp;quot;, &amp;quot;dragon&amp;quot;}&lt;br /&gt;
title &amp;quot;a young black dragon&amp;quot;&lt;br /&gt;
descr &amp;quot;A young black dragon hisses at you.&amp;quot;&lt;br /&gt;
M_DRAGON_BLACK_SMALL(30, SEX_FEMALE)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>