This is meant to be used for spell scripts, it will summon a combat pet. The first param is the caster, whoever the pet will belong to, the second is the DB id of the pet, can use any npc in the spawn table. I modified the necro pet spell Undead Knight to pass a single value to the spell script, the DB id of some random skeleton, and changed the spell script to the following
Code: Select all
function cast(Caster, Target, PetID)
SummonPet(Caster, PetID)
end
This will spawn the pet at the casters location. This code will be on Dev SVN tonight.