Historical signature: GetSkill(spawn, name)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetSkill(spawn, name)
Description:
Gets the skill object reference for a spawn by name.
Parameters:
spawn (Spawn) - Spawn object representing spawn.
name (string) - String name.
Returns: Skill userdata, or no value when the entity or named skill is unavailable.
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.
local skill = GetSkill(Spawn, "Mining")
Evidence: server/SpawnScripts/DarkBargainers/SasitSoroth.lua:263; binding EQ2Emu_lua_GetSkill.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.