1
0
EQ2Emu/docs/lua_functions/GetShardCreatedTimestamp.md
2025-05-14 09:46:52 -04:00

483 B
Raw Blame History

Function: GetShardCreatedTimestamp(ShardID)

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

Parameters:

ShardID: Int32  The spirit shards ID.

Returns: Int64 The creation timestamp of the shard.

Example:

-- Example usage (calculate how old a shard is for some mechanic) local shardTime = GetShardCreatedTimestamp(shardID) local ageSeconds = os.time() - shardTime