Hello all MPGH Community
I found there some Hack tutorials in c++ 2008 for make nomenu warrock hacks.
So i make my own hack with address of 15/07/10 (The Last Warrock Update)
and i build the .DLL and make my own injector.
So im gonna test it but.. suprisely it dont work..
if someone can check my code for see any error its cool..
Heres my main.cpp
Code:
#include <windows.h>
#include <stdio.h>
// Adress List //
#define Playerpointer 0x00C3F068
#define Serverpointer 0x00B39BE0
#define OFS_Z 0x00000264
#define OFS_PREMIUM 0x37C
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
void Jump() // superjump if hit control button
{
if(GetAsyncKeyState(VK_LCONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 1500;
}
}
}
void premium () // Gold Premium
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_PREMIUM) = 3, 10; // 1 = bronze 2 = silver 3 = gold
}
}
void HackThread()
{
for(;; )
{
if(*ingame) //check if we are ingame.. prevent crashs
{
Jump();
premium();
}
if(*outgame)
{
premium();
}
Sleep(200); //prevent for overloading the cpu
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
}
return TRUE;
}
If u see some error please tell me. (i will credit all people who help me for the hack)