<?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%3ACastSpell</id>
	<title>LUA:CastSpell - 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%3ACastSpell"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:CastSpell&amp;action=history"/>
	<updated>2026-07-11T14:11:55Z</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:CastSpell&amp;diff=4695&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: CastSpell() = Makes a spawn cast the given spell on the given target.   ==== Syntax ==== CastSpell(param1, param2, param3, [param4])   ==== Parameters ==== ; Req...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:CastSpell&amp;diff=4695&amp;oldid=prev"/>
		<updated>2012-10-16T04:21:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: CastSpell() = Makes a spawn cast the given spell on the given target.   ==== Syntax ==== CastSpell(param1, param2, param3, [param4])   ==== Parameters ==== ; Req...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: CastSpell() =&lt;br /&gt;
Makes a spawn cast the given spell on the given target.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
CastSpell(param1, param2, param3, [param4])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (int32), ''param3'' (int8)&lt;br /&gt;
: ''param1'' is the target&lt;br /&gt;
: ''param2'' is the spell id&lt;br /&gt;
: ''param3'' is the spell tier&lt;br /&gt;
; Optional - ''param4'' (Spawn)&lt;br /&gt;
: ''param4'' is the caster&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
    CastSpell(Spawn, 1, 1, NPC)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The NPC will cast spell 1 tier 1 on the spawn that hailed it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If left out the caster param (''param4'') will default to the target param (''param1'')&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>