[WoW]Help Reading offset menu

User Tag List

Results 1 to 2 of 2
  1. #1
    0_00_0's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [WoW]Help Reading offset

    I'm just trying to make a relogger for my bot in C++. However, I seem to be failing at this memory read with one offset :\. Right now I'm just trying to read the fields before i try changing them. This is the login name and password for the intro screen. I'm just posting the snippits of where I believe it's going wrong.

    I'm using these addresses
    username = [0x10D7914] + 0x50
    pass = [0x10D7914] + 0xC8

    Anyways, here's my offset reading function
    Code:
    DWORD GetUserNameAddy(HANDLE hProcess){
          DWORD userNameAddy, buf;
          if(ReadProcessMemory(hProcess, (LPCVOID)(0x010D7914), &buf, sizeof(buf), NULL)==0){
                                         std::cout<<"Error reading first pointer on name\n";
                                       return 0;
          }
          if(ReadProcessMemory(hProcess, (LPCVOID)(buf+0x50), &userNameAddy, sizeof(userNameAddy), NULL)==0){
                                         std::cout<<"Error reading offset on name\n";
                                       return 0;
          }
          return userNameAddy;
    }

    this is where I'm trying to use it
    Code:
    DWORD userNameAddy = GetUserNameAddy(hProcess);
    if (userNameAddy == 0 || userPassAddy == 0) {
                         std::cout<<"Error with functions\n";
        }
        
        while(!(GetAsyncKeyState(VK_END) & 0x8000)){
                  if(ReadProcessMemory(hProcess, (LPCVOID)userNameAddy, &userName, sizeof(userName), NULL)==0){
                                       std::cout<<"Could not read user Name Addy! Error:" << GetLastError() << "\n" ;
                  }else{
                        std::cout << "User Name : " << userName << "\n";
                  }
                  Sleep(500);                     
        }
    It seems to work up until my final memory read. I'm not sure though so please let me know what I'm doing wrong!
    Last edited by 0_00_0; 11-29-2009 at 02:11 AM.

    [WoW]Help Reading offset
  2. #2
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 0_00_0 View Post
    I'm just trying to make a relogger for my bot in C++. However, I seem to be failing at this memory read with one offset :\. Right now I'm just trying to read the fields before i try changing them. This is the login name and password for the intro screen. I'm just posting the snippits of where I believe it's going wrong.

    I'm using these addresses
    username = [0x10D7914] + 0x50
    pass = [0x10D7914] + 0xC8

    Anyways, here's my offset reading function
    Code:
    DWORD GetUserNameAddy(HANDLE hProcess){
          DWORD userNameAddy, buf;
          if(ReadProcessMemory(hProcess, (LPCVOID)(0x010D7914), &buf, sizeof(buf), NULL)==0){
                                         std::cout<<"Error reading first pointer on name\n";
                                       return 0;
          }
          if(ReadProcessMemory(hProcess, (LPCVOID)(buf+0x50), &userNameAddy, sizeof(userNameAddy), NULL)==0){
                                         std::cout<<"Error reading offset on name\n";
                                       return 0;
          }
          return userNameAddy;
    }
    this is where I'm trying to use it
    Code:
    DWORD userNameAddy = GetUserNameAddy(hProcess);
    if (userNameAddy == 0 || userPassAddy == 0) {
                         std::cout<<"Error with functions\n";
        }
        
        while(!(GetAsyncKeyState(VK_END) & 0x8000)){
                  if(ReadProcessMemory(hProcess, (LPCVOID)userNameAddy, &userName, sizeof(userName), NULL)==0){
                                       std::cout<<"Could not read user Name Addy! Error:" << GetLastError() << "\n" ;
                  }else{
                        std::cout << "User Name : " << userName << "\n";
                  }
                  Sleep(500);                     
        }
    It seems to work up until my final memory read. I'm not sure though so please let me know what I'm doing wrong!

    My guess is that [0x10D7914] + 0x50 is the actual null terminated character array of the name.

    EDIT: Yes it is. Read 120 characters from [0x10D7914] + 0x50 to get the username.
    Last edited by MaiN; 11-29-2009 at 06:30 AM.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

Similar Threads

  1. Replies: 2
    Last Post: 10-03-2011, 10:37 AM
  2. [Bot] WoW Memory Reading Help (Player Name)
    By zamba1587 in forum WoW Memory Editing
    Replies: 5
    Last Post: 08-05-2011, 01:27 AM
  3. [Help] Java Bot reading offset values..^^°
    By kmJeepers in forum WoW Memory Editing
    Replies: 10
    Last Post: 06-22-2009, 10:43 AM
  4. WoW Gliders Read- Bekyn the GM
    By paypal in forum World of Warcraft General
    Replies: 18
    Last Post: 11-05-2006, 10:12 AM
All times are GMT -5. The time now is 02: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