Lua functions

AddSpawnAccess

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

Historical signature: AddSpawnAccess(Spawn, Player)

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

Function: AddSpawnAccess(Spawn, Player)

Description: Allows Player access to Spawn visually and such as for restricting to Quest only Player's.

Parameters:

  • Spawn (Spawn) - Spawn object representing Spawn.
  • Player (Spawn) - Spawn object value 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.

AddSpawnAccess(NPC, NPC)

Evidence: server/SpawnScripts/BeggarsCourt2/ClanChiefMalachiSleetsaberBeggarsCourtVersion.lua:14; binding EQ2Emu_lua_AddSpawnAccess.

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