mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
800 B
800 B
Function: SetSpellList(spawn, primary_list, secondary_list)
Description: Set the spell list of the Spawn for primary and secondary list.
Parameters:
spawn(Spawn) - Spawn object representingspawn.primary_list(uint32) - Integer valueprimary_list.secondary_list(uint32) - Integer valuesecondary_list.
Returns: None.
Example:
-- From SpawnScripts/Antonica/abloodsaberseditionist.lua
function ChooseClass(NPC)
SetClass = MakeRandomInt(1,2)
if SetClass == 1 then
SpawnSet(NPC,"class", 2)
SetSpellList(NPC, 451)
IdleAggressive(NPC)
DervishChain(NPC)
elseif SetClass == 2 then
SpawnSet(NPC, "class", 32)
SetSpellList(NPC, 469)
IdleAlert(NPC)
DervishLeather(NPC)
end