Function: GetSkill(spawn, name)
Description: Gets the skill object reference for a spawn by name.
Parameters:
spawn(Spawn) - Spawn object representingspawn.name(string) - Stringname.
Returns: Skill object reference.
GetSkillRegistered in this checkout as EQ2Emu_lua_GetSkill; implementation found at WorldServer/Lua/LuaFunctions.cpp:9471.
Historical signature: GetSkill(spawn, name)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the skill object reference for a spawn by name.
Parameters:
spawn (Spawn) - Spawn object representing spawn.name (string) - String name.Returns: Skill object reference.
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.