WoW:API UnitGUID: Difference between revisions

183 bytes removed ,  24 October 2008
Filled in the "unknown" part for pet GUIDs
(Correction: character GUIDs count created characters within servers in the same battlegroup.)
(Filled in the "unknown" part for pet GUIDs)
Line 44: Line 44:
=== Format for pets ===
=== Format for pets ===
* The first three characters masked with 0x00f will result in 0x004.
* The first three characters masked with 0x00f will result in 0x004.
* The next seven digits are unknown.
* The next seven digits are the pet id (a counter like players based on the order of creation).
* The last six digits are the spawn counter.
* The last six digits are the spawn counter.


It's possible that the seven digits that at this point are unknown are split into smaller pieces. I couldn't find any structure among them, but looking at non-pet NPCs, I can imagine that the NPC id is there somewhere but I couldn't find it. You must log out before the pet gets this GUID, if querried during the same session that you tamed it, your pet will have its pre-taming GUID.
You must log out before the pet gets this GUID, if querried during the same session that you tamed it, your pet will have its pre-taming GUID.


== Spawn counter ==
== Spawn counter ==
Anonymous user