Get Object GUID by Pointer menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Amrok's Avatar Banned
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get Object GUID by Pointer

    Hi,

    i'm trying to get the object guid from a pointer to the object base. Is this the correct way to get the GUID from it?

    fielddata = 0x8
    fieldguid = 0x0
    [[object + fielddata] + fieldguid]

    why not

    [object + 0x30] ?

    Get Object GUID by Pointer
  2. #2
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    What you call 'fielddata' is a pointer to what WoW calls the objects 'descriptors'. It may also be at [object + 0x30] but I don't think it's guaranteed to stay there between revisions. Whereas the descriptors have been at [object + 0x8] since before TBC.

  3. #3
    Amrok's Avatar Banned
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    What you call 'fielddata' is a pointer to what WoW calls the objects 'descriptors'. It may also be at [object + 0x30] but I don't think it's guaranteed to stay there between revisions. Whereas the descriptors have been at [object + 0x8] since before TBC.
    ah ok thank you was just confused

  4. #4
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's 2 ways to retrieve an object's guid, first is as a CG_Object_C member (+0x30), second is from the descriptors (OBJECT_FIELD_GUID). It's been this way for a very long time (at the very least since 2.4.3), seeing as you are already keeping track of a descriptor enum/struct it would be pointless to keep track of yet another offset/struct, so use the descriptor one.

    Someone posted that they might not be equal in some cases, can't confirm.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

Similar Threads

  1. [Release] [snippet]Get Object By GUID
    By J0llyGr33n in forum WoW Memory Editing
    Replies: 4
    Last Post: 03-24-2012, 12:02 PM
  2. Replies: 13
    Last Post: 02-18-2008, 09:52 AM
  3. A "get gold guide"
    By Suss in forum World of Warcraft Guides
    Replies: 6
    Last Post: 01-09-2008, 11:48 PM
  4. [Guide] Finding Pointers and Offset Manually.
    By PopcornWoW in forum World of Warcraft Guides
    Replies: 1
    Last Post: 12-23-2007, 07:49 AM
  5. Can you help me get a guide?
    By olsalty in forum Community Chat
    Replies: 4
    Last Post: 07-18-2006, 04:01 PM
All times are GMT -5. The time now is 05:47 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search