Lua functions

SetSpellDisplayEffect

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

Historical signature: SetSpellDisplayEffect(spell, idx, field, percentage)

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

Function: SetSpellDisplayEffect(spell, idx, field, percentage)

Description: Set's the spell display effect value.

Parameters:

  • spell (Spell) - Spell object representing spell.
  • idx (uint32) - Integer value idx.
  • field (string) - String field.
  • percentage (uint8) - Integer value percentage.

Returns: None.

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.

SetSpellDisplayEffect(Spell, 0, "description", "Increases WIS of target by " .. Stat)

Evidence: server/ItemScripts/AssortedJungleNuts.lua:18; binding EQ2Emu_lua_SetSpellDisplayEffect.

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