Lua functions

GetSpellDataIndex

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

Historical signature: GetSpellDataIndex(spell, idx, secondfield)

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

Function: GetSpellDataIndex(spell, idx, secondfield)

Description: Gets the spell data by its index.

Parameters:

  • spell (Spell) - Spell object representing spell.
  • idx (uint32) - Integer value idx.
  • secondfield (bool) - Boolean flag secondfield.

Returns: Return value varies on the data type in the database for the spell.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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