Lua functions

SetCharacterTitlePrefix

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

Historical signature: SetCharacterTitlePrefix(spawn, titleName)

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

Function: SetCharacterTitlePrefix(spawn, titleName)

Description: Set's the character title prefix of the Spawn to the title name.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • titleName (string) - String titleName.

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.

SetCharacterTitlePrefix(Spawn, "Lord")

Evidence: server/SpawnScripts/IsleRefuge1/TitleBot.lua:17; binding EQ2Emu_lua_SetCharacterTitlePrefix.

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