Lua functions

GetSkillIDByName

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

Historical signature: GetSkillIDByName(name)

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

Function: GetSkillIDByName(name)

Description: Get the skill id by its name.

Parameters:

  • name (string) - String name.

Returns: UInt32 skill id of the skill name.

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.

AddSkillBonus(Target, GetSkillIDByName("Focus"), Focus)

Evidence: server/Spells/AA/UnwaveringResolve.lua:14; binding EQ2Emu_lua_GetSkillIDByName.

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