Lua functions

StartConversation

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

Historical signature: StartConversation(conversation, source, player, text, mp3, key1, key2, language, can_close)

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

Function: StartConversation(conversation, source, player, text, mp3, key1, key2, language, can_close)

Description: Begin a conversation with the Player from the Source Spawn with the previously established conversation options.

Parameters:

  • conversation (Conversation) - Conversation object representing conversation.
  • source (Spawn) - Spawn object representing source.
  • player (Spawn) - Spawn object representing player.
  • text (string) - String text.
  • mp3 (int32) - Integer value mp3.
  • key1 (int32) - Integer value key1.
  • key2 (int32) - Integer value key2.
  • language (int32) - Integer value language.
  • can_close (bool) - Boolean flag can_close.

Returns: None.

Checked example

Active call in a local runtime Lua script. Audio, keys, language, and close flag have defaults. The binding also handles arguments dynamically. This is a contextual call pattern, not a tested standalone script.

StartConversation(con, NPC, Spawn, "Where to?")

Evidence: server/SpawnScripts/antonica/AGriffonTamer.lua:91; binding EQ2Emu_lua_StartConversation.

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