Lua functions

HasLanguage

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

Historical signature: HasLanguage(player, language_id)

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

Function: HasLanguage(player, language_id)

Description: Return's true if the player has the language_id specified.

Parameters:

  • player (Spawn) - Spawn object representing player.
  • language_id (uint32) - Integer value language_id.

Returns: True if the language_id has been obtained by the player, otherwise false.

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.

if HasLanguage(Spawn,15) then

Evidence: server/SpawnScripts/BigBend/ArmsdealerBlort.lua:22; binding EQ2Emu_lua_HasLanguage.

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