Results 1 to 12 of 12
  1. #1
    fernandotdb's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    80
    Reputation
    10
    Thanks
    12

    Chams D3D > sem erros

    Esse Source esta sem Erros e só adc e Pronto.

    1° Crie um Header.h Com Nome de " ChamsRGB.h "
    e Cole o Code Abaixo

    Code:
    #ifdef CABR 
    // Combat Arms Brazil
    #define DeviceGame      0x009138D0
    #define DIPEngine       0x00663CFA
    #endif 
      
    #ifdef CAEU 
    // Combat Arms Europe 
    #define GameStatus      0x37806FC4 
    #define DIPEngine       0x006A3E0A 
    #endif 
      
    #ifdef CANA 
    // Combat Arms North American 
    #define GameStatus      0x37806FC4 
    #define DIPEngine       0x006A3E1A 
    #endif 
      
    #ifdef CAKR 
    // Combat Arms Korean 
    #define GameStatus      0x3774C6F0 
    #define DIPEngine       0x006A358A 
    #endif 
      
    DWORD retDIPEngine = (DIPEngine + 0x8); 
      
    INT chams; 
    INT color1;
    INT color2;
    INT color3;
    INT color4;
    INT indexcolor; 
      
    //#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 ) 
      
    VOID SetLightChams(LPDIRECT3DDEVICE9 pDevice, FLOAT A, FLOAT R, FLOAT G, FLOAT B) 
    { 
        D3DMATERIAL9 pMaterial; 
        ZeroMemory(&pMaterial, sizeof(D3DMATERIAL9)); 
        pDevice->SetRenderState(D3DRS_LIGHTING, TRUE); 
        //Ambient 
        pMaterial.Ambient.a = (A/255); 
        pMaterial.Ambient.r = (R/255); 
        pMaterial.Ambient.g = (G/255); 
        pMaterial.Ambient.b = (B/255); 
        //Diffuse 
        pMaterial.Diffuse.a = (A/255); 
        pMaterial.Diffuse.r = (R/255); 
        pMaterial.Diffuse.g = (G/255); 
        pMaterial.Diffuse.b = (B/255); 
        //Specular 
        pMaterial.Specular.a = (A/255); 
        pMaterial.Specular.r = (R/255); 
        pMaterial.Specular.g = (G/255); 
        pMaterial.Specular.b = (B/255); 
        pDevice->SetMaterial(&pMaterial); 
    } 
      
    __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( chams ) { 
      
            pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE ); 
      
            if( chams == 1 ) { 
                if( color1 == 1 ) SetLightChams( pDevice, 255, 255, 000, 000 ); 
                if( color1 == 2 ) SetLightChams( pDevice, 255, 000, 255, 000 ); 
                if( color1 == 3 ) SetLightChams( pDevice, 255, 000, 000, 255 ); 
                if( color1 == 4 ) SetLightChams( pDevice, 255, 000, 000, 000 );
    			if( color1 == 5 ) SetLightChams( pDevice, 255, 255, 000, 255 );
    			if( color1 == 6 ) SetLightChams( pDevice, 255, 255, 255, 255 );
    			if( color1 == 7 ) SetLightChams( pDevice, 255, 255, 255, 000 );
    			if( color1 == 8 ) SetLightChams( pDevice, 255, 150, 000, 255 );
            } 
            if( chams == 2 ) { 
                pDevice->SetRenderState( D3DRS_LIGHTING, D3DZB_TRUE ); 
                pDevice->SetRenderState( D3DRS_SHADEMODE, D3DSHADE_FLAT ); 
                pDevice->SetRenderState( D3DRS_FOGENABLE, D3DZB_FALSE ); 
                if( color2 == 1 ) pDevice->SetRenderState( D3DRS_AMBIENT, Red   ); 
                if( color2 == 2 ) pDevice->SetRenderState( D3DRS_AMBIENT, Green ); 
                if( color2 == 3 ) pDevice->SetRenderState( D3DRS_AMBIENT, Blue  ); 
                if( color2 == 4 ) pDevice->SetRenderState( D3DRS_AMBIENT, Black );
            } 
            if( chams > 2 ) { 
                pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, D3DZB_TRUE ); 
                pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVDESTCOLOR ); 
                if( chams == 3 ) pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_INVSRCCOLOR ); 
                if( chams == 4 ) pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_INVSRCALPHA ); 
            } 
      
            pDevice->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount ); 
      
            pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_TRUE ); 
      
            if( chams == 1 ) { 
                if( color3 == 1 ) SetLightChams( pDevice, 255, 255, 000, 000 ); 
                if( color3 == 2 ) SetLightChams( pDevice, 255, 000, 255, 000 ); 
                if( color3 == 3 ) SetLightChams( pDevice, 255, 000, 000, 255 ); 
                if( color3 == 4 ) SetLightChams( pDevice, 255, 000, 000, 000 );
    			if( color3 == 5 ) SetLightChams( pDevice, 255, 255, 000, 255 );
    			if( color3 == 6 ) SetLightChams( pDevice, 255, 255, 255, 255 );
    			if( color3 == 7 ) SetLightChams( pDevice, 255, 255, 255, 000 );
    			if( color3 == 8 ) SetLightChams( pDevice, 255, 150, 000, 255 );
            } 
            if( chams == 2 ) { 
                if( color4 == 1 ) pDevice->SetRenderState( D3DRS_AMBIENT, Red   ); 
                if( color4 == 2 ) pDevice->SetRenderState( D3DRS_AMBIENT, Green ); 
                if( color4 == 3 ) pDevice->SetRenderState( D3DRS_AMBIENT, Blue  ); 
                if( color4 == 4 ) pDevice->SetRenderState( D3DRS_AMBIENT, Black ); 
            } 
            if( chams > 2 ) { 
                pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, D3DZB_TRUE ); 
                pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVDESTCOLOR ); 
                if( chams == 3 ) pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_INVSRCCOLOR ); 
                if( chams == 4 ) pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_INVSRCALPHA ); 
            } 
        } else { 
            pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_TRUE ); 
        } 
      
        __asm 
        { 
            POPAD 
            JMP retDIPEngine 
        } 
    } 
      
    void *Detourzinr( BYTE *src, const BYTE *dst, const int len ) 
    { 
        BYTE *jmp = ( BYTE * )malloc( len + 5 ); 
        DWORD dwBack; 
      
        VirtualProtect( src, len, PAGE_EXECUTE_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 ); 
    } 
      
    VOID Hook( VOID ) 
    { 
        while( TRUE ) { 
            if( *(BYTE *)GameStatus == 1 ) { 
      
                Detourzinr( (PBYTE)DIPEngine, (PBYTE)DIPMidfunction, 8 );
      
                if(chams) indexcolor = !indexcolor;
            } 
            else 
                memcpy( (VOID *)DIPEngine, (CONST VOID *)(PBYTE)"\x8B\x08\x8B\x91\x48\x01\x00\x00", 8 ); 
      
            Sleep(100); 
        } 
    } 
      
    BOOL CheckModules( VOID ) 
    { 
        if( GetModuleHandleA("d3d9.dll") != NULL 
            && GetModuleHandleA("CShell.dll") != NULL 
            && GetModuleHandleA("ClientFX.fxd") != NULL ) 
            return TRUE; 
      
        return FALSE; 
    } 
      
    DWORD WINAPI StartRoutine( LPVOID ) 
    { 
        while( !CheckModules( ) ) 
            Sleep(100); 
      
        Hook( ); 
      
        return 0; 
    }

    2° Depois Inclua a " Header.h "
    Geralmente em Alguma Base Fica em " Files.h " Ou " Hack.cpp "
    não acho ? E Onde vc adc o hack ao menu ..

    Code:
    #include "ChamsRGB.h"

    3° Va Na Header " dllmain.cpp " Ou " Base.cpp "
    Isso Vareia de Base.
    Onde Fica a Message onde Injeta Abaixo Dela Cole isso


    Code:
    CreateThread(NULL, NULL,(LPTHREAD_START_ROUTINE)StartRoutine, NULL, NULL, NULL);

    Em Algumas Bases Por da Um erro Dizendo que ainda não foi definido a " StartRoutine " Ai Vc coloca em Cima da Hook o Code abaixo


    Code:
    DWORD WINAPI StartRoutine( LPVOID );


    e Por Ultimo Vamos as cores e os tipos de chams ..
    Geralmente em Alguma Base Fica em " Files.h " Ou " Hack.cpp "
    não acho ? E Onde vc adc o hack ao menu ..


    Code:
    char* Opt_Chams5[] = { "[Des]","[RGB]", "[Wall]", "[Ghost]", "[Phantom]" };
    char* Opt_CorRGB[] = { "[Des]","[Red]", "[Green]", "[Blue]", "[Black]", "[Pink]", "[Branco]", "[Yellow]", "[Roxo]" };

    No Menu Ficara Assim:


    Code:
    Additem("Chams D3D", 4, chams,  0, Opt_Chams5, pDevice);
    Additem("Cor 1", 8, color1,  0, Opt_CorRGB, pDevice);
    Additem("Cor 2", 8, color2,  0, Opt_CorRGB, pDevice);
    Creditos:
    Detour -> Azorbix
    Types of chams -> Pheron or Phenomand
    Midfunction -> Shadow_ && Gellin
    WE11ington
    @Unknown.Coder & -> Compartilha '-'
    TyoAnonymous [ @The Decoder ] > Arrumou uns Erros do Source.

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

    Fєηix (05-19-2013),Overtyme (04-16-2013)

  3. #2
    Nightmare's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    North of Hell
    Posts
    2,396
    Reputation
    149
    Thanks
    6,601
    My Mood
    Worried
    https://www.mpgh.net/forum/397-combat...ip-engine.html

    Cara posta alguma coisa útil na sua vida.

  4. #3
    fernandotdb's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    80
    Reputation
    10
    Thanks
    12
    Tudo Quer Eu Vou Postar Ja Tem Vou Ficar Sem Postar

  5. #4
    Nightmare's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    North of Hell
    Posts
    2,396
    Reputation
    149
    Thanks
    6,601
    My Mood
    Worried
    Antes de postar pesquise no fórum e veja se o seu conteúdo não seja semelhante a um que já esteja postado.

  6. #5
    pDevice's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    d3d9.h
    Posts
    1,306
    Reputation
    15
    Thanks
    420
    My Mood
    Stressed
    Quote Originally Posted by fernandotdb View Post
    Tudo Quer Eu Vou Postar Ja Tem Vou Ficar Sem Postar
    Posta sua mãe tomando banho, imagina 1,000,000,000,000 de thanks ?



  7. The Following 3 Users Say Thank You to pDevice For This Useful Post:

    dreek1 (01-17-2013),Hacker Fail (01-16-2013),The Decoder (01-16-2013)

  8. #6
    MaggotHunter's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    5
    Quote Originally Posted by pDevice View Post

    Posta sua mãe tomando banho, imagina 1,000,000,000,000 de thanks ?
    imagina a andressa lumertz peladona uiiiiiiiii

  9. #7
    Hacker Fail's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    C++
    Posts
    2,136
    Reputation
    242
    Thanks
    12,562
    Quote Originally Posted by pDevice View Post

    Posta sua mãe tomando banho, imagina 1,000,000,000,000 de thanks ?
    Punheteiro
    Member Level 1 since November, 2011
    Contributor since March, 2015
    Game Hacking Team : 06/14/2017

     

  10. #8
    clebertiba's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    Aprendiz
    Posts
    160
    Reputation
    10
    Thanks
    9
    @Flengo close the topic already posted in the section

  11. #9
    Hacker_Striker's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    80
    Reputation
    10
    Thanks
    16
    My Mood
    Aggressive
    Quote Originally Posted by MaggotHunter View Post
    imagina a andressa lumertz peladona uiiiiiiiii
    MaggotHunter seu nick no CA é MAGGOT-EVIL?
    e o usuario é davibelini?

    ---------- Post added at 05:46 PM ---------- Previous post was at 05:45 PM ----------

    Quote Originally Posted by pDevice View Post

    Posta sua mãe tomando banho, imagina 1,000,000,000,000 de thanks ?
    pDevice is HENTAI! kkkkkkkk

  12. #10
    The Decoder's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    147
    Reputation
    10
    Thanks
    13
    My Mood
    Amazed
    @fernandotdb, mano pesquisa antes de posta meu Deus.



    @Flengo close, conteúdo já existente.
    Last edited by The Decoder; 01-16-2013 at 05:08 PM.


    [IMG]https://i62.photobucke*****m/albums/h117/monkeyboy1916/NarutoFanUserBar.png[/IMG]
    [IMG]https://i1166.photobucke*****m/albums/q610/predator99/WarfaceRifleman.jpg[/IMG]
    [IMG]https://lh5.googleuserconten*****m/-5LjLMoGwJCc/UP9ag_xqwEI/AAAAAAAAABs/xmVi3-_pnLc/h51/DoS-Member.gif[/IMG]

    WarFace - M4DG4
    Respect List:
    @ChaosMagican
    @Code64
    @TokolocoSK
    @luizimloko
    @ParkII
    @Coder.Dias
    @WE11ington
    @pDevice
    @FooChaos

  13. #11
    Hacker Fail's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    C++
    Posts
    2,136
    Reputation
    242
    Thanks
    12,562
    Quote Originally Posted by The Decoder View Post
    @fernandotdb, mano pesquisa antes de posta meu Deus.



    @Flengo close, conteúdo já existente.
    Fala em inglês pra ele
    Member Level 1 since November, 2011
    Contributor since March, 2015
    Game Hacking Team : 06/14/2017

     

  14. #12
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,591
    Reputation
    5180
    Thanks
    14,179
    My Mood
    Inspired
    Closed due to the fact that its already been posted a few times.

    https://www.mpgh.net/forum/397-combat...ip-engine.html

    Also, for those trying to mention me; The first thing (item) in your post cannot be a mention, it has to be some other text.

    /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


Similar Threads

  1. [Detected] Demtrios 3.3 Chams D3D, Esp's, Invisible, Telekill, NPC Opk, AntiKick +++
    By demtrios in forum Combat Arms Brazil Hacks
    Replies: 16
    Last Post: 10-31-2012, 11:26 AM
  2. [Detected] Unknown.Coder 2.8 Simples | Chams D3D | AimCorrection And More
    By Coder.Anonymous in forum Combat Arms Brazil Hacks
    Replies: 21
    Last Post: 10-05-2012, 03:59 PM
  3. [Detected] Slamming - BT13 - [New]Chams D3D, Wall Hack, Aimbot - Updated 25/02/2012
    By Black Diamond in forum Combat Arms Brazil Hacks
    Replies: 26
    Last Post: 03-04-2012, 04:33 AM
  4. [Outdated] Chams D3D
    By luizimloko in forum Combat Arms Brazil Mods & Rez Modding
    Replies: 23
    Last Post: 01-20-2012, 03:46 PM
  5. [Release] GameNoob Chams D3D, NO DETECT AT ALL!!!
    By camD in forum WarRock - International Hacks
    Replies: 31
    Last Post: 03-24-2010, 06:15 AM