QuestionHow do u make trainer?

Posts 115 of 16 · Page 1 of 2
How do u make trainer?
kk i know how to find pointers in cheat engine but i want to like make it when u press the hot-keys it turns to 99999 or something like that.


becuz i made a trainer for warcraft3 it doesnt go up it like stays 500 when i press the hot-keys for gold
Ok i will help you.

But DONT FORGET TO THANKS ME.

here the tutorial to make trainer.
-OPEN YOUR CHEAT ENGINE OR WHATEVER
-SEE LEFT CORNER BUTTONS NAMED "ADVANCED OPTIONS"
-CLICK IT TO MAKE TRAINER AND YOU WILL SEE AN OPTION.
-CLICK CREATE A NEW TRAINER TO MAKE A NEW TRAINER.
-CLICK OPEN EXITING TRAINER TO RE-OPEN YOUR TRAINER.

YOUR QUESTION:
becuz i made a trainer for warcraft3 it doesnt go up it like stays 500 when i press the hot-keys for gold:

ANSWER:
Dont be crazy warcraft3 game address still changing every you play.
So if you make trainer it just work in a time if you restart your game by exit then enter game again your trainer NOT-WORK.
IT IMPOSSIBLE TO MAKE TRAINER WORK MORE THAN ONE TIME BECAUSE YOUR GAME ADDRESS STILL CHANGING EVERY YOU PLAY.



Please thanks me in this post
no if u have the pointer then it will still work
but i want to know how to make the value increase
Quote Originally Posted by ninjapwner View Post
but i want to know how to make the value increase
WriteProcessMemory:
WriteProcessMemory Function (Windows)

ReadProcessMemory:
ReadProcessMemory Function (Windows)

OpenProcess:
OpenProcess Function (Windows)

GetWindowThreadProcessId:
GetWindowThreadProcessId Function (Windows)

Example:
Code:
void MW2Kills()
{
    EnableDebugPriv(); //Enables debug privileges so you can write data to memory address
    HWND hWndTarget = FindWindow( NULL, "Modern Warfare 2"); //Looks for window with given title


      if(hWndTarget == 0){
    MessageBox(0, "Cannot find window.", "Error", MB_OK|MB_ICONERROR); //If null show error
  } 


  else {
     DWORD dwProcessId;
     GetWindowThreadProcessId(hWndTarget, &dwProcessId); //Gets process id of specified window and outputs return to dwProcessId
     HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwProcessId); //Opens process with all access
    if(!hProcess){
      MessageBox(0, "Could not open the process!", "Error!", MB_OK|MB_ICONERROR); //If OpenProcess fails show error
    } 
    else {
    char * p; //Char pointer because of the x
    p = (char*)0x00000000; //Memory address here
     int newdata = 1337; //Changes MW2 kills to 1337
      if(WriteProcessMemory(hProcess, p, &newdata, sizeof(newdata), NULL)){
        MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK + MB_ICONINFORMATION); //If memory write was successful show success box
      } 
      else {
        MessageBox(NULL, "Cannot WriteProcessMemory!", "Error", MB_OK + MB_ICONERROR); //If memory write failed show error box
      }
      CloseHandle(hProcess); //Close handle
      }
    }
}
This could be either
Code:
char * p; //Char pointer because of the x
    p = (char*)0x00000000; //Memory address here
     int newdata = 1337; //Changes MW2 kills to 1337
      if(WriteProcessMemory(hProcess, p, &newdata, sizeof(newdata), NULL)){
        MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK + MB_ICONINFORMATION); //If memory write was successful show success box
      }
or
Code:
     int newdata = 1337; //Changes MW2 kills to 1337
      if(WriteProcessMemory(hProcess, (LPVOID)0x00000000, &newdata, sizeof(newdata),  NULL)){
        MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK +  MB_ICONINFORMATION); //If memory write was successful show success box
      }
Get debug privileges:
Code:
/* VisualCustomKick Function "EnableDebugPriv" (Date 09.04.2008)
    This function enables you to access the Modern Warfare 2 process
    Note: You have to be logged on on an administrator account
    Courtesy of Listing
    http://visualcustomkick.com/forums/index.php?PHPSESSID=25bbd05938190ecf656407dcbb688e8a&action=profile;u=1
    */

