Results 1 to 5 of 5
  1. #1
    Str8Thimo's Avatar
    Join Date
    Jan 2008
    Posts
    18
    Reputation
    11
    Thanks
    34

    How to make Chams for Warrock

    Tutorial On Chams
    By Thimo



    Requirments:
    -D3D Starter Kit V3.0B
    -Generatetexture Function
    -Microsoft Visual C++/ Studio
    -Brain
    -Knowledge of C++
    -MSDN
    -D3D SDK

    Seting up:

    Download The starter kit to you desktop and open it.

    Coding:
    First we are going to make a Wallhack:

    In the starter kit go to d3d8dev.ccp
    Under the #defines
    Code:
    bool wallhack; //made by thimo
    UINT m_Stride; //made by thimo
    Place this in DrawIndexedPrimitive
    Code:
    if (wallhack) //If wallhack bool is called.
        {
        if(m_stride == 44) //On the players model.
        {
                m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE); //Then bring to the front
            }
            else
            {
                m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, TRUE); //Evertyhing else is normal
            } 
        }
    
    if ((GetAsyncKeyState(VK_NUMPAD1)&1) == 1) // If get numpad 1 then
         wallhack = !wallhack;         //toggle wallhack
    Chams:
    Start with the same code as above

    On top:
    Code:
    bool chams;
    UINT m_Stride;
    LPDIRECT3DTEXTURE8 texRed, texGreen; //textures
    Now in DrawIndexedPrimitive:
    Code:
    if (chams)            //if cham bool is called
        {
            if (m_Stride == 44)            //on the player models
            {
                m_pD3Ddev->SetRenderState(D3DRS_ZENABLE,false);         //bring to front
                m_pD3Ddev->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);        //fill it with a solid color
                m_pD3Ddev->SetTexture( 0, texRed);      //fill it wih red
                m_pD3Ddev->DrawIndexedPrimitive(PrimitiveType, minIndex, NumVertices, startIndex, primCount);
                m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, true);
                m_pD3Ddev->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                m_pD3Dde->SetTexture( 0, texGreen);             //fill it with green
            }
    
    if ((GetAsyncKeyState(VK_NUMPAD2)&1) == 1)         //id numpad 2 is called then
         Chams = !Chams;   //chams on and off
    Now we need to make Colors!
    The GenerateTextyure Function by Az0rbix
    Now search for
    Code:
    HRESULT CD3DManager::Release()
    Under
    Code:
    HRESULT CD3DManager::Release()
    {
        return S_OK;
    }
    Add the GenerateTexture Function
    Code:
    HRESULT GenerateTexture(IDirect3DDevice8 *pD3Ddev, IDirect3DTexture8 **ppD3Dtex, DWORD colour32)
    {
        if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex)) )
            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;
    }
    Now in EndScene we are going to make those funtions!

    Search for EndScene
    in endscene add:
    Code:
    GenerateTexture(m_pD3Ddev, &texRed,D3DCOLOR_ARGB(255,255,0,0));
    GenerateTexture(m_pD3Ddev, &texGreen,D3DCOLOR_ARGB(255,0,255,0));
    and in SetStreamSource we put:
    Code:
        if( StreamNumber == 0 ){m_Stride = Stride;}
    Made by thimo
    Report any Bugs

    Creditz:
    Me = Tutorial
    Cobra = Basics
    Str8Soulja = Niggah******
    Az0rbix = D3D starter kit + GenerateTexture Function
    Last edited by Str8Thimo; 01-02-2008 at 12:57 PM.

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

    258456 (09-27-2010),b0bi (07-16-2008),baraozin (07-23-2011),basicm3n (10-29-2010),bolt9999 (06-20-2008),brendyboy (12-14-2008),crazyhaxor (04-11-2010),DaneCoder (06-05-2014),Fantomfury26 (01-02-2009),glawieking (08-07-2009),hiitsmitch (04-25-2009),kaaskiller (01-06-2008),Mikoll (01-09-2008),nielshetschaap (07-18-2011),Otoom (01-02-2008),primeru333 (06-28-2009),qwertyuiopzm (01-25-2008),sh00ter (07-03-2008),simosuke (10-26-2008),smoke341 (09-19-2009),sobhi200 (03-05-2009),Spuffeld (01-24-2008),Spyro pt (08-04-2008),Teh Sasuke (01-03-2008),tinmar0 (02-22-2009),Tryptamine. (07-16-2008),xflick13 (04-09-2011),zver11 (08-23-2010),_corn_ (03-22-2011),~GodLike~ (06-17-2010)

  3. #2
    Janitor's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    MPGH Reports
    Posts
    16,255
    Reputation
    3259
    Thanks
    7,214
    29 Thanks And NO 1 Reply ?

  4. #3
    Blitz's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    127.0.0.1
    Posts
    4,132
    Reputation
    619
    Thanks
    5,032
    Quote Originally Posted by MatrixXx View Post
    29 Thanks And NO 1 Reply ?
    This is the first time in years this section has been open for posting.


  5. #4
    Janitor's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    MPGH Reports
    Posts
    16,255
    Reputation
    3259
    Thanks
    7,214
    Oh. But There Is A Few Threads !!
    @Blitz

  6. #5
    -x22-c0d3r's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Lots of simple mistakes,and non finished tutorial.

Similar Threads

  1. [Tutorial] How to make a Korean WarRock account.
    By wr194t in forum WarRock Korea Hacks
    Replies: 89
    Last Post: 08-30-2009, 11:26 AM
  2. How to make checkboxes for vb6 for Warrock
    By Desymondo in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-21-2007, 05:49 PM
  3. how to make checkboxes for vb6 for warrock
    By Desymondo in forum WarRock - International Hacks
    Replies: 3
    Last Post: 10-21-2007, 10:52 AM
  4. (TUT)how to make your own warrock menu
    By aprill27 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 09-21-2007, 03:46 PM
  5. How To Make An Korean WarRock Account
    By Walkman in forum Hack Requests
    Replies: 0
    Last Post: 05-03-2007, 12:46 PM