Difference between revisions of "LUA:SetSpellList"
(Created page with "= LUA Functions: SetSpellList() = Changes the given spawns primary and secondary spell lists ==== Syntax ==== SetSpellList(param1, [param2], [param3]) ==== Parameters ==== ; ...") |
(No difference)
|
Latest revision as of 13:14, 12 September 2013
LUA Functions: SetSpellList()
Changes the given spawns primary and secondary spell lists
Syntax
SetSpellList(param1, [param2], [param3])
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's spell list we want to set
- Optional - param2 (int32), param3 (int32)
- param2 is the id of the primary spell list
- param3 is the id of the secondary spell list
Usage
function spawn(Spawn)
SetSpellList(Spawn, 1234)
end
When the NPC spawns its primary spell list will be set to 1234 and secondary set to 0
Notes
param1 must be a NPC
Spell list ID's come from the `spawn_npc_spells` table
param2 and param3 default to 0, which will clear the spell lists