Historical signature: DeleteSpellBook(player, type_selection)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: DeleteSpellBook(player, type_selection)
Description:
Delete all spell entries in a spell book. type_selection represents DELETE_TRADESKILLS = 1, DELETE_SPELLS = 2, DELETE_COMBAT_ART = 4, DELETE_ABILITY = 8, DELETE_NOT_SHOWN = 16. The type_selection can be an added combination of the delete options, for example a value of 7 (1+2+4) would delete tradeskills, spells and combat arts.
Parameters:
player (Spawn) - Spawn object representing player.
type_selection (uint8) - Integer value type_selection.
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.
DeleteSpellBook(player, 6)
Evidence: server/SpawnScripts/Generic/SubClassToCommoner.lua:45; binding EQ2Emu_lua_DeleteSpellBook.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.