WoW:API UnitGUID: Difference between revisions

→‎Notes: fixed incorrect reference to "EEEEEE" instead of 7 E's
m ("sixth" should be "seventh")
(→‎Notes: fixed incorrect reference to "EEEEEE" instead of 7 E's)
Line 33: Line 33:
:; CCC : If the unit is a pet, CCCDDDD forms a unique ID for the pet based on creation order; if a world object, CCCDDDD is the object ID; otherwise unknown.
:; CCC : If the unit is a pet, CCCDDDD forms a unique ID for the pet based on creation order; if a world object, CCCDDDD is the object ID; otherwise unknown.
:; DDDD : If the unit is an NPC, this is the hexadecimal representation of the NPC id.
:; DDDD : If the unit is an NPC, this is the hexadecimal representation of the NPC id.
:; EEEEEEE : If the unit is a player, this is a unique identifier based on creation order. Otherwise, this is a spawn counter based on spawn order.
:; EEEEEE : If the unit is a player, this is a unique identifier based on creation order. Otherwise, this is a spawn counter based on spawn order.


=== Example: Determining unit type ===
=== Example: Determining unit type ===
Anonymous user