Help with warrock premium hack

Posts 15 of 5 · Page 1 of 1
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...
Well Im no genius, and hell Im not even sure how ur code works but im pretty sure u should add:
Code:
#include <stdafx.h>
to the beginning of ur code :L

Cuz the error says to add it 3 times o_O?!
Quote Originally Posted by why06 View Post
Well Im no genius, and hell Im not even sure how ur code works but im pretty sure u should add:
Code:
#include <stdafx.h>
to the beginning of ur code :L

Cuz the error says to add it 3 times o_O?!
You know what i wonder about: When you make an empty project you don't need the stdafx, however if you use the same project type, but with the header, and you delete it, visual studio complains that it isn't there.
Project>Add new item>Header(.h) I think.
Gotta start with a blank project.

Which menu hack are u using? It might be detected.
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?