Lua functions

GetPlayerHistory

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

Historical signature: GetPlayerHistory(Player, HistoryID)

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

Function: GetPlayerHistory(Player, HistoryID)

Description: Retrieves the value of a specific player history flag. This tells if a player has a certain historical event or choice recorded (and what value it is).

Parameters:

  • player (Spawn) - Spawn object representing player.
  • event_id (uint32) - Integer value event_id.

Returns: Value of the historical value of SetPlayerHistory.

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.

local value1, value2 = GetPlayerHistory(Dialog.Player, v.Value1)

Evidence: server/SpawnScripts/Generic/DialogModule.lua:90; binding EQ2Emu_lua_GetPlayerHistory.

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