Results 1 to 8 of 8
  1. #1
    sam1's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    6
    My Mood
    Dead

    help? crash and not stay on

    ok im sorry to have to ask for help but iv tryed to make my own hot key and you have to hold the key down for the hack to stay on also after one min it crash's


    Code:
    #include <windows.h>
    //Addys Here
    #define LTCAddy 0x377ED910 
    //LTClient Address (Not Alt one)
    #define RECOIL1 0x3745FA90
    #define RECOIL2 0x37232A69
    #define RECOIL3 0x3745FAA4
    #define RECOIL4 0x3745FAA7
    #define RECOIL5 0x3745FAB0
    //Defines
    
    
    
    
    
    
    bool Memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
    { 
        DWORD dwOrgProtect = NULL; 
    	if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
    		return FALSE;
    
        memcpy( pDest, szPatch, sSize ); 
        VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
        return TRUE; 
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    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* )( 0x377ED910 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }	
    void main()
    {
    while(true)
    {
    	/////////////////////////////////////////////////////////////////////////
    
    
    
    if(GetAsyncKeyState(VK_NUMPAD2)<0){ 
    			
    				PushToConsole("PerturbRotationEffect 3.000000");
    				PushToConsole("PerturbIncreaseSpeed 3.000000");
    				PushToConsole("PerturbDecreaseSpeed 9.000000");
    				PushToConsole("PerturbWalkPercent 0.500000");
    			} else {
    				PushToConsole("PerturbRotationEffect  0.000000"); 
    				PushToConsole("PerturbIncreaseSpeed 0.000000"); 
    				PushToConsole("PerturbWalkPercent 0.000000"); 
    				PushToConsole("PerturbFiringIncreaseSpeed 0.000000");	
    			}
    
    
    if(GetAsyncKeyState(VK_NUMPAD3)<0){ // No Recoil
    			
    			Memoria((LPVOID)(RECOIL1), "\xD8\x66\x54", 3);
    			Memoria((LPVOID)(RECOIL2), "\xD9\x46\x54", 3);
    			Memoria((LPVOID)(RECOIL3), "\xD9\x5E\x54", 3);
    			Memoria((LPVOID)(RECOIL4), "\xD9\x46\x48", 3);
    			Memoria((LPVOID)(RECOIL5), "\xD9\x5E\x48", 3);
    				
    			} else {
    			Memoria((LPVOID)(RECOIL1), "\x90\x90\x90", 3);
    			Memoria((LPVOID)(RECOIL2), "\x90\x90\x90", 3);
    			Memoria((LPVOID)(RECOIL3), "\x90\x90\x90", 3);
    			Memoria((LPVOID)(RECOIL4), "\x90\x90\x90", 3);
    			Memoria((LPVOID)(RECOIL5), "\x90\x90\x90", 3);
    				
    			}
    
    
    
    if(GetAsyncKeyState(VK_NUMPAD1)<0){ // No Recoil
    			
    
    
    
    
    			PushToConsole("SkelModelStencil 1");
    				
    			} else {
    			PushToConsole("SkelModelStencil 0");
    				
    			}
    
    
    
    
    
    
    
    Sleep(200);
    ////////////////////////////////////////////////////////////////////////////////
    }
    }
    DWORD WINAPI dwHackThread(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, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    the problem is that The way to have is coded he hack is only goin to activate when you hit the hotkey..soon as you take your finger off its goin to deactivate..

  3. #3
    sam1's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    6
    My Mood
    Dead
    Quote Originally Posted by whit View Post
    the problem is that The way to have is coded he hack is only goin to activate when you hit the hotkey..soon as you take your finger off its goin to deactivate..
    and why does it crash?

  4. #4
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    645
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    ptc function is detected .......





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  5. The Following User Says Thank You to GodHack2 For This Useful Post:

    sam1 (10-09-2010)

  6. #5
    sam1's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    6
    My Mood
    Dead
    Quote Originally Posted by GodHack2 View Post
    ptc function is detected .......
    i thanked u!

    all i needed to no?

    can u post one?, if not thats ok

  7. #6
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    645
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    Quote Originally Posted by sam1 View Post
    i thanked u!

    all i needed to no?

    can u post one?, if not thats ok
    [php]void __cdecl cBase::PushToConsole(const char* szCommand )
    {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
    DWORD *LTClient = ( DWORD* )( 0x377ED910 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    }
    [/php]
    this is the ptc function that am using atm and it is working perfectly i guess /
    good thing am relaxed atm listening to music





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  8. The Following User Says Thank You to GodHack2 For This Useful Post:

    sam1 (10-09-2010)

  9. #7
    sam1's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    6
    My Mood
    Dead
    wow ok thanked again(need more people like you)

  10. #8
    Irony's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    MPGH where else?
    Posts
    5,969
    Reputation
    285
    Thanks
    539
    My Mood
    Busy
    Obviously, i dont get it.

Similar Threads

  1. Help with Random Crashing and Console Errors.
    By akeuii in forum Vindictus Help
    Replies: 7
    Last Post: 07-21-2011, 11:33 AM
  2. [Help] Youtube and HTML tags not working in siggy
    By BustaRap in forum Suggestions, Requests & Help
    Replies: 2
    Last Post: 04-30-2011, 02:41 PM
  3. [HELP] korean warrock not woking just a gray screen
    By killajones427 in forum WarRock Korea Hacks
    Replies: 6
    Last Post: 05-06-2007, 04:35 PM
  4. [HELP]Warrock and DLLs
    By Aecurity in forum WarRock - International Hacks
    Replies: 0
    Last Post: 04-12-2007, 07:38 PM
  5. [Help]CE and GPS
    By 22061988 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 10-15-2006, 12:20 PM