Lua functions

CastCustomSpell

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

Historical signature: CastCustomSpell(spell, caster, target)

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

Function: CastCustomSpell(spell, caster, target)

Description: Casts a custom spell that has been created through a Spell Script.

Parameters:

  • spell (Spell) - Spell object representing spell.
  • caster (Spawn) - Spawn object representing caster.
  • target (Spawn) - Spawn object representing target.

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.

CastCustomSpell(Spell, Caster, Target)

Evidence: server/Spells/Commoner/BlightoftheMorning.lua:26; binding EQ2Emu_lua_CastCustomSpell.

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