<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.cyberlint.org/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3Adamage</id>
		<title>MUDL:damage - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.cyberlint.org/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3Adamage"/>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:damage&amp;action=history"/>
		<updated>2026-04-15T15:11:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>http://www.cyberlint.org/wiki/index.php?title=MUDL:damage&amp;diff=65259&amp;oldid=prev</id>
		<title>Teker: Created page with &quot; __TOC__   = Summary =  {|class=&quot;abilitiestable&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; ! Function Name | damage |- ! Settable | No |- ! Returns | Boolean |}   {|class=&quot;ab...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:damage&amp;diff=65259&amp;oldid=prev"/>
				<updated>2018-11-07T23:50:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; __TOC__   = Summary =  {|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; ! Function Name | damage |- ! Settable | No |- ! Returns | Boolean |}   {|class=&amp;quot;ab...&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;
&lt;br /&gt;
= Summary =&lt;br /&gt;
&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;
! Function Name&lt;br /&gt;
| damage&lt;br /&gt;
|-&lt;br /&gt;
! Settable&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
! Returns&lt;br /&gt;
| Boolean&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&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;
! Parameter Options&lt;br /&gt;
|-&lt;br /&gt;
| Victim (character), Amount (integer)&lt;br /&gt;
|-&lt;br /&gt;
| Victim (character), Amount (integer), Damage Type (string)&lt;br /&gt;
|-&lt;br /&gt;
| Victim (character), Attacker (character), Amount (integer)&lt;br /&gt;
|-&lt;br /&gt;
| Victim (character), Attacker (character), Amount (integer), Damage Type (string)&lt;br /&gt;
|-&lt;br /&gt;
| Victim (character), Attacker (character), Amount (integer), Damage Type (string), Damage Flags (integer)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This function deals damage to the victim.  If no attacker is specified, it is assumed some non-character effect is causing the damage (poison, trap, etc).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following damage flags can be combined to modify normal processing.&lt;br /&gt;
&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;
! Damage Flag !! Value !! Description&lt;br /&gt;
|-&lt;br /&gt;
| None || 0 || Normal Operation&lt;br /&gt;
|-&lt;br /&gt;
| HIT_ETHEREAL || 1 || Attack hits ethereal mobs in all cases.&lt;br /&gt;
|-&lt;br /&gt;
| SILENT_ATTACK || 2 || No messages are printed as part of the damage function.&lt;br /&gt;
|-&lt;br /&gt;
| BYPASS_SPECTRAL_SHIELD || 8&lt;br /&gt;
| Spectral shield has no effect.  Not needed for non-spell attacks that would normally bypass spectral shield.&lt;br /&gt;
|-&lt;br /&gt;
| BYPASS_SPELL_SHIELD || 16&lt;br /&gt;
| Spell shield has no effect.  Not needed for non-spell attacks that would normally bypass spell shield.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # on_foo&lt;br /&gt;
damage(%a, %a, 100, 'slash', 0)&lt;br /&gt;
return(true)&lt;br /&gt;
@&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # PROC_ENABLED 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:MUDL|damage]]&lt;/div&gt;</summary>
		<author><name>Teker</name></author>	</entry>

	</feed>