[Code Release] C#, Out Of Process - Get Player Name menu

User Tag List

Results 1 to 5 of 5
  1. #1
    SwInY's Avatar Member
    Reputation
    29
    Join Date
    Jul 2009
    Posts
    97
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Code Release] C#, Out Of Process - Get Player Name

    ok guys,
    this WASNT made by me, and i give full credits to who ever did.
    i just changed it so i could use it ALOT easyer, instead of all the other stuff.
    it just uses GUID.

    // Function Taken and modified from
    // NoMorePasting.com
    // Thanks to who ever made it

    basicly this gets PlayerName from GUID.

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using ConsoleDruidHeals.Managers;
    
    namespace ConsoleDruidHeals.WoWFunctions
    {
    
        internal enum UnitName : uint
        {
            PlayerNameCachePointer = 0xC9ACC0 + 0x08,
            PlayerNameMaskOffset = 0x024,
            PlayerNameBaseOffset = 0x01c,
            PlayerNameStringOffset = 0x020
        }
    
    
        public static class PlayerNames
        {
    
            // Function Taken and modified from
            // http://www.nomorepasting.com/getpaste.php?pasteid=17694
            // Thanks to who ever made it
    
            public static string GetPlayerName(ulong GUID)
            {
                uint var1 = ProcessManager.WoWProcess.ReadUInt((uint)UnitName.PlayerNameCachePointer + (uint)UnitName.PlayerNameMaskOffset);
    
                //here we're getting the pointer to the start of the linked list
                uint var2 = ProcessManager.WoWProcess.ReadUInt((uint)UnitName.PlayerNameCachePointer + (uint)UnitName.PlayerNameBaseOffset);
                var1 &= (uint)GUID;
                var1 += var1 * 2;
                var1 = (var2 + (var1 * 4) + 4);
                var1 = ProcessManager.WoWProcess.ReadUInt((var1 + 4));
    
                //iterate through the linked list until the current entry has
                //the same GUID as the object whose name we want
                while (ProcessManager.WoWProcess.ReadUInt(var1) != (uint)GUID)
                {
                    uint var3 = ProcessManager.WoWProcess.ReadUInt((uint)UnitName.PlayerNameCachePointer + (uint)UnitName.PlayerNameBaseOffset);
                    var2 = (uint)GUID;
                    var2 &= ProcessManager.WoWProcess.ReadUInt((uint)UnitName.PlayerNameCachePointer + (uint)UnitName.PlayerNameMaskOffset);
                    var2 += var2 * 2;
                    var2 = ProcessManager.WoWProcess.ReadUInt(var3 + (var2 * 4));
                    var2 += var1;
                    var1 = ProcessManager.WoWProcess.ReadUInt(var2 + 4);
                }
    
                //now that we have the correct entry in the linked list,
                //read its name from entry+0x20
                return ProcessManager.WoWProcess.ReadASCIIString(var1 + (uint)UnitName.PlayerNameStringOffset, 40);
            }
    
        }
    }
    Last edited by SwInY; 03-29-2011 at 07:49 PM.

    [Code Release] C#, Out Of Process - Get Player Name
  2. #2
    yangsoul's Avatar Private
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good!
    I have a question:
    How to get these constants?
    internal enum UnitName: uint
    {
    PlayerNameCachePointer = 0xC9ACC0 + 0x08,
    PlayerNameMaskOffset = 0x024,
    PlayerNameBaseOffset = 0x01c,
    PlayerNameStringOffset = 0x020
    }

  3. #3
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.mmowned.com/forums/world-...ion-rules.html

    Read up on memory stuff.
    When you know that you are searching for offsets, continue by learning basic reverse engineering.
    Or be able to silently search in the info dump thread for updated "constants".

  4. #4
    luckysurfcs's Avatar Member
    Reputation
    2
    Join Date
    Apr 2010
    Posts
    85
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    player name as in their actual real name? im a complete noob, what does this do exactly? :S

  5. #5
    Neffarian's Avatar Member
    Reputation
    -5
    Join Date
    Sep 2006
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Depending on how your reading, you need to find your base address then add the pointer/offset
    Ollydbg works good for this

Similar Threads

  1. [Bot] how can i get player name?
    By bisfs in forum WoW Memory Editing
    Replies: 7
    Last Post: 08-08-2014, 02:52 AM
  2. Out of process - Getting battle.net chat names
    By Naice in forum WoW Memory Editing
    Replies: 0
    Last Post: 11-17-2011, 01:39 AM
  3. Getting players names
    By andy2002ua in forum WoW Memory Editing
    Replies: 12
    Last Post: 08-24-2011, 08:03 AM
  4. Can you read player names out of process?
    By sweeper18 in forum WoW Memory Editing
    Replies: 10
    Last Post: 07-06-2008, 08:54 PM
  5. Get Player Base NO TLS + Delphi code [2.3.3]
    By robotkid in forum WoW Memory Editing
    Replies: 26
    Last Post: 05-08-2008, 08:33 PM
All times are GMT -5. The time now is 01:11 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