Thread: Compile this

Results 1 to 4 of 4
  1. #1
    Mr.Lieul's Avatar
    Join Date
    Feb 2012
    Gender
    female
    Location
    Doobic
    Posts
    92
    Reputation
    18
    Thanks
    419
    My Mood
    Bitchy

    Compile this

    I can't compile cause I didn't install any SDK

    my com can't include <d3dx9.h>

    Code:
    #include <windows.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    
    #pragma comment(lib, "d3d9.lib")
    #pragma comment(lib, "d3dx9.lib")
    
    // NUMPAD1 => On/Off chams.
    // NUMPAD2 => Change colors.
    
    #define GameStatus      0x377791CC
    #define DIPEngine       0x006A358A
    
    DWORD retDIPEngine = ( DIPEngine + 0x8 );
    
    INT chams;
    INT color;
    
    #define Red     D3DCOLOR_ARGB( 255, 255, 000, 000 )
    #define Green   D3DCOLOR_ARGB( 255, 000, 255, 000 )
    #define Blue    D3DCOLOR_ARGB( 255, 000, 000, 255 )
    #define Black   D3DCOLOR_ARGB( 255, 000, 000, 000 )
    
    __declspec( naked ) HRESULT WINAPI DIPMidfunction( )
    {
        static LPDIRECT3DDEVICE9 pDevice;
        static INT BaseVertexIndex;
        static UINT MinVertexIndex, NumVertices, startIndex, primCount;
    
        __asm
        {
            MOV ECX, DWORD PTR DS:[EAX]
            MOV EDX, DWORD PTR DS:[ECX + 0x148]
            MOV DWORD PTR DS:[pDevice], EAX
            MOV ECX, DWORD PTR DS:[EBP + 0x18]
            MOV DWORD PTR DS:[BaseVertexIndex], ECX
            MOV ECX, DWORD PTR DS:[EBP + 0x8]
            MOV DWORD PTR DS:[MinVertexIndex], ECX
            MOV ECX, DWORD PTR DS:[EBP + 0x10]
            MOV DWORD PTR DS:[NumVertices], ECX
            MOV ECX, DWORD PTR DS:[EBP + 0xC]
            MOV DWORD PTR DS:[startIndex], ECX
            MOV ECX, DWORD PTR DS:[EBP + 0x14]
            MOV DWORD PTR DS:[primCount], ECX
            PUSHAD
        }
    
        if( GetAsyncKeyState(VK_NUMPAD1)&1 )
            chams = !chams;
     
        if( GetAsyncKeyState(VK_NUMPAD2)&1 )
            color++;
        
        if( color > 4 )
            color = 0;
        
        if( chams )
        {
            pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
            if( color == 1 ) pDevice->SetRenderState( D3DRS_AMBIENT, Red   );
            if( color == 2 ) pDevice->SetRenderState( D3DRS_AMBIENT, Green );
            if( color == 3 ) pDevice->SetRenderState( D3DRS_AMBIENT, Blue  );
            if( color == 4 ) pDevice->SetRenderState( D3DRS_AMBIENT, Black );
        }
    
        __asm
        {
            POPAD
            JMP retDIPEngine
        }
    }
    
    VOID *DetourCreate( BYTE *src, CONST BYTE *dst, CONST INT len )
    {
        BYTE *jmp =( BYTE * ) malloc( len + 5 );
        DWORD dwBack;
    
        VirtualProtect( src, len, PAGE_READWRITE, &dwBack );
        memcpy( jmp, src, len );    
        jmp += len;
        jmp[0] = 0xE9;
        *( DWORD * )( jmp + 1 ) = ( DWORD )( src + len - jmp ) - 5;
    
        src[0] = 0xE9;
        *( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;
        for( INT i = 5; i < len; i++ )
            src[i] = 0x90;
        VirtualProtect( src, len, dwBack, &dwBack );
    
        return( jmp - len );
    }
    
    DWORD WINAPI StartRoutine( LPVOID )
    {
        while( TRUE )
        {
            if( memcmp( ( VOID * )DIPEngine, ( VOID * )( PBYTE )"\x8B\x08", 2 ) == 0 )
            {
                Sleep( 100 );
                DetourCreate( ( PBYTE )DIPEngine, ( PBYTE )DIPMidfunction, 8 );
            }
            Sleep( 50 );
        }
     
        return 0;
    }
    
    BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    { 
        if( dwReason == DLL_PROCESS_ATTACH )
        {
            DisableThreadLibraryCalls( hDll );
            MessageBoxA( 0, " DIP Based ", "Elab V1.0", 0 );
            CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)StartRoutine, 0, 0, 0 );
        }
     
        return TRUE;
    }
    Thanks
    [SIZE=5]



    FREE LEAGUEOFLEGENDS KR ACCOUNT
    ID : combatarmskr1
    ID : combatarmskr2
    ID : combatarmskr3
    ID : combatarmskr4
    ID : combatarmskr5
    PW : ppp098 ( all of these ID )

    I AM NOT KOREAN.

    DON'T HATE ME GUYS.

  2. #2
    GoldWhite's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    136
    Reputation
    10
    Thanks
    46
    How find dip engine addy?

  3. #3
    5555satan's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    i dont remember where i live
    Posts
    296
    Reputation
    10
    Thanks
    240
    My Mood
    Paranoid
    i dont understand what u want...
    Press Thanks if i helped you / if you liked my signature



    Add me on skype: ReFusioNN-

  4. #4
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,587
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    We're not here to compile your hacks on demand and give them to you.

    Learn C++ and download the SDK and include it to your project. Compile it yourself

    /Solved
    /Closed
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  5. The Following 2 Users Say Thank You to Flengo For This Useful Post:

    supercarz1991 (02-25-2013),wraithkilla (02-26-2013)

Similar Threads

  1. I keep getting this error when ever i try to compile the hacks i made
    By zackwpulaski in forum Combat Arms Coding Help & Discussion
    Replies: 8
    Last Post: 11-10-2010, 11:42 AM
  2. [Help]Script compile error.(rules readed this time)
    By GBot! in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 11
    Last Post: 08-15-2010, 08:33 AM
  3. Help me with this error when compiling
    By Beatz in forum Combat Arms Help
    Replies: 3
    Last Post: 07-09-2010, 01:36 AM
  4. What compiler/program do I use for this?
    By Luke6.5 in forum General
    Replies: 7
    Last Post: 04-13-2010, 01:10 PM
  5. Can someone compile this
    By ajvpot in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 02-21-2010, 04:24 AM