Lua functions

GetSpellID

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

Historical signature: GetSpellID()

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

Function: GetSpellID()

Description: Gets the spell id of the current spell.

Parameters: None.

Returns: None.

Checked example

Active call in a local runtime Lua script. Uses the current spell context. This is a contextual call pattern, not a tested standalone script.

local Spell = GetSpellID()

Evidence: server/Spells/Mage/Sorcerer/Warlock/SkeletalGrasp.lua:31; binding EQ2Emu_lua_GetSpellID.

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