No categories assigned
LUA:SummonDumbFirePet
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SummonDumbFirePet()
Summons a dumbfire pet
Syntax
SummonDumbFirePet(param1, param2, param3, [param4], [param5], [param6])
Parameters
- Required - param1 (Spawn), param2 (Spawn), param3 (int32)
- param1 is the spawn getting the pet
- param2 is the spawn the pet will attack
- param3 is the DB id of the pet to spawn
- Optional - param4 (float), param5 (float), param6 (float)
- param4 is the x-coordinate
- param5 is the y-coordinate
- param6 is the z-coordinate
Usage
function cast(Caster, Target) local x = GetX(Caster) local y = GetY(Caster) local z = GetZ(Caster) SummonDumbFirePet(Caster, Target, 4700878, math.random(0, 5) + x, math.random(0, 5) + y, math.random(0, 5) + z) SummonDumbFirePet(Caster, Target, 4700878, math.random(0, 5) + x, math.random(0, 5) + y, math.random(0, 5) + z) SummonDumbFirePet(Caster, Target, 4700878, math.random(0, 5) + x, math.random(0, 5) + y, math.random(0, 5) + z) end
Will summon 3 dumbfire pets at random locations around the caster
Notes
If the coordinates are left out the pet will spawn at the casters location.
The duration of the spell we determine how long the pets live.
The pets can only get agro on given target.
When the target dies, so does the pet.