Lua functions

HasSpell

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

Historical signature: HasSpell(player, spellid, tier)

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

Function: HasSpell(player, spellid, tier)

Description: Return's true if the player has the spellid specified of the tier.

Parameters:

  • player (Spawn) - Spawn object representing player.
  • spellid (uint32) - Integer value spellid.
  • tier (uint16) - Integer value tier.

Returns: Return's true if the player has the spell id with the tier (or higher tier). Otherwise false.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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