Lua functions

SetPlayerHistory

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

Historical signature: SetPlayerHistory(player, event_id, value, value2)

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

Function: SetPlayerHistory(player, event_id, value, value2)

Description: Set's the players history to the value provided.

Parameters:

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

Returns: None.

Checked example

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

SetPlayerHistory(Player, 8, 1)

Evidence: server/Quests/Antonica/hunters_manifest.lua:29; binding EQ2Emu_lua_SetPlayerHistory.

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