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

14 lines
430 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: GetShardCharID(ShardID)
Description: Given a spirit shards ID, returns the character ID of the player who owns that shard.
Parameters:
ShardID: Int32 The shards unique ID.
Returns: Int32 The character ID of the player to whom the shard belongs.
Example:
-- Example usage (identify which player a shard belongs to, perhaps for a shard recovery NPC)
local ownerCharID = GetShardCharID(shardSpawnID)