Lua functions

GetDeity

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

Historical signature: GetDeity(spawn)

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

Function: GetDeity(spawn)

Description: Gets the deity of the spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 of the Spawn's Deity.

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.

if GetDeity(Spawn) == 1 then

Evidence: server/SpawnScripts/antonica/DaryannStormrider.lua:17; binding EQ2Emu_lua_GetDeity.

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