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

15 lines
483 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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