Lua functions

AddLanguage

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

Historical signature: AddLanguage(Player, LanguageID)

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

Function: AddLanguage(Player, LanguageID)

Description: Add a Language to a Player by the Language ID in the Database (within the languages table).

Parameters:

  • Player: Spawn - The spawn or entity involved.
  • LanguageID: int32 - Integer value.

Returns: None.

Notes:

  • See the languages table for the LanguageID.

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.

AddLanguage(Spawn, 7)

Evidence: server/ItemScripts/AyrDalLanguagePrimer.lua:11; binding EQ2Emu_lua_AddLanguage.

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