<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3ACureByType</id>
	<title>LUA:CureByType - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3ACureByType"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:CureByType&amp;action=history"/>
	<updated>2026-07-12T08:26:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:CureByType&amp;diff=5247&amp;oldid=prev</id>
		<title>Thefoof: Created page with &quot;= LUA Functions: CureByType() = Cures detriments determined by the type of detriment.   ==== Syntax ==== CureByType(param1, param2, param3, param4, param5)   ==== Parameters ====...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:CureByType&amp;diff=5247&amp;oldid=prev"/>
		<updated>2014-01-17T03:29:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: CureByType() = Cures detriments determined by the type of detriment.   ==== Syntax ==== CureByType(param1, param2, param3, param4, param5)   ==== Parameters ====...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: CureByType() =&lt;br /&gt;
Cures detriments determined by the type of detriment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
CureByType(param1, param2, param3, param4, param5)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (int8), ''param2'' (int8&lt;br /&gt;
: ''param1'' is the max amount of detriments allowed to be cured&lt;br /&gt;
: ''param2'' is the type of detriment to be cured&lt;br /&gt;
; Optional - ''param3'' (string), ''param4'' (int8), ''param5'' (Spawn)&lt;br /&gt;
: ''param3'' is an override of the spellname for the dispell packet (example: one cure spell has a different name than the cure effect, use the effect name)&lt;br /&gt;
: ''param4'' is the max level of the effect allowed to be cured, if left 0 any level will be cured&lt;br /&gt;
: ''param5'' is a target override if you wish to not use every target of the spell&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function cast(Caster, Target)&lt;br /&gt;
    CureByType(1, 3, &amp;quot;Cure&amp;quot;, 10)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will cure one Noxious effect from the spell's targets, up to a max level of 10, and send the spellname as &amp;quot;Cure&amp;quot; in the dispell packet.&lt;/div&gt;</summary>
		<author><name>Thefoof</name></author>
		
	</entry>
</feed>