Lua functions

AddConversationOption

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

Historical signature: AddConversationOption(ConversationOption, Message, FunctionName)

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

Function: AddConversationOption(ConversationOption, Message, FunctionName)

Description: Builds a conversation option into an existing ConversationOption from CreateConversation.

Parameters:

  • ConversationOption: ConversationOption - Conversation Option object to apply the new text and function call.
  • Message: string - String value option to display the player when StartConversation is called.
  • FunctionName: string - Function name that will be called if Player selects the option.

Returns: None.

Notes:

  • Must call CreateConversation() to instantiate the ConversationOption object before AddConversationOption can be used.

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.

AddConversationOption(con, "Next page", "offer")

Evidence: server/SpawnScripts/antonica/bookcasewindstalker.lua:40; binding EQ2Emu_lua_AddConversationOption.

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