Lua functions

StartDialogConversation

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

Historical signature: StartDialogConversation(conversation, type, spawn, player, text, mp3, key1, key2, language, can_close)

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

Function: StartDialogConversation(conversation, type, spawn, 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.
  • type (int32) - Integer value type.
  • item (Item) - Item object representing item.
  • 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, and language default empty or zero; close defaults to enabled. The binding also handles arguments dynamically. This is a contextual call pattern, not a tested standalone script.

StartDialogConversation(con, 1, NPC, Spawn, "Upon the wall you see a shiny axe.")

Evidence: server/SpawnScripts/Commonlands/wallaxewidget.lua:28; binding EQ2Emu_lua_StartDialogConversation.

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