Help with warrock premium hack
Ok so all i want to do is make a war rock no-menu premium hack. i think from the tutorials i followed here i got it... mostly... still getting some errors
heres what i have:
Code:
#include <windows.h>
#include <stdio.h>
#define Premium_OffSet 0x00000374
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
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)
{
Premium();
}
if(*outgame)
{
Premium();
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
i have a nice menu hack but it doesn't have premium so i tried to do this also.
thanks in advance.
errors:
Code:
warning C4627: '#include <stdio.h>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
Code:
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
Code:
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
yes i got that twice...