Lua functions

RemoveSkill

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

Historical signature: RemoveSkill(player_spawn, skill_id, more_to_remove)

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

Function: RemoveSkill(player_spawn, skill_id, more_to_remove)

Description: Remove's the skill from the player's skill list.

Parameters:

  • player_spawn (Spawn) - Spawn object representing player_spawn.
  • skill_id (uint32) - Integer value skill_id.
  • more_to_remove (bool) - Boolean flag more_to_remove.

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.

RemoveSkill(Player, skill_id, index < #removals)

Evidence: server/SpawnScripts/Generic/ClassChangeModule.lua:410; binding EQ2Emu_lua_RemoveSkill.

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