Player Name from Guid menu

User Tag List

Results 1 to 3 of 3
  1. #1
    jmac321's Avatar Private
    Reputation
    2
    Join Date
    May 2012
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Player Name from Guid

    I am working on a bot for an emu server, so my offsets are from patch 4.0.6 - 13623

    here are the NameOffsets
    Code:
     public enum NameOffsets : ulong
        {
            ObjectName1 = 0x1CC,
            ObjectName2 = 0xB4,
            UnitName1 = 0xA24,
            UnitName2 = 0x60,
            nameStore = 0x89ACC0 + 0x8,
            nameMask = 0x24,
            nameBase = 0x1C,
            nameString = 0x20
        }
    which I am pretty sure are correct, because I can grab NPC name from Guid with no problem


    Can anyone tell me why this next function fails at "Exception3"
    specifically this read fails "testGUID = wow.ReadUInt((uint)current);"

    (credits to WhatSupMang)
    Code:
    public string PlayerNameFromGuid(ulong Guid)
            {
                ulong mask, base_, offset, current, shortGUID, testGUID;
                try
                {
                    mask = wow.ReadUInt(WoWBase = (uint)NameOffsets.nameStore + (uint)NameOffsets.nameMask);
                }
                catch (Exception)
                {
                    return "Exception1";
                }
    
                base_ = wow.ReadUInt(WoWBase + (uint)NameOffsets.nameStore + (uint)NameOffsets.nameBase);
    
                shortGUID = Guid & 0xFFFFFFFF;
                offset = 12 * (mask & shortGUID);
    
                try
                {
                    current = wow.ReadUInt((uint)base_ + (uint)offset + 8);
                }
                catch (Exception)
                {
                    return "Exception2";
                }
    
                offset = wow.ReadUInt((uint)base_ + (uint)offset);
    
                if ((current & 0x1) == 0x1) { return ""; }
    
                try
                {
                    testGUID = wow.ReadUInt((uint)current);
                }
                catch (Exception)
                {
                    return "Exception3";
                }
    
                while (testGUID != shortGUID)
                {
                    current = wow.ReadUInt((uint)current + (uint)offset + 4);
    
                    if ((current & 0x1) == 0x1) { return ""; }
                    try
                    {
                        testGUID = wow.ReadUInt((uint)current);
                    }
                    catch (Exception)
                    {
                        return "Exception4";
                    }
                }
                return wow.ReadASCIIString((uint)current + (uint)NameOffsets.nameString, 30);
            }//end PlayerNameFromGuid

    Player Name from Guid
  2. #2
    jmac321's Avatar Private
    Reputation
    2
    Join Date
    May 2012
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone? this is pretty much copied from Twarwizard's project at http://www.ownedcore.com/forums/worl...int-newbs.html ([Guides] Starting point for newbs) and the rest of his code is working fine.

    I've learned a lot the past couple days, but player name is confusing!

  3. #3
    jmac321's Avatar Private
    Reputation
    2
    Join Date
    May 2012
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ughh im a ****ing noob

    mask = wow.ReadUInt(WoWBase = (uint)NameOffsets.nameStore + (uint)NameOffsets.nameMask);

    should be

    mask = wow.ReadUInt(WoWBase + (uint)NameOffsets.nameStore + (uint)NameOffsets.nameMask);

    sometimes you just gotta take a break

Similar Threads

  1. [C# snippet] Get player info by GUID (name, race and class)
    By T@rget in forum WoW Memory Editing
    Replies: 1
    Last Post: 09-03-2016, 01:11 PM
  2. Name from Guid (for RawrSnarl)
    By Sillyboy72 in forum WoW Memory Editing
    Replies: 5
    Last Post: 01-12-2009, 07:40 PM
  3. [Help] Player names?
    By wraithZX in forum WoW Memory Editing
    Replies: 15
    Last Post: 05-13-2008, 07:45 AM
  4. [Release / Request] changing client side players name in c++
    By macintox in forum WoW Memory Editing
    Replies: 5
    Last Post: 03-25-2008, 12:51 AM
  5. Steal a players name
    By Trucidation in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 01-30-2008, 01:31 PM
All times are GMT -5. The time now is 05:25 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