<?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%3ASetSpellList</id>
	<title>LUA:SetSpellList - 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%3ASetSpellList"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetSpellList&amp;action=history"/>
	<updated>2026-07-13T15:47:06Z</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:SetSpellList&amp;diff=5067&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: SetSpellList() = Changes the given spawns primary and secondary spell lists   ==== Syntax ==== SetSpellList(param1, [param2], [param3])   ==== Parameters ==== ; ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetSpellList&amp;diff=5067&amp;oldid=prev"/>
		<updated>2013-09-12T20:14:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: SetSpellList() = Changes the given spawns primary and secondary spell lists   ==== Syntax ==== SetSpellList(param1, [param2], [param3])   ==== 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: SetSpellList() =&lt;br /&gt;
Changes the given spawns primary and secondary spell lists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
SetSpellList(param1, [param2], [param3])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn)&lt;br /&gt;
: ''param1'' is the spawn who's spell list we want to set&lt;br /&gt;
; Optional - ''param2'' (int32), ''param3'' (int32)&lt;br /&gt;
: ''param2'' is the id of the primary spell list&lt;br /&gt;
: ''param3'' is the id of the secondary spell list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function spawn(Spawn)&lt;br /&gt;
    SetSpellList(Spawn, 1234)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When the NPC spawns its primary spell list will be set to 1234 and secondary set to 0&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
''param1'' must be a NPC&lt;br /&gt;
&lt;br /&gt;
Spell list ID's come from the `spawn_npc_spells` table&lt;br /&gt;
&lt;br /&gt;
''param2'' and ''param3'' default to 0, which will clear the spell lists&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>