Warrock Hacks
Wilt u reageren op dit bericht? Maak met een paar klikken een account aan of log in om door te gaan.
Warrock Hacks

VIP Hacks For Warrock!
 
IndexIndex  Laatste afbeeldingenLaatste afbeeldingen  ZoekenZoeken  RegistrerenRegistreren  InloggenInloggen  

 

 How to make C++ trainers for Warrock

Ga naar beneden 
AuteurBericht
Younes
Admin
Younes


Aantal berichten : 18
Registration date : 01-05-08

How to make C++ trainers for Warrock Empty
BerichtOnderwerp: How to make C++ trainers for Warrock   How to make C++ trainers for Warrock Icon_minitimedo mei 01, 2008 5:01 am

1)Open C++,Goto file/new/ MFC app wisard.exe
Make Project name: example = (My trainer), then hit ok
Now it asks you what type of application you want to make(clcik dialog based),hit next
now it asks what features would you like to include(leave same)Next
it asks what other support(Unclick ActiveX Controls),Hit next and finish,it opens a new window, hit ok

We now have our trainer template (or better known as Dialog)

2)Remove the crap on the Dialog(buttons,text,etc.)
Resize if needed
Lets make our trainer load warrock process
Right Click on the dialog,hit Class wizard,new window will open,hit edit code

This is were all the codeing goes
Scroll to the top of code look for this
Code:
// my trainerDlg.cpp : implementation file
//

#include "stdafx.h"
#include "my trainer.h"
#include "my trainerDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

Right under #endif put this code

Code:
DWORD proc_id;
HANDLE hProcess;

void memory()
{
HWND hWnd = FindWindow(0, "WarRock");
GetWindowThreadProcessId(hWnd, &proc_id);
hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id);
}

This is what it should look like

Code:
// my trainerDlg.cpp : implementation file
//

#include "stdafx.h"
#include "my trainer.h"
#include "my trainerDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
DWORD proc_id;
HANDLE hProcess;

void memory()
{
HWND hWnd = FindWindow(0, "WarRock");
GetWindowThreadProcessId(hWnd, &proc_id);
hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id);
}

We have now set the process to warrock(you can use this on any game,just change the warrock to whatever game process)

Lets move on

Go back to your Dialog(Hit window button (next to help button up top),hit My trainer(dialog)

Add a button(click on a button,drag it to dialog)
right click it,hit properties(change the caption,this is the name of the button)
Lets make it Scope On
Now right click it again and hit Class Wizard
How to make C++ trainers for Warrock Chow2e10

When you Highlight BN_CLICKED(Hit add Function button)
replace the highlight part only!!!!!!!(OnButton1),only change Button1 to ScopeOn
so it will look like this(OnScopeOn)
now while we are here in the function for ScopeOn button,lets set the code for our button.Hit teh edit code button

it takes you to this wich is highlighted
// TODO: Add your control notification handler code here
we will replace this with our code,notice its inbetween 2 astereks or w/e they are

Code:
void CMytrainerDlg::OnScopeOn()
                {
  // TODO: Add your

This is what it should look like

Code:
void CMytrainerDlg::OnScopeOn()
{
Writelong(0x943A16, 1);
}

ok above the last bit of codeing add this for writelong function
(just add some space above your last bit of codeing)

Code:
void Writelong(long addy, long value)
{
    memory();
  WriteProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &value, sizeof(value), NULL);

}
void WritePointerFloat(long addy, short offset, float value)
{
  long maddy;
  long saddy;
  memory();
  ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(maddy), NULL);
  saddy = maddy + offset;
  WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
}

NOW,lets build our trainer
first we must compile so lets rebiuld (goto the build button,hit rebuild all,uptop)
to see if we have any errors
if you did everything correct as shown(you shouldnt get any errors)
If you get no errors then go back to build button/hit build my trianer.exe
your project will be located in your C++ folder,in my projects.


now we have made a simple scope hack(I know buttons arnt good for scope,this was just to show you how to do it in C++(all the functions are there to make any hack that doesnt need a timer to freese it.
Terug naar boven Ga naar beneden
 
How to make C++ trainers for Warrock
Terug naar boven 
Pagina 1 van 1
 Soortgelijke onderwerpen
-
» warrock hacks
» WarRock Hacks
» New WarRock Hacks
» New WarRock Hacks
» warrock hacks cheatz.cc

Permissies van dit forum:Je mag geen reacties plaatsen in dit subforum
Warrock Hacks :: Programming :: C / C++-
Ga naar: