836 B
836 B
Function: SummonDumbFirePet(spawn, target, pet_id, x, y, z)
Description: Summon a dumbfire pet with the pet_id (spawn database id).
Parameters:
spawn
(Spawn) - Spawn object referencespawn
.target
(Spawn) - Spawn object representingtarget
.pet_id
(uint32) - Integer valuepet_id
.x
(float) - Float valuex
.y
(float) - Float valuey
.z
(float) - Float valuez
.
Returns: None.
Example:
-- From Spells/Mage/Enchanter/Coercer/Puppetmaster.lua
function cast(Caster, Target, PetID)
local x = GetX(Caster)
local y = GetY(Caster)
local z = GetZ(Caster)
local count = 0;
while (count < 4) do
local pet = SummonDumbFirePet(Caster, Target, PetID, x, y, z)
if pet ~= nil then
CopySpawnAppearance(pet, Target)
SpawnSet(pet, "size", "6")
end