Lua functions

CloseConversation

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

Historical signature: CloseConversation(npc, player)

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

Function: CloseConversation(npc, player)

Description:

Closes a Player's active conversation with the NPC.

Parameters:

  • npc (Spawn) - Spawn object representing npc.
  • player (Spawn) - Spawn object representing player.

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.

CloseConversation(NPC,Spawn)

Evidence: server/SpawnScripts/BeggarsCourt/tofprtcitizenshiptrial.lua:47; binding EQ2Emu_lua_CloseConversation.

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