<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Frent</id>
	<title>Manual:DIL Manual/rent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Frent"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/rent&amp;action=history"/>
	<updated>2026-11-22T22:18:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/rent&amp;diff=2908&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/rent&amp;diff=2908&amp;oldid=prev"/>
		<updated>2026-11-14T23:12:13Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= rent =&lt;br /&gt;
'''Field''' (integer, read/write; units: objects).&lt;br /&gt;
&lt;br /&gt;
 obj.rent : integer&lt;br /&gt;
&lt;br /&gt;
What the object costs its owner to keep, per real day, in the money's base unit (as [[Manual:DIL Manual/cost|cost]]). It is the &amp;lt;code&amp;gt;rent&amp;lt;/code&amp;gt; line of the object in the zone file, 0 for most objects.&lt;br /&gt;
&lt;br /&gt;
Nothing charges it today. The server has code to bill a returning player for the time away (reception.cpp), but it is switched off (&amp;lt;code&amp;gt;DILWAY&amp;lt;/code&amp;gt; in pc_data.cpp), and &amp;lt;code&amp;gt;rent&amp;lt;/code&amp;gt; in server.cfg is 0 anyway. Scripts can still use the number, as the engraver in midgaard.zon does.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Objects only. On a character, a room or null it fails.&lt;br /&gt;
* Stored unsigned: don't assign a negative number.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer engrave_fee(item : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (item.type != UNIT_ST_OBJ)&lt;br /&gt;
      return (0);&lt;br /&gt;
   return ((5 * GOLD_MULT) + (item.rent * 3));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The engraver's fee in midgaard.zon: five gold pieces plus three times the item's rent.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/cost|cost]]&lt;br /&gt;
* [[Manual:DIL Manual/moneystring()|moneystring()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>