Page 1 of 3 123 LastLast
Results 1 to 15 of 38
  1. #1
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144

    Question for codedemons base?

    Hey codedemon where in your D3d base do you put the hacks in.

    Oh and where can i put the ltcclient i cant find it kuz when i inject this it dc's me.?

    [php]
    //================================================== ================
    //CodeDemon's D3D Menu Base v1
    //
    //Credits: MarkoJ, Blubsi, Crash, IcySeal, mmbob, void, Blood, ac1d_bUrn,
    //Gellin, Alkatraz, Hans211, Whit.
    //
    //This base is mostly ment for educational purposes since it was
    //mainly coded for me to get better however, it can be used for D3D9 game hacks.
    //Expect updates for this base in the future!
    //================================================== ================
    #include "DemonMenuClass.h"

    oReset pReset;
    oEndScene pEndScene;

    DemonMenu dMenu;

    LPDIRECT3DDEVICE9 g_pDevice = 0;

    int xFontOffSet = 15;

    int hackopt1;
    int MenuHeight = 10;

    int show=1;

    int b = 0;
    //================================================== ================
    //Hack Vars
    int hack1 = 0;
    int hack2 = 0;
    int hack3 = 0;
    int hack4 = 0;
    int hack5 = 0;
    //================================================== ================

    void DemonMenu::CreateItem(int index, char * title, int *hack, int hackmaxval,int hacktype)
    {
    hackcount++;
    HACKITEM[hackcount].index = index;
    HACKITEM[hackcount].hack = hack;
    HACKITEM[hackcount].hackmaxval = hackmaxval;
    HACKITEM[hackcount].hacktype = hacktype;
    PrintText(title, xFontOffSet, index*15,HACKITEM[hackcount].HCOLOR,pFont); //If you want to move the menu opts down do something like this (index*15)+20 and to move it left or right just add/subtract from font offset.
    }

    void DemonMenu::BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
    {
    if(GetAsyncKeyState(VK_INSERT)&1)show=(!show);
    if(!show) {
    DrawBox(0,0, w, 20, BACKCOLOR, BORDERCOLOR, pDevice);
    PrintText(menuname, 5, 2, TITLECOL, pFont);
    return;
    }

    DrawBox(x,y, w, h, BACKCOLOR, BORDERCOLOR, pDevice);
    PrintText(menuname, x+10, y+2, TITLECOL, pFont);
    CreateItem(1,"Hack 1", &hack1);
    CreateItem(2,"Hack 2", &hack2);
    CreateItem(3,"Hack 3", &hack3);
    CreateItem(4,"Hack 4", &hack4);
    CreateItem(5,"Hack 5", &hack5);
    RenderMenu();
    }


    void DemonMenu::RenderMenu()
    {
    if(GetAsyncKeyState(VK_DOWN)&1)
    selector++;

    if(GetAsyncKeyState(VK_UP)&1)
    if(selector > 1)
    selector--;

    if (GetAsyncKeyState(VK_RIGHT)<0){
    for(int i=0;i < (hackcount+1);i++){
    if(selector == HACKITEM[i].index){
    if(*HACKITEM[i].hack < HACKITEM[i].hackmaxval)
    *HACKITEM[i].hack += 1;
    //else
    //*HACKITEM[i].hack = HACKITEM[i].hackmaxval;
    // Sleep(200);
    }
    }
    }

    if (GetAsyncKeyState(VK_LEFT)<0){
    for(int i=0;i < (hackcount+1);i++){
    if(selector == HACKITEM[i].index){
    *HACKITEM[i].hack = 0;
    Sleep(200);
    }
    }
    }

    for(int i=0;i < (hackcount+1);i++){
    if(selector == HACKITEM[i].index)
    HACKITEM[i].HCOLOR = GREEN;
    else
    HACKITEM[i].HCOLOR = RED;
    }

    for(int i=1; i<(hackcount+1); i++){
    if(HACKITEM[i].hacktype == 0){
    if(*HACKITEM[i].hack == 1) //to move the opts down do something like this (HACKITEM[i].index*15)+20
    PrintText("On", xFontOffSet+100, HACKITEM[i].index*15,YELLOW,pFont);
    else
    PrintText("Off", xFontOffSet+100, HACKITEM[i].index*15,RED,pFont);

    }
    }

    /*for(int i=1; i<(hackcount+1); i++){
    if(HACKITEM[i].hackmaxval >1 && HACKITEM[i].hacktype == 1){
    sprintf_s(hackrval, "%i", *HACKITEM[i].hack);
    PrintText(hackrval, xFontOffSet+100, HACKITEM[i].index*15,RED,pFont);
    }
    }*/ // Just something I was messing around with.

    //==============================================

    //==============================================

    if(selector < 1)
    selector = 1;

    if(selector > hackcount)
    selector = 1;

    hackcount = 0;
    }

    void TestThread()
    {
    if( hack2 == 1)
    PrintText("Made by eXaLtIc™", 30, 200, GREEN, dMenu.pFont);
    else
    PrintText("Made by eXaLtIc™", 30, 200, RED, dMenu.pFont);
    }

    void ReFont(LPDIRECT3DDEVICE9 pDevice) // Credits for the ReFont function go to mmbob
    {
    if (g_pDevice != pDevice)
    {
    g_pDevice = pDevice;
    try
    {
    if (dMenu.pFont != 0)
    dMenu.pFont->Release();
    } catch (...) {}
    dMenu.pFont = 0;
    D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &dMenu.pFont );
    }
    }

    HRESULT WINAPI Reset(IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
    {
    dMenu.pFont->OnLostDevice();

    HRESULT hRet = pReset(pDevice, pPresentationParameters);

    dMenu.pFont->OnResetDevice();

    return hRet;
    }

    HRESULT WINAPI EndScene(LPDIRECT3DDEVICE9 pDevice)
    {
    ReFont(pDevice);
    dMenu.BuildMenu("eXaLtIc™'s Menu Hack v1.0",0,0,180,200,RED,BLACK,GREEN,pDevice);
    TestThread();
    return pEndScene(pDevice);
    }



    int D3Dinit(void) //Just a hook I used for testing, got it from Marko I believe.
    {
    DWORD hD3D, adr, *vtbl;

    // wait for the d3dx dll
    hD3D=0;
    do {
    hD3D = (DWORD)GetModuleHandle("d3d9.dll");
    Sleep(10);
    } while(!hD3D);
    adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x 00\x00\x89\x86", "xx????xx????xx");
    if (adr) {
    memcpy(&vtbl,(void *)(adr+2),4);
    pReset = (oReset) DetourFunction((PBYTE)vtbl[16] , (PBYTE)Reset ,5);
    pEndScene = (oEndScene) DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
    }
    return 0;
    }

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA(0, "eXaLtIc™", "Injected", 0);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3Dinit, NULL, NULL, NULL);
    }
    if( dwReason == DLL_PROCESS_DETACH)
    {
    dMenu.pFont->Release();
    }
    return TRUE;
    }
    [/PHP]

  2. #2
    DBag4Life69's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    290
    Reputation
    13
    Thanks
    59
    My Mood
    Twisted
    Quote Originally Posted by eXaLtIc™ View Post
    Hey codedemon where in your D3d base do you put the hacks in.

    Oh and where can i put the ltcclient i cant find it kuz when i inject this it dc's me.?

    [php]
    //================================================== ================
    //CodeDemon's D3D Menu Base v1
    //
    //Credits: MarkoJ, Blubsi, Crash, IcySeal, mmbob, void, Blood, ac1d_bUrn,
    //Gellin, Alkatraz, Hans211, Whit.
    //
    //This base is mostly ment for educational purposes since it was
    //mainly coded for me to get better however, it can be used for D3D9 game hacks.
    //Expect updates for this base in the future!
    //================================================== ================
    #include "DemonMenuClass.h"

    oReset pReset;
    oEndScene pEndScene;

    DemonMenu dMenu;

    LPDIRECT3DDEVICE9 g_pDevice = 0;

    int xFontOffSet = 15;

    int hackopt1;
    int MenuHeight = 10;

    int show=1;

    int b = 0;
    //================================================== ================
    //Hack Vars
    int hack1 = 0;
    int hack2 = 0;
    int hack3 = 0;
    int hack4 = 0;
    int hack5 = 0;
    //================================================== ================

    void DemonMenu::CreateItem(int index, char * title, int *hack, int hackmaxval,int hacktype)
    {
    hackcount++;
    HACKITEM[hackcount].index = index;
    HACKITEM[hackcount].hack = hack;
    HACKITEM[hackcount].hackmaxval = hackmaxval;
    HACKITEM[hackcount].hacktype = hacktype;
    PrintText(title, xFontOffSet, index*15,HACKITEM[hackcount].HCOLOR,pFont); //If you want to move the menu opts down do something like this (index*15)+20 and to move it left or right just add/subtract from font offset.
    }

    void DemonMenu::BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
    {
    if(GetAsyncKeyState(VK_INSERT)&1)show=(!show);
    if(!show) {
    DrawBox(0,0, w, 20, BACKCOLOR, BORDERCOLOR, pDevice);
    PrintText(menuname, 5, 2, TITLECOL, pFont);
    return;
    }

    DrawBox(x,y, w, h, BACKCOLOR, BORDERCOLOR, pDevice);
    PrintText(menuname, x+10, y+2, TITLECOL, pFont);
    CreateItem(1,"Hack 1", &hack1);
    CreateItem(2,"Hack 2", &hack2);
    CreateItem(3,"Hack 3", &hack3);
    CreateItem(4,"Hack 4", &hack4);
    CreateItem(5,"Hack 5", &hack5);
    RenderMenu();
    }


    void DemonMenu::RenderMenu()
    {
    if(GetAsyncKeyState(VK_DOWN)&1)
    selector++;

    if(GetAsyncKeyState(VK_UP)&1)
    if(selector > 1)
    selector--;

    if (GetAsyncKeyState(VK_RIGHT)<0){
    for(int i=0;i < (hackcount+1);i++){
    if(selector == HACKITEM[i].index){
    if(*HACKITEM[i].hack < HACKITEM[i].hackmaxval)
    *HACKITEM[i].hack += 1;
    //else
    //*HACKITEM[i].hack = HACKITEM[i].hackmaxval;
    // Sleep(200);
    }
    }
    }

    if (GetAsyncKeyState(VK_LEFT)<0){
    for(int i=0;i < (hackcount+1);i++){
    if(selector == HACKITEM[i].index){
    *HACKITEM[i].hack = 0;
    Sleep(200);
    }
    }
    }

    for(int i=0;i < (hackcount+1);i++){
    if(selector == HACKITEM[i].index)
    HACKITEM[i].HCOLOR = GREEN;
    else
    HACKITEM[i].HCOLOR = RED;
    }

    for(int i=1; i<(hackcount+1); i++){
    if(HACKITEM[i].hacktype == 0){
    if(*HACKITEM[i].hack == 1) //to move the opts down do something like this (HACKITEM[i].index*15)+20
    PrintText("On", xFontOffSet+100, HACKITEM[i].index*15,YELLOW,pFont);
    else
    PrintText("Off", xFontOffSet+100, HACKITEM[i].index*15,RED,pFont);

    }
    }

    /*for(int i=1; i<(hackcount+1); i++){
    if(HACKITEM[i].hackmaxval >1 && HACKITEM[i].hacktype == 1){
    sprintf_s(hackrval, "%i", *HACKITEM[i].hack);
    PrintText(hackrval, xFontOffSet+100, HACKITEM[i].index*15,RED,pFont);
    }
    }*/ // Just something I was messing around with.

    //==============================================

    //==============================================

    if(selector < 1)
    selector = 1;

    if(selector > hackcount)
    selector = 1;

    hackcount = 0;
    }

    void TestThread()
    {
    if( hack2 == 1)
    PrintText("Made by eXaLtIc™", 30, 200, GREEN, dMenu.pFont);
    else
    PrintText("Made by eXaLtIc™", 30, 200, RED, dMenu.pFont);
    }

    void ReFont(LPDIRECT3DDEVICE9 pDevice) // Credits for the ReFont function go to mmbob
    {
    if (g_pDevice != pDevice)
    {
    g_pDevice = pDevice;
    try
    {
    if (dMenu.pFont != 0)
    dMenu.pFont->Release();
    } catch (...) {}
    dMenu.pFont = 0;
    D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &dMenu.pFont );
    }
    }

    HRESULT WINAPI Reset(IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
    {
    dMenu.pFont->OnLostDevice();

    HRESULT hRet = pReset(pDevice, pPresentationParameters);

    dMenu.pFont->OnResetDevice();

    return hRet;
    }

    HRESULT WINAPI EndScene(LPDIRECT3DDEVICE9 pDevice)
    {
    ReFont(pDevice);
    dMenu.BuildMenu("eXaLtIc™'s Menu Hack v1.0",0,0,180,200,RED,BLACK,GREEN,pDevice);
    TestThread();
    return pEndScene(pDevice);
    }



    int D3Dinit(void) //Just a hook I used for testing, got it from Marko I believe.
    {
    DWORD hD3D, adr, *vtbl;

    // wait for the d3dx dll
    hD3D=0;
    do {
    hD3D = (DWORD)GetModuleHandle("d3d9.dll");
    Sleep(10);
    } while(!hD3D);
    adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x 00\x00\x89\x86", "xx????xx????xx");
    if (adr) {
    memcpy(&vtbl,(void *)(adr+2),4);
    pReset = (oReset) DetourFunction((PBYTE)vtbl[16] , (PBYTE)Reset ,5);
    pEndScene = (oEndScene) DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
    }
    return 0;
    }

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA(0, "eXaLtIc™", "Injected", 0);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3Dinit, NULL, NULL, NULL);
    }
    if( dwReason == DLL_PROCESS_DETACH)
    {
    dMenu.pFont->Release();
    }
    return TRUE;
    }
    [/PHP]
    Here goes some more with the C+P.
    Why in the hell do you have to C+P people's shit on here?
    BTW, why in the fuck aren't you even trying to give credits to the one who made the base??

    [php]if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA(0, "eXaLtIc™", "Injected", 0);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3Dinit, NULL, NULL, NULL);
    }[/php]

  3. #3
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    Dont help him... he should study the base like i did. u can't get improved if like this... :/

  4. #4
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    Quote Originally Posted by hahaz View Post
    Dont help him... he should study the base like i did. u can't get improved if like this... :/
    You studied my base /?

    Its pretty simple, just create a new function in which you initate your hacks.

    Code:
    void HackThread()
    {
    	while(1){
    	
    	if(blahblah ==1)
    		PushToConsole("sdds");
    	else
    		PushToConsole("dssda");
    	}
    }
    Then create a thread for it /

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

    eXaLtIc™ (09-12-2010)

  6. #5
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144
    O ok thank you i knew there was somethin supposed to be there. lol

  7. #6
    DBag4Life69's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    290
    Reputation
    13
    Thanks
    59
    My Mood
    Twisted
    Quote Originally Posted by hahaz View Post
    Dont help him... he should study the base like i did. u can't get improved if like this... :/
    Believe me, bro.
    I don't plan on helping him.

    But the SAD thing is, I know what his problem is, and I barely even know C++.
    But, I have been studying every base that's been released and been making my own private hacks and shit, trying to learn for myself.



    Quote Originally Posted by CodeDemon View Post
    You studied my base /?

    Its pretty simple, just create a new function in which you initate your hacks.

    Code:
    void HackThread()
    {
    	while(1){
    	
    	if(blahblah ==1)
    		PushToConsole("sdds");
    	else
    		PushToConsole("dssda");
    	}
    }
    Then create a thread for it /
    Don't fucking help him, I HIGHLY even doubt you're gonna get credits anyways.
    Last edited by DBag4Life69; 09-12-2010 at 05:52 PM.

  8. #7
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144
    Um hel yeah hes gonna get credits hes the one who released it

  9. #8
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool
    Quote Originally Posted by DBag4Life69 View Post


    Believe me, bro.
    I don't plan on helping him.

    But the SAD thing is, I know what his problem is, and I barely even know C++.
    But, I have been studying every base that's been released and been making my own private hacks and shit, trying to learn for myself.





    Don't fucking help him, I HIGHLY even doubt you're gonna get credits anyways.
    If he doesn't give credits than he will get banned.

  10. #9
    DBag4Life69's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    290
    Reputation
    13
    Thanks
    59
    My Mood
    Twisted
    Quote Originally Posted by eXaLtIc™ View Post
    Um hel yeah hes gonna get credits hes the one who released it
    Dude... I will take your word, but I don't 100% believe you, because you're a "leecher" and you've only got a few posts, but I hope you do post credits. If not, that's disrespect to another of the BEST coders on here.

    Last edited by DBag4Life69; 09-12-2010 at 06:34 PM.

  11. #10
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144
    Workin on that

  12. #11
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by DBag4Life69 View Post


    IMO Best coders:
    • CodeDemon
    • CoderNever
    • hahaz
    • whit
    • Blood
    • mmbob
    • Crash
    • DeadLinez
    • I don't know who I might have missed, so if I missed you and you wish to be on this list, lemme know.
    Isn't MarkoJ one of the best coders ever? You should add that guy to the list/
    Dont ban me

  13. #12
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool
    Quote Originally Posted by markoj View Post
    Isn't MarkoJ one of the best coders ever? You should add that guy to the list/
    .
    Gordon and Icyseal too.

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

    IcySeal (09-12-2010)

  15. #13
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144
    How long has gordon been coding and studieing

  16. #14
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool
    Quote Originally Posted by eXaLtIc™ View Post
    How long has gordon been coding and studieing
    for 1-2 years maybe 3.

  17. #15
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144
    No i herd hes been coding and studing for about 5 - 6 years

Page 1 of 3 123 LastLast

Similar Threads

  1. Question for bypass
    By Nikko42 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 08-30-2007, 11:20 PM
  2. a question for dave
    By m164life in forum General
    Replies: 18
    Last Post: 01-02-2007, 08:20 PM
  3. A Question for Dave...or anybody that knows
    By Fortran in forum WarRock - International Hacks
    Replies: 5
    Last Post: 12-02-2006, 02:23 PM
  4. Question for Photoshop 9.0 CS2
    By Killclowns in forum Art & Graphic Design
    Replies: 18
    Last Post: 04-30-2006, 12:57 AM