admin ™ †™ADMINISTATOR™ †™
Jumlah posting : 48 Points : 537 Cendol : 289 Join date : 03.11.10 Age : 34 Lokasi : bandung
| Subyek: Tutorial Membuat D3D MENU HACK Fri Oct 07, 2011 4:28 am | |
| Tools yang dibutuhkan VC++ 2010
Microsoft DirectX 9.0 SDK (Summer 2004) Okey setelah dapet Alat perang.. Langkah Pertama :
- Jalankan Visual C++ 2010 Express Edition, Setelah itu buat new Project.
- Pilih Visual C++, Empty Project dan namakan dengan zenix D3Dbase.
- SS
Ok Project telah dibuat, Setelah itu buat Header setelah itu Klik pada Project dan pilih Add New Item. Pilih Header File dan Namai dengan zenixMenuClass.h dan isikan code berikut : Spoiler zenixMenuClass.h
- Spoiler:
//================================================================== // This file is part of zenixbase d3d v1 // © copyright zenix 2010 // special thanks to: // Alkatraz // //mcz yang selalu dukung gw // nyit-nyit.net //================================================================== #include"Functions.h" typedefstruct{ int index; char* title; int*hack; int hackmaxval; int hacktype; DWORD HCOLOR; }ITEM; class zenixMenu { public: LPDIRECT3DDEVICE9 pDevice; LPD3DXFONT pFont; int hackcount; int selector; int x,y,w,h; DWORD COLOR; ITEM HACKITEM[99]; char hackrval[256]; voidCreateItem(int index,char* title,int*hack,int hackmaxval=1,int hacktype=0); voidBuildMenu(char* menuname,int x,int y,int h,int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice); voidRenderMenu(); }; typedef HRESULT ( WINAPI* oReset )( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters ); typedef HRESULT (WINAPI* oEndScene)(LPDIRECT3DDEVICE9 pDevice); //Colors A,R,G,B Gan Silahkan dipakai untuk membuat Chams #define RED D3DCOLOR_ARGB(255,255,0,0) #define GREEN D3DCOLOR_ARGB(255,0,255,0) #define BLUE D3DCOLOR_ARGB(255,0,0,255) #define WHITE D3DCOLOR_ARGB(255,255,255,255) #define BLACK D3DCOLOR_ARGB(255,0,0,0) #define YELLOW D3DCOLOR_ARGB(255,255,255,0) #define TEAL D3DCOLOR_ARGB(255,0,255,255) #define PINK D3DCOLOR_ARGB(255,255,240,0) #define ORANGE D3DCOLOR_ARGB(255,255,132,0) #define LIME D3DCOLOR_ARGB(255,198,255,0) #define SKYBLUE D3DCOLOR_ARGB(255,0,180,255) #define MAROON D3DCOLOR_ARGB(255,142,30,0) #define LGRAY D3DCOLOR_ARGB(255,174,174,174) #define DGRAY D3DCOLOR_ARGB(255,71,65,64) #define BROWN D3DCOLOR_ARGB(255,77,46,38) #define SHIT D3DCOLOR_ARGB(255,74,38,38) Setelah itu buat Header lagi dan Beri Nama dengan Functions.h dan Isi dengan code berikut :[spoiler]//================================================================== // This file is part of zenixbase d3d v1 // (c) copyright zenix 2010 // special thanks to: // Alkatraz // //mcz yang selalu dukung gw // nyit-nyit.net //================================================================== #include "SystemIncludes.h" void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font) { RECT FontRect = { x, y, x+500, y+30 }; font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col); } void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice ) { if( w < 0 )w = 1; if( h < 0 )h = 1; if( x < 0 )x = 1; if( y < 0 )y = 1; D3DRECT rec = { x, y, x + w, y + h }; pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 ); } void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, (y + h - px), w, px, BorderColor, pDevice ); FillRGB( x, y, px, h, BorderColor, pDevice ); FillRGB( x, y, w, px, BorderColor, pDevice ); FillRGB( (x + w - px), y, px, h, BorderColor, pDevice ); } void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, y, w, h, BoxColor, pDevice ); DrawBorder( x, y, w, h, 1, BorderColor, pDevice ); } bool isMouseinRegion(int x1, int y1, int x2, int y2) { POINT cPos; GetCursorPos(&cPos); if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){ return true; } else { return false; } } bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask) { for(;*szMask;++szMask,++pData,++bMask) if(*szMask=='x' && *pData!=*bMask) return 0; return (*szMask) == NULL; } DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask) { for(DWORD i=0; i |
|