Thread: DrawBox Help.

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    350
    My Mood
    Relaxed

    DrawBox Help.

    Where it is the error?
    Code:
    #include "Base.h"
    #include "Menu.h"
    
    
    //Menu Position
    int menux = 20;
    int menuy = 200;
    
    //Hack Variables
    int test1 = 0;
    int test2 = 0;
    int test3 = 0;
    int test4 = 0;
    int test5 = 0;
    int test6 = 0;
    
    //Menu Groups
    int misc = 0;
    int removals = 0;
    int visual = 0;
    
    
    
    
    void cMenu::RenderMenu(void)
    {
    	AddItem("   [ Visuals ]", Opt_Folder, &visual, 2, MENUFOLDER);
    	 if(visual){
    	  AddItem("Visual One"   , Opt_on_off , &test1  , 2, MENUITEM);//
    	  AddItem("Visual Two"     , Opt_on_off  , &test2  , 2 , MENUITEM);//
    	 }
    
        AddItem("  [ Removals ]", Opt_Folder, &removals, 2, MENUFOLDER);
    	 if (removals) {
    		AddItem("Removal One"   , Opt_on_off , &test3  , 2, MENUITEM);//
    		AddItem("Removal Two"   , Opt_on_off , &test4  , 2, MENUITEM);//
    	 }
    	AddItem("   [ Misc ]", Opt_Folder, &misc, 2, MENUFOLDER);
    	if(misc){
           AddItem("Misc One"   , Opt_on_off , &test5  , 2, MENUITEM);//
           AddItem("Misc Two"   , Opt_on_off , &test6  , 2, MENUITEM);//
        }
    }
    
    
    cBase Base;
    
    void WINAPIV Push( const char* cmd )
    {
    	_asm
    	{
    		PUSH cmd
    		MOV EAX, 0x00485DD0//Engine LTC
    		CALL EAX
    		ADD ESP, 0x4
    	}
    }
    	
    void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
    {
    
    if(Directx.pFont == NULL)
    	D3DXCreateFontA(pDevice, 15, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial Black", &Directx.pFont );
    
    	if (Mmax==0) Menu.RenderMenu();
    		if(Mvisible){
    			//DrawBox Here  '-'
    DrawBox(50,10,160,760,Black,Green,pDevice);
    			}
    
    	Menu.MenuShow(menux,menuy,Directx.pFont);
        Menu.MenuNav();
    }
    
    DWORD cBase::GetPointer(int index)
    {
    	DWORD* devicePtr = ***(DWORD****)0x909EF8;
    
    	if( devicePtr == NULL ) 
    		return 0;
    
    	return devicePtr[index];
    }
    
    bool cBase::IsGameReadyForHook(void)
    {
        if( GetModuleHandle( "d3d9.dll"     ) != NULL 
         && GetModuleHandle( "ClientFX.fxd" ) != NULL 
         && GetModuleHandle( "CShell.dll"   ) != NULL )
            return true;
    
        return false;
    }
    
    DWORD WINAPI dwMainThread(LPVOID)
    {
    	while ( !Base.IsGameReadyForHook() )
    		Sleep(iWaitTime);
    
    	Directx.Hook();
    
    	return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		#ifdef LOG
    			DeleteFile(LogPath); 
    		#endif
    
    		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    The Error
    Code:
    1>------ Build started: Project: CaBase, Configuration: Debug Win32 ------
    1>Compiling...
    1>Base.cpp
    1>c:\documents and settings\administrador\meus documentos\leo\sources\hans & gellins base combined\cabase\base.cpp(73) : error C3861: 'DrawBox': identifier not found
    1>Build log was saved at "file://c:\Documents and Settings\Administrador\Meus documentos\Leo\Sources\Hans & Gellins Base Combined\CaBase\Debug\BuildLog.htm"
    1>CaBase - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    I would have that to change the DrawBox for Something?

  2. #2
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Code:
    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 );
    }

  3. #3
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    350
    My Mood
    Relaxed
    I add this in Menu.cpp I am?

    Errors
    Code:
    1>------ Build started: Project: CaBase, Configuration: Debug Win32 ------
    1>Compiling...
    1>Menu.cpp
    1>c:\documents and settings\administrador\meus documentos\leo\sources\hans & gellins base combined\cabase\menu.cpp(121) : error C3861: 'FillRGB': identifier not found
    1>c:\documents and settings\administrador\meus documentos\leo\sources\hans & gellins base combined\cabase\menu.cpp(122) : error C3861: 'DrawBorder': identifier not found
    1>Build log was saved at "file://c:\Documents and Settings\Administrador\Meus documentos\Leo\Sources\Hans & Gellins Base Combined\CaBase\Debug\BuildLog.htm"
    1>CaBase - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  4. #4
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    ohhhh the failure in this thread...

  5. The Following User Says Thank You to NOOB For This Useful Post:

    NOOBJr (02-15-2011)

  6. #5
    whit++'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    140
    Reputation
    22
    Thanks
    21
    My Mood
    Amused
    Lol GTFO Faggot
    Learn Somethin

  7. #6
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by whit++ View Post
    Lol GTFO Faggot
    Learn Somethin
    Whit be polite, at least he is trying.
    EDIT:Never Mind, i didn't look at the code.




    Answer:

    Add this to menu.cpp
    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 );
    }
    Code:
    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 );
    }
    Code:
    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 );
    }
    Here is some other functions that might come in handy:
    D3D Functions- Credits CodeDemon

  8. The Following User Says Thank You to NOOBJr For This Useful Post:

    Strikex (02-16-2011)

  9. #7
    whit++'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    140
    Reputation
    22
    Thanks
    21
    My Mood
    Amused
    Quote Originally Posted by Zane Slayman View Post
    Whit be polite, at least he is trying.
    He trying to C&P so you sir STFU

  10. #8
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by Zane Slayman View Post
    Whit be polite, at least he is trying.
    EDIT:Never Mind, i didn't look at the code.




    Answer:

    Add this to menu.cpp
    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 );
    }
    Code:
    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 );
    }
    Code:
    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 );
    }
    Here is some other functions that might come in handy:
    D3D Functions- Credits CodeDemon
    STOP FEEDING THE FOGGATS!!11!!

  11. The Following User Says Thank You to NOOB For This Useful Post:

    whit++ (02-15-2011)

  12. #9
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,318
    My Mood
    Breezy
    Oh gawd...
    Last edited by master131; 02-16-2011 at 12:27 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  13. #10
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    being nice to copy-pasters is not very smart, it only encourages the activity...

  14. The Following User Says Thank You to freedompeace For This Useful Post:

    NOOBJr (02-16-2011)

  15. #11
    whit++'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    140
    Reputation
    22
    Thanks
    21
    My Mood
    Amused
    Quote Originally Posted by freedompeace View Post
    being nice to copy-pasters is not very smart, it only encourages the activity...
    damnnnn right
    you gotta pimp my ride

  16. #12
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    STOP FEEDING THE FOGGATS!!11!!
    NO, I'm helping someone in need. You guyz are acting like im giving away your life. Hacking maybe your life but not to others they dont have time to spend 325325235345 hours on the computer. Its jsut a friqqin draw box

  17. The Following User Says Thank You to NOOBJr For This Useful Post:

    -xGhost- (02-16-2011)

  18. #13
    -xGhost-'s Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    C:\Sytem32
    Posts
    347
    Reputation
    9
    Thanks
    57
    My Mood
    Relaxed
    Quote Originally Posted by Zane Slayman View Post
    NO, I'm helping someone in need. You guyz are acting like im giving away your life. Hacking maybe your life but not to others they dont have time to spend 325325235345 hours on the computer. Its jsut a friqqin draw box
    Finally someone to stand up to the people who don't care about others, when truly they were the same way.



  19. The Following User Says Thank You to -xGhost- For This Useful Post:

    NOOBJr (02-16-2011)

  20. #14
    whit++'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    140
    Reputation
    22
    Thanks
    21
    My Mood
    Amused
    Quote Originally Posted by Zane Slayman View Post
    NO, I'm helping someone in need. You guyz are acting like im giving away your life. Hacking maybe your life but not to others they dont have time to spend 325325235345 hours on the computer. Its jsut a friqqin draw box
    Feed a leecher once you feed him forever

  21. #15
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,193
    Reputation
    205
    Thanks
    1,438
    My Mood
    Mellow
    Quote Originally Posted by -xGhost- View Post
    Finally someone to stand up to the people who don't care about others, when truly they were the same way.
    Actually, the people who don't spend their time learning but want to release hacks are the ones who want to be credited for doing shit. If they wanted it for the hack itself they would just go download it.

    I really appreciate you helping someone who wants to take everyone's hard earned work and taking credit for it, I really do.

Page 1 of 2 12 LastLast