Lua functions

SetRequiredHistory

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

Historical signature: SetRequiredHistory(spawn, event_id, value1, value2, flag_override)

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

Function: SetRequiredHistory(spawn, event_id, value1, value2, flag_override)

Description: Set required history to interact with the Spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • event_id (uint32) - Integer value event_id.
  • value1 (int32) - Integer value value1.
  • value2 (int32) - Integer value value2.
  • flag_override (int32) - Integer value flag_override.

Returns: None.

Checked example

Active call in a local runtime Lua script. The omitted flag override resolves to zero. This is a contextual call pattern, not a tested standalone script.

SetRequiredHistory(NPC, 2530111, 1, 1, 1)

Evidence: server/SpawnScripts/QueensColony/alostscout1587669.lua:43; binding EQ2Emu_lua_SetRequiredHistory.

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