You are viewing an old version of this page. Return to the latest version.
Version of 20:18, 20 April 2013 by I need to Update My Profile
No categories assigned
LUA:SummonPet
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SummonPet()
Summons a combat pet for the given spawn
Syntax
SummonPet(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int32)
- param1 is the spawn getting the pet
- param2 is the DB id of the pet to spawn
Usage
function cast(Caster, Target) SummonPet(Caster, 340083) end function remove(Caster, Target) pet = GetPet(Caster) if pet ~= nil then DismissPet(pet) end end
A normal pet spell.