You NOP the addies and then put it in the void main
I'm working on just making a little hack for myself to use..and I got no idea how to add no recoil to my simple NX chams hack.. this is the code
Credits to CoderNever for his tutorial
Code:#include <windows.h> bool IsGameReadyForHook() { if( GetModuleHandleA( "d3d9.dll" ) != NULL && GetModuleHandleA( "ClientFX.fxd" ) != NULL && GetModuleHandleA( "CShell.dll" ) != NULL ) return true; return false; } void __cdecl PushToConsole( const char* szCommand ) { DWORD *LTClient = ( DWORD* )( 0x377E7810 ); void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 ); __asm { push szCommand; call CONoff; add esp, 4; } } void main() { while(true) { PushToConsole("SkelModelStencil -1" ); } } DWORD WINAPI HackThread(LPVOID) { while( !IsGameReadyForHook() ) Sleep(100); main(); return 0; } BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { DisableThreadLibraryCalls(hDll); if ( dwReason == DLL_PROCESS_ATTACH ) { CreateThread(NULL, NULL, HackThread, NULL, NULL, NULL); } return TRUE; }
You NOP the addies and then put it in the void main
I am deathninjak0.
Ok so I got the addies from Bloods thread..
Credits to Braco22:
No Recoil:
0x3737EE23
0x3745B7D1
0x3745B7D4
0x3745B7E0
How To Use:
No Recoil On:Code:bool Memoria( void * pDest, char * szPatch, size_t sSize )//NOP Function { DWORD dwOrgProtect = NULL; if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect )) return FALSE; memcpy( pDest, szPatch, sSize ); VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); return TRUE; }
Honestly I got no idea what to do..im sort of trying to learn as I go.. /Code:Memoria((LPVOID) (0x3737EE23), "\x90\x90\x90", 3); Memoria((LPVOID) (0x3745B7D1), "\x90\x90\x90", 3); Memoria((LPVOID) (0x3745B7E0), "\x90\x90\x90", 3); Memoria((LPVOID) (0x3745B7D4), "\x90\x90\x90\x90\x90\x90", 6);
Added it in there for ya. just C&P the code. any error's let me no!Code:#include <windows.h> bool IsGameReadyForHook() { if( GetModuleHandleA( "d3d9.dll" ) != NULL && GetModuleHandleA( "ClientFX.fxd" ) != NULL && GetModuleHandleA( "CShell.dll" ) != NULL ) return true; return false; } void __cdecl PushToConsole( const char* szCommand ) { DWORD *LTClient = ( DWORD* )( 0x377E7810 ); void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 ); __asm { push szCommand; call CONoff; add esp, 4; } } void main() { while(true) bool ass = false; { PushToConsole("SkelModelStencil -1" ); if(GetAsyncKeyState(VK_NUMPAD1) > 0) memcpy((LPVOID) (0x3745BC37), "\x90\x90\x90", 3); memcpy((LPVOID) (0x3744BDE0), "\x90\x90\x90", 3); memcpy((LPVOID) (0x3745BC34), "\x90\x90\x90", 3); memcpy((LPVOID) (0x3745BC40), "\x90\x90\x90", 3); ass = true; else memcpy((LPVOID) (0x3745BC37), "\xD8\x46\x48", 3); memcpy((LPVOID) (0x3744BDE0), "\xD8\x46\x54", 3);// memcpy((LPVOID) (0x3745BC34), "\xD9\x5E\x54", 3);// memcpy((LPVOID) (0x3745BC40), "\xD8\x66\x54", 3);// ass = false; Sleep(200) } } DWORD WINAPI HackThread(LPVOID) { while( !IsGameReadyForHook() ) Sleep(100); main(); return 0; } BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { DisableThreadLibraryCalls(hDll); if ( dwReason == DLL_PROCESS_ATTACH ) { CreateThread(NULL, NULL, HackThread, NULL, NULL, NULL); } return TRUE; }
Don't worry about memoria...I think its for reducing the lag..
Fixed it for you.Code:#include <windows.h> bool IsGameReadyForHook() { if( GetModuleHandleA( "d3d9.dll" ) != NULL && GetModuleHandleA( "ClientFX.fxd" ) != NULL && GetModuleHandleA( "CShell.dll" ) != NULL ) return true; return false; } void __cdecl PushToConsole( const char* szCommand ) { DWORD *LTClient = ( DWORD* )( 0x377E7810 ); void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 ); __asm { push szCommand; call CONoff; add esp, 4; } } void main() { while(true) { PushToConsole("SkelModelStencil -1" ); memcpy((LPVOID) (0x3737EE23), "\x90\x90\x90", 3); memcpy((LPVOID) (0x3745B7D1), "\x90\x90\x90", 3); memcpy((LPVOID) (0x3745B7E0), "\x90\x90\x90", 3); memcpy((LPVOID) (0x3745B7D4), "\x90\x90\x90\x90\x90\x90", 6); } } DWORD WINAPI HackThread(LPVOID) { while( !IsGameReadyForHook() ) Sleep(100); main(); return 0; } BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { DisableThreadLibraryCalls(hDll); if ( dwReason == DLL_PROCESS_ATTACH ) {
I am deathninjak0.
I see what you did thurr trainer
Death I get one error says : end of file found before the left brace '{'
add me on msn,
game.trainermaker@live.com
I was just showing you where to put it, just an example. I didn't actually test it out.
I am deathninjak0.