Determine if it's a player, pet or NPC menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    object's Avatar Member
    Reputation
    5
    Join Date
    Aug 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Determine if it's a player, pet or NPC

    First post... go easy on me. I was looking for way to find out if a GUID was a players or not... and I never found it on here. I found it on the wowwiki, and thought I should share it with the rest of the community.



    A monster has a single GUID from spawn until death (or despawn). When it respawns it gets a new GUID.
    Pets get a new GUID each time they are summoned.
    Monster and pet GUIDs can be recycled after server (or instance) restart.
    Players keep their GUID forever, and are unique even in cross-server battlegrounds.

    • It's a player if the upper bits masked with 0x00f = 0x000
    • It's a creature if the upper bits masked with 0x00f = 0x003
    • It's a pet if the upper bits masked with 0x00f = 0x004


    Format for players
    The GUID is a simple number in the order characters are created. An older character has a lower number than a new.
    The top three digits are reserved. It's unknown if any of the lower digits are also reserved.

    Renaming and transfering to another server, or to another account gives your character a new GUID.




    Format for non-pet NPCs
    The first three characters masked with 0x00f will result in 0x003.
    The next three digits are unknown. It's usually '000'.
    The next four digits are the NPC id.
    The last six digits are the spawn counter.
    If you take the 'NPC id' and convert it to decimal you can check wowhead and see what NPC it is. See examples below.




    Format for pets
    The first three characters masked with 0x00f will result in 0x004.
    The next seven digits are unknown.
    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.

    Determine if it's a player, pet or NPC
  2. #2
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work, a good first post :wave: +Rep

  3. #3
    aboone's Avatar Active Member
    Reputation
    17
    Join Date
    May 2008
    Posts
    106
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice Post for leecher!

Similar Threads

  1. World of Warcraft: Player Pet-Battle Exploits
    By Leniox in forum World of Warcraft Exploits
    Replies: 8
    Last Post: 05-18-2013, 06:20 AM
  2. [Pet Swap] Hunter Pet -> Daisy (NPC)
    By mexmike in forum World of Warcraft Model Editing
    Replies: 55
    Last Post: 08-30-2011, 04:54 PM
  3. GM / Player playing as NPC in ICC? (Decaying Colossus)
    By K1boRG in forum World of Warcraft Exploration
    Replies: 9
    Last Post: 05-31-2010, 05:11 AM
  4. Pets and NPC's follow paths, can player?
    By ShoniShilent in forum WoW Memory Editing
    Replies: 19
    Last Post: 12-11-2008, 08:52 AM
  5. Vanity pet, hunter pet, to Player character or npc skin
    By Doe in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 05-25-2008, 04:40 PM
All times are GMT -5. The time now is 09:13 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search