1
0
EQ2Emu/docs/lua_functions/SummonCosmeticPet.md
2025-05-25 21:42:32 -04:00

453 B

Function: SummonCosmeticPet(spawn, pet_id)

Description: Summon a cosmetic pet with the pet_id (spawn database id).

Parameters:

  • spawn (Spawn) - Spawn object reference spawn.
  • pet_id (uint32) - Integer value pet_id.

Returns: None.

Example:

-- From Spells/AA/SummonAnimatedTome.lua
function cast(Caster, Target, CritChance)
    AddSpellBonus(Target, 656, CritChance)
    SummonCosmeticPet(Caster, 150084)
end