Problem with GUIDS menu

User Tag List

Results 1 to 4 of 4
  1. #1
    uncledolan's Avatar Active Member
    Reputation
    16
    Join Date
    Apr 2012
    Posts
    99
    Thanks G/R
    3/6
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Problem with GUIDS

    I'm trying to iterate through objects and identify the unit that I have targeted, but I can't seem to get it working. I've been staring at this for the last 12 hours literally and I'm about to pull my hair out. Can anyone help a polite scrub out with some knowledge? I'm on x64 client.

    Code:
     Dim p As New ProcessSharp(System.Diagnostics.Process.GetProcessById(9368))
            p.Memory = New ExternalProcessMemory(p.Handle)
    
            Dim entityBase As IntPtr = p.Native.MainModule.BaseAddress + &H1578070
            Dim current As IntPtr = p.Memory.Read(Of IntPtr)(entityBase)
            Dim targetGuid As Guid = p.Memory.Read(Of Guid)(p.Native.MainModule.BaseAddress + &H179C940)
    
            If current = IntPtr.Zero Then
                End
            End If
    
            current = p.Memory.Read(Of IntPtr)(current + &H18)
            Dim currentGuid As Guid = p.Memory.Read(Of Guid)(current + &H8)
    
            While Not current = IntPtr.Zero
    
                Dim eType As Integer = p.Memory.Read(Of Integer)(current + &H20) 'Entity Type
    
                If eType > 0 Then
    
                    If currentGuid = targetGuid Then
                        MsgBox("COCKS LOL")
                    End If
    
                    current = p.Memory.Read(Of IntPtr)(current + &H70)
                    currentGuid = p.Memory.Read(Of Guid)(current + &H8)
    
                Else
                    Exit While
                End If
    
            End While
    It seems to be iterating the units properly, I set it to list players (entity type = 4) and it had the correct amount of entries so I don't think my problem is there. I'm pulling Guid from Entity+0x8 and trying to match it to TargetGuid but I've had no luck. What am I doing wrong? :gusta::gusta::gusta:

    Problem with GUIDS
  2. #2
    aeo's Avatar Contributor
    Reputation
    135
    Join Date
    Apr 2007
    Posts
    286
    Thanks G/R
    97/68
    Trade Feedback
    7 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Code:
    public struct WowObjectData
    {
    // x32 : x64
    private readonly IntPtr vtable; // 0x00 0x00
    private readonly IntPtr LegionExtra; // 0x08 0x18
    public IntPtr Descriptors; // 0x04 0x10
    private readonly IntPtr unk1; // 0x08 0x18
    public int TypeCode; // 0x0C 0x20
    private readonly IntPtr unk3; // 0x10 0x24
    private readonly IntPtr unk4; // 0x14 0x28
    private readonly IntPtr unk5; // 0x18 0x30
    private readonly IntPtr unk6; // 0x1C 0x38
    private readonly IntPtr unk7; // 0x20 0x40
    private readonly IntPtr unk8; // 0x24 0x48
    public WowGuid Guid; // 0x28 0x50
    }
    or you can get it from the descriptors of that object which is also accessible through that struct then the guid is at 0x0

    Edit not sure why the code tag is all messed up
    Last edited by aeo; 10-03-2016 at 12:09 PM.

  3. #3
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    It looks like you might be reading the pointer to the array of descriptors. The first element in the array (I think) is the GUID. So you need another dereference. Just a guess!

  4. #4
    uncledolan's Avatar Active Member
    Reputation
    16
    Join Date
    Apr 2012
    Posts
    99
    Thanks G/R
    3/6
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by aeo View Post
    Code:
    public struct WowObjectData
    {
    // x32 : x64
    private readonly IntPtr vtable; // 0x00 0x00
    private readonly IntPtr LegionExtra; // 0x08 0x18
    public IntPtr Descriptors; // 0x04 0x10
    private readonly IntPtr unk1; // 0x08 0x18
    public int TypeCode; // 0x0C 0x20
    private readonly IntPtr unk3; // 0x10 0x24
    private readonly IntPtr unk4; // 0x14 0x28
    private readonly IntPtr unk5; // 0x18 0x30
    private readonly IntPtr unk6; // 0x1C 0x38
    private readonly IntPtr unk7; // 0x20 0x40
    private readonly IntPtr unk8; // 0x24 0x48
    public WowGuid Guid; // 0x28 0x50
    }
    or you can get it from the descriptors of that object which is also accessible through that struct then the guid is at 0x0

    Edit not sure why the code tag is all messed up
    I was completely unaware of the 0x50 offset, that worked perfectly. Much appreciated <3

Similar Threads

  1. [Solved] Problem with Eluo's Custom Model Treepath Guide
    By BanzBoyz77 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 07-29-2011, 02:23 PM
  2. [Question] Problem with race to race guide
    By Xider in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 10-12-2007, 06:52 AM
  3. Problem with BWH 1.11.2
    By gwl15 in forum World of Warcraft General
    Replies: 3
    Last Post: 08-11-2006, 05:37 PM
  4. Problem with CE.
    By Eldretch in forum World of Warcraft General
    Replies: 1
    Last Post: 08-08-2006, 06:49 PM
  5. I have problem with BHW 3.0
    By sunrize1 in forum World of Warcraft General
    Replies: 1
    Last Post: 07-17-2006, 08:49 AM
All times are GMT -5. The time now is 11:08 PM. 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