Get PlayerName wrong in TBC tbc 2.5.1 38835. menu

User Tag List

Results 1 to 7 of 7
  1. #1
    bigofsmall's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get PlayerName wrong in TBC tbc 2.5.1 38835.

    Hi, guys,

    I was afk wow several years, I'm back recently, and I meet some problem when I use Lazybot.
    I want to get the PlayerName with the code of Lazybot, but it seems that it does work, perhaps Lazybot only support 32-bit? Any one can help me to how to change the code?

    Code:
    public enum Globals
            {
                PlayerName = 0x2C45AA8, 
            }
    
    name = Memory.ReadUtf8(Memory.BaseAddress + (uint) PublicPointers.Globals.PlayerName, 256);
    
    public static extern bool ReadProcessMemory(
                IntPtr hProcess,
                uint dwAddress,
                IntPtr lpBuffer,
                int nSize,
                out int lpBytesRead);
    Thanks in advance.

    Get PlayerName wrong in TBC tbc 2.5.1 38835.
  2. #2
    bigofsmall's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use the code of Memory.cs of Lazybot as follow, any help is appreciate.

    Code:
    public static string ReadUtf8(uint dwAddress, int Size)
            {
                byte[] l = ReadBytes(ProcessHandle, dwAddress, Size);
    
                if (l == null)
                    return String.Empty;
    
                return UTF8Decoder(l);
            }
    
    public static byte[] ReadBytes(IntPtr hProcess, uint dwAddress, int nSize)
            {
                IntPtr lpBuffer = IntPtr.Zero;
                int iBytesRead;
                byte[] baRet;
    
                try
                {
                    lpBuffer = Marshal.AllocHGlobal(nSize);
    
                    iBytesRead = ReadRawMemory(hProcess, dwAddress, lpBuffer, nSize);
                    if (iBytesRead != nSize)
                        throw new Exception("ReadProcessMemory error in ReadBytes");
    
                    baRet = new byte[iBytesRead];
                    Marshal.Copy(lpBuffer, baRet, 0, iBytesRead);
                }
                catch
                {
                    return null;
                }
                finally
                {
                    if (lpBuffer != IntPtr.Zero)
                        Marshal.FreeHGlobal(lpBuffer);
                }
    
                return baRet;
            }
    		
    public static int ReadRawMemory(IntPtr hProcess, uint dwAddress, IntPtr lpBuffer, int nSize)
            {
                try
                {
                    int lpBytesRead;
                    if (!ReadProcessMemory(hProcess, dwAddress, lpBuffer, nSize, out lpBytesRead))
                        throw new Exception("ReadProcessMemory failed");
    
                    return lpBytesRead;
                }
                catch
                {
                    return 0;
                }
            }		
    		
    [DllImport("kernel32", EntryPoint = "ReadProcessMemory")]
            public static extern bool ReadProcessMemory(
                IntPtr hProcess,
                uint dwAddress,
                IntPtr lpBuffer,
                int nSize,
                out int lpBytesRead);

  3. #3
    scimmy's Avatar Active Member
    Reputation
    52
    Join Date
    Jul 2020
    Posts
    54
    Thanks G/R
    1/33
    Trade Feedback
    0 (0%)
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    bro thats a function lol. disassemble it and youll know how to read the player name.

  4. #4
    bigofsmall's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by scimmy View Post
    bro thats a function lol. disassemble it and youll know how to read the player name.
    Would you mind give me an example, it's first time for me to test 64-bit client.

    Which lib do you use for 64-bit. Black magic is only for 32-bit.

    Thanks a lot.
    Last edited by bigofsmall; 05-31-2021 at 06:44 PM.

  5. #5
    scimmy's Avatar Active Member
    Reputation
    52
    Join Date
    Jul 2020
    Posts
    54
    Thanks G/R
    1/33
    Trade Feedback
    0 (0%)
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    lol whoops that offset was to the actual name. read 8 bytes from it and thats your pointer to the string

  6. #6
    charles420's Avatar Contributor
    Reputation
    315
    Join Date
    Jun 2009
    Posts
    329
    Thanks G/R
    25/119
    Trade Feedback
    0 (0%)
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    personally i wouldn't use lazybots memory.cs unless you modify it to work with x64

    look at link below for a example memory class / how to fix memory.cs theirs others examples / libarys around first one that popped into my mind tho
    GitHub - tomrus88/WowMoPObjMgrTest: WowMoPObjMgrTest
    Last edited by charles420; 06-01-2021 at 10:30 AM.

  7. #7
    bigofsmall's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by charles420 View Post
    personally i wouldn't use lazybots memory.cs unless you modify it to work with x64

    look at link below for a example memory class / how to fix memory.cs theirs others examples / libarys around first one that popped into my mind tho
    GitHub - tomrus88/WowMoPObjMgrTest: WowMoPObjMgrTest
    Thanks , i'll study it.

Similar Threads

  1. Will they remove bans/char restores in TBC?
    By Disphotic in forum World of Warcraft General
    Replies: 4
    Last Post: 01-15-2007, 09:40 PM
  2. GET instance set to HEROIC!!!! Even though its in TBC.
    By Dasho in forum World of Warcraft Exploits
    Replies: 16
    Last Post: 12-20-2006, 11:07 PM
  3. omfg new bugged item in TBC
    By Avianar47 in forum World of Warcraft General
    Replies: 8
    Last Post: 12-15-2006, 07:12 AM
  4. New Hunter Pets in TBC
    By Avianar47 in forum World of Warcraft General
    Replies: 0
    Last Post: 12-07-2006, 12:23 AM
  5. lmao, glider in TBC?
    By Avianar47 in forum World of Warcraft General
    Replies: 5
    Last Post: 09-16-2006, 07:29 AM
All times are GMT -5. The time now is 06:01 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