Historical signature: GetClass(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetClass(spawn)
Description:
Gets the adventure class of the Spawn.
Parameters:
spawn (Spawn) - Spawn object representing spawn.
Returns: UInt32 adventure class id for the Spawn. See https://github.com/emagi/eq2emu/blob/main/docs/data_types/classes.md for the ID numbers.
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.
GetClass (Spawn) == MONK or
Evidence: server/SpawnScripts/Generic/ClassSkillCheck.lua:129; binding EQ2Emu_lua_GetClass.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.