Lua functions

SpellHealPct

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

Historical signature: SpellHealPct(heal_type, percentage, current_value, caster_value, target, crit_mod, no_calcs, custom_spell_name)

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

Function: SpellHealPct(heal_type, percentage, current_value, caster_value, target, crit_mod, no_calcs, custom_spell_name)

Description: Heal or Increase Power percentage of a Target inside of a spell script. heal_type is "heal" or "power".

Parameters:

  • heal_type (string) - String value heal_type.
  • percentage (int32) - Integer value percentage.
  • current_value (int32) - Integer value current_value.
  • caster_value (int32) - Integer value caster_value.
  • target (Spawn) - Spawn object representing target.
  • crit_mod (int32) - Integer value crit_mod.
  • no_calcs (int32) - Integer value no_calcs.
  • custom_spell_name (string) - String custom_spell_name.

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.

SpellHealPct("Heal", HealAmt, false, true, Caster, 1, true, "Life Draw")

Evidence: server/Spells/Fighter/Crusader/Shadowknight/SiphonStrike.lua:20; binding EQ2Emu_lua_SpellHealPct.

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