<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.slothmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3AEvery_corpse</id>
		<title>MUDL:Every corpse - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.slothmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3AEvery_corpse"/>
		<link rel="alternate" type="text/html" href="http://wiki.slothmud.com/wiki/index.php?title=MUDL:Every_corpse&amp;action=history"/>
		<updated>2026-04-05T02:03:56Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wiki.slothmud.com/wiki/index.php?title=MUDL:Every_corpse&amp;diff=65145&amp;oldid=prev</id>
		<title>Teker: /* Command Syntax */</title>
		<link rel="alternate" type="text/html" href="http://wiki.slothmud.com/wiki/index.php?title=MUDL:Every_corpse&amp;diff=65145&amp;oldid=prev"/>
				<updated>2017-05-18T15:49:04Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Command Syntax&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:49, 18 May 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;addproc &amp;lt;mobile&amp;gt; mudl&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;setproc &amp;lt;mobile&amp;gt; ## every_corpse&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;addproc room mudl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;addproc room mudl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setproc room ## every_corpse&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setproc room ## every_corpse&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot; &gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setproc area ## every_corpse&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setproc area ## every_corpse&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Global Variables =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Global Variables =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Teker</name></author>	</entry>

	<entry>
		<id>http://wiki.slothmud.com/wiki/index.php?title=MUDL:Every_corpse&amp;diff=65144&amp;oldid=prev</id>
		<title>Teker: Created page with &quot; __TOC__  = Overview =  This MUDL function gets called each time a dead mobile is turned into a corpse.  It is called after every_death occurs.  This function is valid for the...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.slothmud.com/wiki/index.php?title=MUDL:Every_corpse&amp;diff=65144&amp;oldid=prev"/>
				<updated>2017-05-18T15:48:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; __TOC__  = Overview =  This MUDL function gets called each time a dead mobile is turned into a corpse.  It is called after every_death occurs.  This function is valid for the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
This MUDL function gets called each time a dead mobile is turned into a corpse.  It is called after every_death occurs.  This function is valid for the mobile that is killed, the room, and the rea/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Command Syntax =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
addproc room mudl&lt;br /&gt;
setproc room ## every_corpse&lt;br /&gt;
&lt;br /&gt;
addproc area mudl&lt;br /&gt;
setproc area ## every_corpse&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Global Variables =&lt;br /&gt;
&lt;br /&gt;
The following global variables are available:&lt;br /&gt;
{|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
! Name !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| %a&lt;br /&gt;
| Character&lt;br /&gt;
| The character that performed the kill that created the corpse.&lt;br /&gt;
|-&lt;br /&gt;
| %x&lt;br /&gt;
| Character&lt;br /&gt;
| The mobile that died to create the corpse.&lt;br /&gt;
|-&lt;br /&gt;
| %o&lt;br /&gt;
| Object&lt;br /&gt;
| The new corpse object.&lt;br /&gt;
|-&lt;br /&gt;
| %c&lt;br /&gt;
| Character&lt;br /&gt;
| The mobile that has the MUDL script is attached to or null if it's a room or area script.&lt;br /&gt;
|-&lt;br /&gt;
| %room&lt;br /&gt;
| Room&lt;br /&gt;
| The room in the game where the kill occurred.&lt;br /&gt;
|-&lt;br /&gt;
| %area&lt;br /&gt;
| Area&lt;br /&gt;
| The area (zone) in the game where the kill occurred.&lt;br /&gt;
|-&lt;br /&gt;
| %parent&lt;br /&gt;
| Character or Room or Area&lt;br /&gt;
| The in-game element that the MUDL script is attached to.  It will be identical to %c or %room or %area.&lt;br /&gt;
|-&lt;br /&gt;
| %procedure_index&lt;br /&gt;
| Integer&lt;br /&gt;
| The index of the current MUDL procedure on the %parent variable.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Return Values =&lt;br /&gt;
&lt;br /&gt;
The return value from this function is ignored.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Triggered Scripts =&lt;br /&gt;
&lt;br /&gt;
Events are triggered in the following order:&lt;br /&gt;
# All every_death scripts are run prior to every_corpse.&lt;br /&gt;
# Every_corpse scripts are triggered on the mobile that died.&lt;br /&gt;
# Every_corpse scripts are triggered on the room.&lt;br /&gt;
# Every_corpse scripts are triggered on the area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
addproc &amp;lt;mobile&amp;gt; mudl&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;mobile&amp;gt; ## every_corpse&lt;br /&gt;
msg_room(room(%c), 'MOBILE CORPSE!'),&lt;br /&gt;
msg_room(room(%c), 'CORPSE 1! c = ' + name(%c)),&lt;br /&gt;
msg_room(room(%c), 'CORPSE 2! a = ' + name(%a)),&lt;br /&gt;
msg_room(room(%c), 'CORPSE 2! x = ' + name(%x)),&lt;br /&gt;
msg_room(room(%o), 'CORPSE 2! o = ' + name(%o)),&lt;br /&gt;
msg_room(room(%o), 'CORPSE 2! room = ' + name(%room)),&lt;br /&gt;
msg_room(room(%o), 'CORPSE 2! area = ' + name(%area)),&lt;br /&gt;
destroy(%o),&lt;br /&gt;
return(false)&lt;br /&gt;
@&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;mobile&amp;gt; ## PROC_ENABLED 1&lt;br /&gt;
compile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
addproc &amp;lt;mobile&amp;gt; mudl&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;mobile&amp;gt; ## every_corpse&lt;br /&gt;
msg_room( room(%c), get_attr('death_msg') ),&lt;br /&gt;
make_obj( integer(get_attr('corpse_replacement_vnum') ), room(%c) ),&lt;br /&gt;
foreach(contents(%o), %9,&lt;br /&gt;
    teleport(%9, room(%c))&lt;br /&gt;
),&lt;br /&gt;
destroy(%o)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;mobile&amp;gt; ## corpse_replacement_vnum 5077&lt;br /&gt;
setproc &amp;lt;mobile&amp;gt; ## death_msg&lt;br /&gt;
The slime becomes a lifeless puddle of goo.@&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
You can destroy the corpse by calling destroy(%o).  This also destroys all objects in the corpse.  In order to preserve the objects, see the 2nd example above which uses teleport() to put the items in the room before destroying the corpse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:MUDL|Every_corpse]]&lt;/div&gt;</summary>
		<author><name>Teker</name></author>	</entry>

	</feed>