Ok, Welcome to my tutorial on how to make a WarRock hack.
Requirements:
- Microsoft Visual C++ 2008 Express Edition:
Visual C++ 2008 Express Edition -> Go to where you see download and click it.
- A Computer
__________________
Open Visual C++ and go to: File -> New -> Project.
Search for name and enter "Hack". Click Ok.
Now you will see another window pop-up. Click next.
Now at "Application type" select "DLL". And at Additional Options select "Empty Project". Now click finish. Then at the top bar select: Project -> Add New Item -> Then select C++ File (.cpp). And name it "Main". Now copy and paste this text into "Main.cpp":
Code:
//
#include <stdio.h>
#include <windows.h>
//
This is for including files into the DLL.
Now copy and paste this into "Main.cpp"
Code:
// Addresses
#define Playerpointer 0x00CC4778
#define Serverpointer 0x00BCE110
#define OFF_NFD 0x00000308
#define OFS_STAMINA 0x00000010
#define OFS_Z 0x00000240
// End Addresses
These are the addresses. Everytime WarRock updates the addresses wil be updated too. So these addresses are from 14/09/09, but if youre reading this tut after 14/09/09 and another update is done you will need to replace them with the new addresses, wich can be found at this forum under WarRock International.
NOTE: When you change the addresses, only replace the 0x0000000 not the #define OFS_Z
So enough about the addresses. Now it's time to enter the real codes.
We are going to make the following hacks: Unlimited Stamina, Super Jump and No Fall Damage (NFD). Copy and paste this into "Main.cpp":
Code:
/////////////////
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *megame= (DWORD*)Serverpointer;
////////////////
// HACK CODES //
void Stamina()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_STAMINA) = 100;
}
}
void Jump()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 2500;
}
}
}
void NFD()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFF_NFD) = -20000;
}
}
void HackThread()
{
for(;;)
{
if(*ingame) //check if we are ingame.. prevent crashs
{
NFD();
Jump();
Stamina();
}
if(*megame)
{
// Add the PX Items here.
}
Sleep(200); //prevent for overloading the cpu
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
}
return TRUE;
}
Now go to: Build -> Build Hack. Then go to the folder where your're C++ projects are saved. At my comp it saves under: "My documents\Visual Studio 8\Projects" Then open the map called "Hack". Then go to Debug and you'll see Hack.dll. Now find an injector on this forum. Download it and place it in the same map as "Hack.dll" rename it to the same name as the DLL. So rename it to "Hack.exe". Then open "Hack.exe" start WarRock and it will inject.
So now you've made a WarRock hack. You've made: Stamina, NFD (No Fall Damge) and Superjump.
If you want to add more hacks this is what to do:
Search this forum for more sources of hacks.
Then paste that above "(void) HackThread()".
Then go to "if(*ingame)" and then add the name of the hack you want to add to the list. The name can be found at the source of the hack you want to add, next to "void [Then here will be the name] ()"
Type this name into the list and then build it.