Lua functions

GetRaceBaseType

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

Historical signature: GetRaceBaseType(Spawn)

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

Function: GetRaceBaseType(Spawn)

Description: Returns the base race category of the spawn, refer to the database race types tables.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

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 GetRaceBaseType(Target) == 333 then

Evidence: server/Spells/ClassicRefresh/Fighter/Crusader/Paladin/GloriousStrike-2553798.lua:20; binding EQ2Emu_lua_GetRaceBaseType.

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