Lua functions

Say

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

Historical signature: Say(spawn, message, player, dist, language)

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

Function: Say(spawn, message, player, dist, language)

Description: Sends a Say message from the Spawn to the general area based on distance, or otherwise to a specific Player if specified, otherwise optional/nil.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • message (string) - String message.
  • player (Spawn) - Spawn object representing player.
  • dist (int32) - Integer value dist.
  • language (int32) - Integer value language.

Returns: None.

Checked example

Active call in a local runtime Lua script. Player, range, and language are optional; range defaults to 30. This is a contextual call pattern, not a tested standalone script.

Say(NPC, "You lack dedication. I owe you nothing.")

Evidence: server/SpawnScripts/A Meeting of the Minds/Borxx.lua:25; binding EQ2Emu_lua_Say.

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