Lua functions

ShowHouseShopMerchant

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

Historical signature: ShowHouseShopMerchant(…) via current binding

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

Function: ShowHouseShopMerchant(merchant, player)

Description: Sends the house-shop merchant window through the connected client's merchant path.

Parameters: merchant: merchant spawn. player: connected player spawn.

Returns: None. Invalid input or missing connection has no effect.

Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.

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.

ShowHouseShopMerchant(NPC, Spawn)

Evidence: server/SpawnScripts/House/HouseShop.lua:21; binding EQ2Emu_lua_ShowHouseShopMerchant.

Current registration: WorldServer/Lua/LuaInterface.cpp.