Results 1 to 15 of 15
  1. #1
    lag's Avatar
    Join Date
    Jul 2008
    Posts
    19
    Reputation
    10
    Thanks
    2

    Code for Wallhacking

    This is the Code for Wallhack *Making* .. yes title is wrong NO CREDITS ME ;D U NEED
    D3D FOR THIS


    Code:
    //**Color**//
    HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
    {
    if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
    return E_FAIL;

    WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
    |(WORD)(((colour32>>20)&0xF)<<8)
    |(WORD)(((colour32>>12)&0xF)<<4)
    |(WORD)(((colour32>>4)&0xF)<<0);

    D3DLOCKED_RECT d3dlr;
    (*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
    WORD *pDst16 = (WORD*)d3dlr.pBits;

    for(int xy=0; xy < 8*8; xy++)
    *pDst16++ = colour16;

    (*ppD3Dtex)->UnlockRect(0);

    return S_OK;
    }

    struct pixels
    {
    IDirect3DTexture9 *pBlue, *pRed, *pPurple, *pOrange, *pWhite, *pGreen, *pYellow, *pPink,*pCyan,*pBlack;
    }; pixels pi;

    #define pchamp( x, b, f )
    if( x )
    {
    YourDevice->SetRenderState( D3DRS_ZENABLE, FALSE );
    YourDevice->SetRenderState( D3DRS_ZFUNC, D3DCMP_NEVER );
    YourDevice->SetTexture( 0, NULL );
    YourDevice->SetTexture( 0, f );
    YourDevice->DrawIndexedPrimitive( Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount );
    YourDevice->SetRenderState( D3DRS_ZENABLE, TRUE );
    YourDevice->SetRenderState( D3DRS_ZFUNC,D3DCMP_LESSEQUAL );
    YourDevice->SetTexture( 0, b );
    YourDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
    return YourDevice->DrawIndexedPrimitive( Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount );
    }
    //**//
    EndScene
    Code:
    int color = true;
    if(color)
    {
    GenerateTexture(YourDevice,&pi.pRed, D3DCOLOR_ARGB(255,255,0,0 ));
    GenerateTexture(YourDevice,&pi.pCyan, D3DCOLOR_ARGB(255,0,255,255 ));
    GenerateTexture(YourDevice,&pi.pYellow, D3DCOLOR_ARGB(255,255,255,0 ));
    GenerateTexture(YourDevice,&pi.pBlue, D3DCOLOR_ARGB(255,0,0,255 ));
    GenerateTexture(YourDevice,&pi.pGreen, D3DCOLOR_ARGB(255,0,255,0 ));
    GenerateTexture(YourDevice,&pi.pOrange, D3DCOLOR_ARGB(255,255,165,0 ));
    GenerateTexture(YourDevice,&pi.pPurple, D3DCOLOR_ARGB(255,160,32,240 ));
    GenerateTexture(YourDevice,&pi.pWhite, D3DCOLOR_ARGB(255,255,255,255 ));
    GenerateTexture(YourDevice,&pi.pPink, D3DCOLOR_ARGB(255,255,105,180 ));
    GenerateTexture(YourDevice,&pi.pBlack, D3DCOLOR_ARGB(255,0,0,0 ));
    color = false;
    }
    DrawIndexedPrimitive()
    Code:
    if(chams)
    {
    pchamp(m_Stride == 44,pi.pBlue,pi.pGreen);
    }
    Last edited by lag; 08-01-2008 at 09:12 AM.

  2. #2
    Rickyrudy's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    277
    Reputation
    10
    Thanks
    26
    How many times will somebody copy paste this hoping to get good feed back or a completed dll.....

  3. #3
    lag's Avatar
    Join Date
    Jul 2008
    Posts
    19
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by Rickyrudy View Post
    How many times will somebody copy paste this hoping to get good feed back or a completed dll.....
    WOW im sry for trying help the coders MY BAD maybe i should make bigger letters that says no credits for me!

  4. #4
    Rickyrudy's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    277
    Reputation
    10
    Thanks
    26
    >.> its 3/4 pages back if they wanted to they could skip through i didn't have to read any part of that as it is an exact replica to that on the third page >.>

  5. #5
    gbitz's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    Here.
    Posts
    3,136
    Reputation
    197
    Thanks
    335
    Seriously, I doubt YOU even know how to use this. Stop reposting this shit anyway, most people don't know how to use it, and the people that do already have their own.

    Srsly gtfo .

  6. #6
    lag's Avatar
    Join Date
    Jul 2008
    Posts
    19
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by seemliss View Post
    Seriously, I doubt YOU even know how to use this. Stop reposting this shit anyway, most people don't know how to use it, and the people that do already have their own.

    Srsly gtfo .
    thats the reason i said i couldnt L2read moron?

  7. #7
    Rickyrudy's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    277
    Reputation
    10
    Thanks
    26
    I fiddled with this and fail so much xD O.O

  8. #8
    ken135's Avatar
    Join Date
    May 2006
    Gender
    male
    Posts
    158
    Reputation
    10
    Thanks
    20
    Just wondering, Is this patched?

    And do i have permission to use it?

    Cuz ive been working on something for a while now and would really like to import d3d into it

    just so you guys know CA uses d3d9 not 8.

    I FUCKING ATE THE MUFFIN MAN!
    [CENTER]


    Quote Originally Posted by RaxiE View Post
    l_l <== carecup = empty
    Epic Quote.

    Quote Originally Posted by NateC View Post
    wheres my fucking bypass dave.
    Quote make me LOL


  9. #9
    gbitz's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    Here.
    Posts
    3,136
    Reputation
    197
    Thanks
    335
    Just so you know, before you can inject this properly, you need to disable Hackshield, or else it fucks up .

  10. #10
    Rickyrudy's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    277
    Reputation
    10
    Thanks
    26
    Lol its public its all yours >.>

    Edit : O jee i already have enough problems not knowing C++ >.> after getting this to compile theres more problems great :3

  11. #11
    ken135's Avatar
    Join Date
    May 2006
    Gender
    male
    Posts
    158
    Reputation
    10
    Thanks
    20
    Quote Originally Posted by seemliss View Post
    Just so you know, before you can inject this properly, you need to disable Hackshield, or else it fucks up .
    Yeah, I've been reading on it and such. Even have my own private trainer. The thing i dont understand is that after i disable HackShield. I get kicked from server or dont load at all. lol

    I FUCKING ATE THE MUFFIN MAN!
    [CENTER]


    Quote Originally Posted by RaxiE View Post
    l_l <== carecup = empty
    Epic Quote.

    Quote Originally Posted by NateC View Post
    wheres my fucking bypass dave.
    Quote make me LOL


  12. #12
    gbitz's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    Here.
    Posts
    3,136
    Reputation
    197
    Thanks
    335
    Because you can't just 'disable it'. What I meant by that was decompiling shit and having fun. Seriously, it's not easy to do. There are several ways, though.

  13. #13
    ken135's Avatar
    Join Date
    May 2006
    Gender
    male
    Posts
    158
    Reputation
    10
    Thanks
    20
    Ah thanks, maybe we could chat up on msn sometime?

    Mine is ken135@gmail.com ( ask me for my hacks and perma blocked.)

    I FUCKING ATE THE MUFFIN MAN!
    [CENTER]


    Quote Originally Posted by RaxiE View Post
    l_l <== carecup = empty
    Epic Quote.

    Quote Originally Posted by NateC View Post
    wheres my fucking bypass dave.
    Quote make me LOL


  14. #14
    daddyi's Avatar
    Join Date
    Jul 2008
    Posts
    197
    Reputation
    10
    Thanks
    55
    This doesn't work, for the last time -_-

  15. #15
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    mine, i detoured drawindexedprimitive

    Code:
    UINT STRIDE, KE;
    IDirect3DVertexBuffer9* la;
    HRESULT __stdcall hkDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE PrimitiveType,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
    {
        pDevice->GetStreamSource(0, &la, &KE, &STRIDE);
        if(STRIDE == 32 || STRIDE == 36 || STRIDE == 44)
        {
            if(cvars.Chams)
            {
                pDevice->SetRenderState(D3DRS_ZENABLE,false);
                pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                pDevice->SetTexture(0, Yellow);
                pDrawIndexedPrimitive(pDevice, PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
                pDevice->SetRenderState(D3DRS_ZENABLE, true);
                pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                pDevice->SetTexture(0, Red);
            }
            if(cvars.Wallhack)
            {
                pDevice->SetRenderState(D3DRS_ZENABLE, false);
                pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
            }
        }
    
        return pDrawIndexedPrimitive(pDevice, PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    }
    Last edited by Gordon`; 08-01-2008 at 10:21 AM.


Similar Threads

  1. Search for: Wallhack, auto shooter, unlimted ammo
    By kip1234 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 06-07-2007, 08:37 AM
  2. [a little off topic] sellin 7 day ak47 code for warrock
    By m164life in forum WarRock - International Hacks
    Replies: 8
    Last Post: 03-07-2007, 08:33 PM
  3. Unlock code for mobile.
    By Dmx in forum General
    Replies: 4
    Last Post: 01-14-2007, 07:23 PM
  4. SERIAL CODE FOR PHOTOSHOP 9!!!!!!!! 100% working
    By -[standoff]- in forum Art & Graphic Design
    Replies: 10
    Last Post: 07-29-2006, 05:35 AM
  5. Replies: 37
    Last Post: 06-20-2006, 04:24 PM

Tags for this Thread