void EnableDebugPriv()
{
    HANDLE hToken;
    LUID sedebugnameValue;
    TOKEN_PRIVILEGES tkp;

    if ( ! OpenProcessToken( GetCurrentProcess(),
        TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken ) )
        return;
    if ( ! LookupPrivilegeValue( NULL, SE_DEBUG_NAME, &sedebugnameValue ) ){
        CloseHandle( hToken );
        return;
    }
    tkp.PrivilegeCount = 1;
    tkp.Privileges[0].Luid = sedebugnameValue;
    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
    if ( ! AdjustTokenPrivileges( hToken, FALSE, &tkp, sizeof tkp, NULL, NULL ) )
        CloseHandle( hToken );
}
This code changes the value but doesn't freeze it. I still have to find out how to do that
Quote Originally Posted by r_arraz View Post


WriteProcessMemory:
WriteProcessMemory Function (Windows)

ReadProcessMemory:
ReadProcessMemory Function (Windows)

OpenProcess:
OpenProcess Function (Windows)

GetWindowThreadProcessId:
GetWindowThreadProcessId Function (Windows)

Example:
Code:
void MW2Kills()
{
    EnableDebugPriv(); //Enables debug privileges so you can write data to memory address
    HWND hWndTarget = FindWindow( NULL, "Modern Warfare 2"); //Looks for window with given title


      if(hWndTarget == 0){
    MessageBox(0, "Cannot find window.", "Error", MB_OK|MB_ICONERROR); //If null show error
  } 


  else {
     DWORD dwProcessId;
     GetWindowThreadProcessId(hWndTarget, &dwProcessId); //Gets process id of specified window and outputs return to dwProcessId
     HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwProcessId); //Opens process with all access
    if(!hProcess){
      MessageBox(0, "Could not open the process!", "Error!", MB_OK|MB_ICONERROR); //If OpenProcess fails show error
    } 
    else {
    char * p; //Char pointer because of the x
    p = (char*)0x00000000; //Memory address here
     int newdata = 1337; //Changes MW2 kills to 1337
      if(WriteProcessMemory(hProcess, p, &newdata, sizeof(newdata), NULL)){
        MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK + MB_ICONINFORMATION); //If memory write was successful show success box
      } 
      else {
        MessageBox(NULL, "Cannot WriteProcessMemory!", "Error", MB_OK + MB_ICONERROR); //If memory write failed show error box
      }
      CloseHandle(hProcess); //Close handle
      }
    }
}
This could be either
Code:
char * p; //Char pointer because of the x
    p = (char*)0x00000000; //Memory address here
     int newdata = 1337; //Changes MW2 kills to 1337
      if(WriteProcessMemory(hProcess, p, &newdata, sizeof(newdata), NULL)){
        MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK + MB_ICONINFORMATION); //If memory write was successful show success box
      }
or
Code:
     int newdata = 1337; //Changes MW2 kills to 1337
      if(WriteProcessMemory(hProcess, (LPVOID)0x00000000, &newdata, sizeof(newdata),  NULL)){
        MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK +  MB_ICONINFORMATION); //If memory write was successful show success box
      }
Get debug privileges:
Code:
/* VisualCustomKick Function "EnableDebugPriv" (Date 09.04.2008)
    This function enables you to access the Modern Warfare 2 process
    Note: You have to be logged on on an administrator account
    Courtesy of Listing
    http://visualcustomkick.com/forums/index.php?PHPSESSID=25bbd05938190ecf656407dcbb688e8a&action=profile;u=1
    */

void EnableDebugPriv()
{
    HANDLE hToken;
    LUID sedebugnameValue;
    TOKEN_PRIVILEGES tkp;

    if ( ! OpenProcessToken( GetCurrentProcess(),
        TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken ) )
        return;
    if ( ! LookupPrivilegeValue( NULL, SE_DEBUG_NAME, &sedebugnameValue ) ){
        CloseHandle( hToken );
        return;
    }
    tkp.PrivilegeCount = 1;
    tkp.Privileges[0].Luid = sedebugnameValue;
    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
    if ( ! AdjustTokenPrivileges( hToken, FALSE, &tkp, sizeof tkp, NULL, NULL ) )
        CloseHandle( hToken );
}
This code changes the value but doesn't freeze it. I still have to find out how to do that

IS this Vb?
Quote Originally Posted by ninjapwner View Post
IS this Vb?
No, it's C++
but thanks anyway
the trainer that i made only makes the value stay the same
There is an edit button for a reason. Don't spam.
ty and sorry for the spam thing
so i need to make the value go up so plz help me
Oh i see i wont get it then cause it's confusing and vb is too
Stop spamming.
Just say whatever you want to say in one post don't spam!
Posts 115 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?