Lua functions

GetShardCreatedTimestamp

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

Historical signature: GetShardCreatedTimestamp(ShardID)

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

Function: GetShardCreatedTimestamp(ShardID)

Description: Returns the Unix timestamp (or similar) of when the spirit shard was created (i.e., the time of the player’s death that generated it).

Parameters:

  • npc (Spawn) - Spawn object representing npc.

Returns: UInt32 timestamp of the creation time of the shard.

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 timestamp = GetShardCreatedTimestamp(NPC)

Evidence: server/SpawnScripts/Generic/SpiritShard.lua:46; binding EQ2Emu_lua_GetShardCreatedTimestamp.

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