<?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%2Fcrimes</id>
	<title>Manual:DIL Manual/crimes - 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%2Fcrimes"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/crimes&amp;action=history"/>
	<updated>2026-11-24T22:40:00Z</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/crimes&amp;diff=2924&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/crimes&amp;diff=2924&amp;oldid=prev"/>
		<updated>2026-11-14T23:13:02Z</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;= crimes =&lt;br /&gt;
'''Field''' (integer, read/write; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.crimes : integer&lt;br /&gt;
&lt;br /&gt;
A count of the crimes the player has been charged with, saved with the player.&lt;br /&gt;
&lt;br /&gt;
Nothing in the server raises it any more: the old crime counting in justice.cpp is commented out, and [[Manual:DIL Manual/logcrime()|logcrime()]] leaves it alone. It keeps what was saved, and what DIL programs set. In the public zones, Midgaard's police won't take on a deputy whose count is above 0 (midgaard.zon), the police academy throws such a deputy out (function.zon), and the arena saves and restores it around a fight (arena.zon).&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Players only. On an NPC, an object, a room or null the field fails.&lt;br /&gt;
* Stored as a 16-bit unsigned number: values outside 0 to 65535 wrap around.&lt;br /&gt;
* Whether a player is wanted shows in [[Manual:DIL Manual/charflags|charflags]] (&amp;lt;code&amp;gt;CHAR_OUTLAW&amp;lt;/code&amp;gt;), not here.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer clean_record(pc : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (pc.type != UNIT_ST_PC)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   if (pc.crimes &amp;gt; 0)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   return (not isset(pc.charflags, CHAR_OUTLAW));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether a player has no crimes on record and is not an outlaw, as Midgaard's police check before taking on a deputy (midgaard.zon).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/charflags|charflags]]&lt;br /&gt;
* [[Manual:DIL Manual/logcrime()|logcrime()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>