CookieMonster™ (04-16-2012),[MPGH]Flengo (04-16-2012),Flengo Jr. (04-16-2012),matypatty (04-16-2012),SpadeCA (04-17-2012),teehee15 (04-16-2012)
Menu Tutorial / The basics
READ^^
Introduction:
I found that many people in this section are leeching menus like crazy. I was talking to this kid once saying he made this menu and all, and surprisingly enough the kid asked help for how to change the color for his hack. I was like -.-. Anyways there are some people out there that need this kind of info so don't flame me thinking you're all bad ass. This is simply for those who are uneducated in the art of D3D.
CODE LATER
CookieMonster™ (04-16-2012),[MPGH]Flengo (04-16-2012),Flengo Jr. (04-16-2012),matypatty (04-16-2012),SpadeCA (04-17-2012),teehee15 (04-16-2012)
Thanks @OBrozz This is a Great Tut for me since i am starting off.
https://www.mpgh.net/forum/207-combat...base-yolo.html
Biggest Leecher in History
Leeching Libary - NEOHACKS
Is this so neo[/SPOILER]
OBrozz (04-16-2012)
Write another tutorial explaining the logic behind the navigation system.
Oh no! Vortex is gay!
Flengo Jr. (04-16-2012),OBrozz (04-16-2012),Xipher (04-19-2012)
Nice job bro.
FinalHazard_ (04-17-2012),OBrozz (04-16-2012)
Flengo Jr. (04-16-2012)
I thought X and Y was self explanatory.
Im sorry to say but if you needed a picture to realize that X and Y are coordinates, you need an algebra lesson, badly.
+1 for the picture though.
Code:
Put this:
Then This:Code:void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice ) { 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,int px, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, y, w, h, BoxColor, pDevice ); DrawBorder( x, y, w, h, px, BorderColor, pDevice ); } VOID DrawText(LPDIRECT3DDEVICE9 pDevice, INT x, INT y, DWORD color, CHAR *text) { RECT rect; SetRect(&rect, x, y, x, y); Directx_Font->DrawText(NULL, text, -1, &rect, DT_LEFT | DT_NOCLIP, color); }
Code:int MenuX = 200; int MenuY = 200; int MenuH = 200; int MenuW = 200; #define White D3DCOLOR_ARGB (255,255,255,255) #define Black D3DCOLOR_ARGB (255,0,0,0) #define Red D3DCOLOR_ARGB (255,255,0,0) if(menu){//Might have to change this. DrawBox(MenuX, MenuY, MenuH, MenuW, White, Black, pDevice)//White is the box fill, Black is the Border Color DrawText(pDevice, MenuX + 10, MenuY + 10, Red, "OBrozz Hack") }
Last edited by SpadeCA; 04-17-2012 at 04:24 AM.
Flengo Jr. (04-17-2012)
Because in most school systems they bring up coordinates and all that stuff in algebra class as part of the curriculum!
@SpadeCA
Thanks but to some people even that code means nothing to them. It's like reading a book with words you don't know. I might make anotehr picture describing everything! Most people are to lazy to pick up a C++ text book.
@OBrozz
Great tutorial.
Looking forward to reading one of these
oh and yeah, learning algebra will help alot since like OBrozz said they make it part of their curriculum.
OBrozz (04-17-2012)
For whatever reason functions like these that people have been C+Ping from wherever annoy the hell out of me.
They put the device as a parameter when it isn't even used and sometimes doesn't even make sense to put it there like :
What?Code:DoTelekill(LPDIRECT3DDEVICE9 pDevice){ ... }
lol Algebra has nothing to do with X,Y positions, the only common thing is when calculating algebra they can use x and y as a definition, but you can also use any other letter of the alphabet as a definition, X, Y is a just a position on screen aka a coordinates
i want to learn how to code, any suggestion how i begin? thx