Lua functions

ApplySpellVisual

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

Historical signature: ApplySpellVisual(target, spell_visual)

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

Function: ApplySpellVisual(target, spell_visual)

Description:

Apply a spell visual from the spell visuals in the ReferenceList https://eq2emu.com/developers/references by client version. Older clients like KoS/DoF translate newer spell visuals to old via the spell_visuals table alternate_spell_visual.

Parameters:

  • target (Spawn) - Spawn object representing target.
  • spell_visual (uint32) - Integer value spell_visual.

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.

ApplySpellVisual(v,136)

Evidence: server/Spells/Commoner/DetectEvil.lua:14; binding EQ2Emu_lua_ApplySpellVisual.

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