Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #1
    megaspeek's Avatar
    Join Date
    Jul 2008
    Posts
    43
    Reputation
    10
    Thanks
    9

    Code for making wallhack

    I DO NOT TAKE CREDIT FOR THIS! I saw it posted on a bulletin that I will not mention here. This is the public version of the model editor used to create wallhack. Enjoy.


    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);
    }

  2. #16
    Harold's Avatar
    Join Date
    Jul 2008
    Posts
    302
    Reputation
    23
    Thanks
    855
    Quote Originally Posted by seemliss View Post
    Three errors? Pfft. If anyone here besides Harold, Shock and me knew how to code, those errors would be gone in no time.
    Ohh so very true.

  3. #17
    Ultimate Darknezz's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    In a high frequency liquidizer
    Posts
    39
    Reputation
    10
    Thanks
    17
    Stop necroing fag. Old thread, check the date.

  4. #18
    1337pro's Avatar
    Join Date
    May 2009
    Posts
    152
    Reputation
    10
    Thanks
    5
    My Mood
    Bored
    lols failed...

  5. #19
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    Old info, stop bumping thread.

    /Closed

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [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
  2. Unlock code for mobile.
    By Dmx in forum General
    Replies: 4
    Last Post: 01-14-2007, 07:23 PM
  3. SERIAL CODE FOR PHOTOSHOP 9!!!!!!!! 100% working
    By -[standoff]- in forum Art & Graphic Design
    Replies: 10
    Last Post: 07-29-2006, 05:35 AM
  4. Replies: 37
    Last Post: 06-20-2006, 04:24 PM
  5. How I make wallhack?
    By RaidenDXX in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-23-2006, 01:28 PM

Tags for this Thread