Lua functions

AddMasterTitle

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

Historical signature: AddMasterTitle(TitleName, IsPrefix)

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

Function: AddMasterTitle(TitleName, IsPrefix)

Description: Creates a new Title to be used for Characters/Players with AddCharacterTitle

Parameters:

  • TitleName: string - String value of the new master title to be used for characters/players.
  • IsPrefix: int8 - If this title is a prefix or not, default is 0.

Returns: The Database ID of the new Title that is created.

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.

AddMasterTitle("Lord", 1)

Evidence: server/SpawnScripts/IsleRefuge1/TitleBot.lua:15; binding EQ2Emu_lua_AddMasterTitle.

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