Lua functions

ShowShopWindow

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

Historical signature: ShowShopWindow(…) via current binding

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

Function: ShowShopWindow(player, from_spawn)

Description: Requests a shop window from the source spawn through the connected client path.

Parameters: player: connected player spawn. from_spawn: source spawn passed to the shop service.

Returns: None. Invalid player 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.

ShowShopWindow(Spawn, NPC)

Evidence: server/SpawnScripts/House/MarketBoard.lua:20; binding EQ2Emu_lua_ShowShopWindow.

Current registration: WorldServer/Lua/LuaInterface.cpp.