Lua functions

SummonPet

Registered in this checkout as EQ2Emu_lua_SummonPet; implementation found at WorldServer/Lua/LuaFunctions.cpp:6161.

Historical signature: SummonPet(spawn, pet_id, max_level)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: SummonPet(spawn, pet_id, max_level)

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

Parameters:

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

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

SummonPet(Caster, PetID, MaxLvl)

Evidence: server/Spells/ClassicRefresh/Mage/Enchanter/Illusionist/Personae-2552540.lua:13; binding EQ2Emu_lua_SummonPet.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.