Page 1 of 1

New Lua Function: GetPet(Spawn)

Posted: Sun Sep 30, 2012 5:26 pm
by Jabantiz
This will return the pet of the given spawn.

Code: Select all

function cast(Caster, Target, PetID)
	SummonPet(Caster, PetID)
	pet = GetPet(Caster)
	SetSpellList(pet, 1)
end