Lua functions

SetMountColor

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

Historical signature: SetMountColor(spawn, red, green, blue, red, green, blue)

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

Function: SetMountColor(spawn, red, green, blue, red, green, blue)

Description: Sets the mount's colors for the Spawn specified.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • red (int32) - Integer value red.
  • green (int32) - Integer value green.
  • blue (int32) - Integer value blue.
  • red (int32) - Integer value red.
  • green (int32) - Integer value green.
  • blue (int32) - Integer value blue.

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.

SetMountColor(NPC, 1, 1, 1, 255, 1, 1)

Evidence: server/SpawnScripts/BeggarsCourt/AdjunctCaptainRommuls.lua:13; binding EQ2Emu_lua_SetMountColor.

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