No Reload/No Change Delay code - doesn't work, please check.

Posts 1–15 of 26 · Page 1 of 2
No Reload/No Change Delay code - doesn't work, please check.
I have made this No Reload/No Change Delay hack, but it doesnt work. Injecting works, message box comes up, but reload/change speed is unchanged.

Please check the code and correct it if necessary. Try compiling it and seeing if it works for you...

Code:
#include <windows.h>


void doyourstuffhere()
{
    DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
    DWORD cWeaponMgr = *(DWORD*)(cshell + 0xA68F80);
    //DWORD cPlayerMgr = *(DWORD*)(cshell + 0xA69BE8);
    int sz = sizeof(float);
    while(1)
    {
        if(cWeaponMgr)
        {
            for(int i=0; i<560; i++)
            {
                *(float*)(cWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; // No change delay
                *(float*)(cWeaponMgr + (sz*i) + (0x269C)) = 100.0f; // No Reload

            }
        }
        Sleep(100);
    }
}


bool runner(LPVOID)
{
    Sleep(1000);
    try
    {
        DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
        if(dllfile == NULL)
        {
            throw 1;
        }
    }
    catch (int error)
    {
        switch(error)
        {
        case 1:
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
            return false;
        default:
            //Unkown error!
            return false;
        }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
    return true;
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hDll);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
        MessageBox(NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", MB_OK);
        break;

    case DLL_PROCESS_DETACH:
        // detach from process
        break;

    case DLL_THREAD_ATTACH:
        // attach to thread
        break;

    case DLL_THREAD_DETACH:
        // detach from thread
        break;
    }
    return TRUE; // succesful
}
Note: The reason for this:
Code:
extern "C" __declspec(dllexport) BOOL APIENTRY
before DllMain is because i am using Code::Blocks, and it requires this to work.
Corn....no offense but do u know what u are doing or u just copied Brimir...
any way since ur new am gonna help ya
Code:

Code:
#include <windows.h>

void doyourstuffhere()
{
while (1)
{
    DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
    DWORD pWeaponMgr = *(DWORD*)(cshell + 0xA68F80);// I dont know about cWeaponMgr....i prefer pWeaponMgr
    // u dont need this...delete it

    int sz = sizeof(float);

       should be up there i think
     
        if(pWeaponMgr){
            for(int i=0; i<576; i++)// New loop...>> 576
            {
                *(float*)(cWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; // No change delay
                *(float*)(cWeaponMgr + (sz*i) + (0x269C)) = 100.0f; // No Reload

            }
        }
        Sleep(100);
    }
}
// Try it now ;)

bool runner(LPVOID)
{
    Sleep(1000);
    try
    {
        DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
        if(dllfile == NULL)
        {
            throw 1;
        }
    }
    catch (int error)
    {
        switch(error)
        {
        case 1:
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
            return false;
        default:
            //Unkown error!
            return false;
        }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
    return true;
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hDll);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
        MessageBox(NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", MB_OK);
        break;

    case DLL_PROCESS_DETACH:
        // detach from process
        break;

    case DLL_THREAD_ATTACH:
        // attach to thread
        break;

    case DLL_THREAD_DETACH:
        // detach from thread
        break;
    }
    return TRUE; // succesful
}
Quote Originally Posted by Assassin's Creed View Post
Corn....no offense but do u know what u are doing or u just copied Brimir...
any way since ur new am gonna help ya
Code:
#include <windows.h>

void doyourstuffhere()
{
while (1)
{
    DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
    DWORD pWeaponMgr = *(DWORD*)(cshell + 0xA68F80);// I dont know about cWeaponMgr....i prefer pWeaponMgr
    // u dont need this...delete it

    int sz = sizeof(float);

     // while (1) should be up there i think
     
        if(pWeaponMgr)
        {
            for(int i=0; i<576; i++)// New loop...>> 576
            {
                *(float*)(cWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; // No change delay
                *(float*)(cWeaponMgr + (sz*i) + (0x269C)) = 100.0f; // No Reload

            }
        }
        Sleep(100);
    }
}
// Try it now ;)

bool runner(LPVOID)
{
    Sleep(1000);
    try
    {
        DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
        if(dllfile == NULL)
        {
            throw 1;
        }
    }
    catch (int error)
    {
        switch(error)
        {
        case 1:
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
            return false;
        default:
            //Unkown error!
            return false;
        }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
    return true;
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hDll);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
        MessageBox(NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", MB_OK);
        break;

    case DLL_PROCESS_DETACH:
        // detach from process
        break;

    case DLL_THREAD_ATTACH:
        // attach to thread
        break;

    case DLL_THREAD_DETACH:
        // detach from thread
        break;
    }
    return TRUE; // succesful
}
ur the one who deesn't know hes making his defferently so dont just say C+P
edit 1 / dude it doesn't really matter about cWeaponMgr and pweaponMgr coz ur can name it anything u want
Quote Originally Posted by Assassin's Creed View Post
Corn....no offense but do u know what u are doing or u just copied Brimir...
any way since ur new am gonna help ya
Code:

Code:
#include <windows.h>

void doyourstuffhere()
{
while (1)
{
    DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
    DWORD pWeaponMgr = *(DWORD*)(cshell + 0xA68F80);// I dont know about cWeaponMgr....i prefer pWeaponMgr
    // u dont need this...delete it

    int sz = sizeof(float);

       should be up there i think
     
        if(pWeaponMgr){
            for(int i=0; i<576; i++)// New loop...>> 576
            {
                *(float*)(cWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; // No change delay
                *(float*)(cWeaponMgr + (sz*i) + (0x269C)) = 100.0f; // No Reload

            }
        }
        Sleep(100);
    }
}
// Try it now ;)

bool runner(LPVOID)
{
    Sleep(1000);
    try
    {
        DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
        if(dllfile == NULL)
        {
            throw 1;
        }
    }
    catch (int error)
    {
        switch(error)
        {
        case 1:
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
            return false;
        default:
            //Unkown error!
            return false;
        }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
    return true;
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hDll);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
        MessageBox(NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", MB_OK);
        break;

    case DLL_PROCESS_DETACH:
        // detach from process
        break;

    case DLL_THREAD_ATTACH:
        // attach to thread
        break;

    case DLL_THREAD_DETACH:
        // detach from thread
        break;
    }
    return TRUE; // succesful
}
way every 1 puts pWeaponMgr?

i just put if (Main + Weapon)
(Main = CShell)
....
Quote Originally Posted by Assassin's Creed View Post
Corn....no offense but do u know what u are doing or u just copied Brimir...
any way since ur new am gonna help ya
Code:

Code:
#include <windows.h>

void doyourstuffhere()
{
while (1)
{
    DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
    DWORD pWeaponMgr = *(DWORD*)(cshell + 0xA68F80);// I dont know about cWeaponMgr....i prefer pWeaponMgr
    // u dont need this...delete it

    int sz = sizeof(float);

       should be up there i think
     
        if(pWeaponMgr){
            for(int i=0; i<576; i++)// New loop...>> 576
            {
                *(float*)(cWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; // No change delay
                *(float*)(cWeaponMgr + (sz*i) + (0x269C)) = 100.0f; // No Reload

            }
        }
        Sleep(100);
    }
}
// Try it now ;)

bool runner(LPVOID)
{
    Sleep(1000);
    try
    {
        DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
        if(dllfile == NULL)
        {
            throw 1;
        }
    }
    catch (int error)
    {
        switch(error)
        {
        case 1:
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
            return false;
        default:
            //Unkown error!
            return false;
        }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
    return true;
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hDll);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
        MessageBox(NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", MB_OK);
        break;

    case DLL_PROCESS_DETACH:
        // detach from process
        break;

    case DLL_THREAD_ATTACH:
        // attach to thread
        break;

    case DLL_THREAD_DETACH:
        // detach from thread
        break;
    }
    return TRUE; // succesful
}
Whaha, he is not new and i have help him much times.
Lol...i did what i know...and he C+P ...go look in Brimir TUT...u will find all of this..I dont know about his way i have done it my way
ok. i have tried your fixes, doesnt work.

code so far:
Code:
#include <windows.h>


void doyourstuffhere()
{
    while(1)
    {
        DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
        DWORD pWeaponMgr = *(DWORD*)(cshell + 0xA68F80);
        //DWORD cPlayerMgr = *(DWORD*)(cshell + 0xA69BE8);
        int sz = sizeof(float);
        if(pWeaponMgr)
        {
            for(int i=0; i<576; i++)
            {
                *(float*)(pWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; // No change delay
                *(float*)(pWeaponMgr + (sz*i) + (0x269C)) = 100.0f; // No Reload

            }
        }
        Sleep(100);
    }
}


bool runner(LPVOID)
{
    Sleep(1000);
    try
    {
        DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
        if(dllfile == NULL)
        {
            throw 1;
        }
    }
    catch (int error)
    {
        switch(error)
        {
        case 1:
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
            return false;
        default:
            //Unkown error!
            return false;
        }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
    return true;
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hDll);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
        MessageBox(NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", MB_OK);
        break;

    case DLL_PROCESS_DETACH:
        // detach from process
        break;

    case DLL_THREAD_ATTACH:
        // attach to thread
        break;

    case DLL_THREAD_DETACH:
        // detach from thread
        break;
    }
    return TRUE; // succesful
}


---------- Post added at 10:23 PM ---------- Previous post was at 10:22 PM ----------

Quote Originally Posted by Assassin's Creed View Post

Good luck...about the cWeaponMgr...i told u i dont know..i just told u what i use..and mine works so good luck
ok, thanks for your help
DUDE!! FFS. Thanks for the help, ill test it soon. I used someones Base (maybe Brimirs) but i edited it a lot, and i made the actual hack code my self.... don't call me a noob C+P-er.

seems like you don't know what you are doing.... making an empty CODE tag... jokes lol

@DaRk thanks. yeah it doesnt matter what the hell you name a variable (as long as its not illegal).

Code:
int _corn_ = !(C+P);
Quote Originally Posted by _corn_ View Post
DUDE!! FFS. Thanks for the help, ill test it soon. I used someones Base (maybe Brimirs) but i edited it a lot, and i made the actual hack code my self.... don't call me a noob C+P-er.

seems like you don't know what you are doing.... making an empty CODE tag... jokes lol

@DaRk thanks. yeah it doesnt matter what the hell you name a variable (as long as its not illegal).
Good luck...about the cWeaponMgr...i told u i dont know..i just told u what i use..and mine works so good luck
I dunno rly about DLLMain there might be an error their i fixed the code but when i log onto Crossfire It Crashes u can ask any one about it..
Code:
#include <windows.h>


DWORD WINAPI doyourstuffhere(LPVOID)
{
    while(1)
    {
        DWORD cshell = (DWORD)GetModuleHandleA( "CShell.dll" );
        DWORD pWeaponMgr = *(DWORD*)(cshell + 0xA68F80);
        
        int sz = sizeof(float);
        if(pWeaponMgr)
        {
            for(int i=0; i<576; i++)
            {
                *(float*)(pWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; 
                *(float*)(pWeaponMgr + (sz*i) + (0x269C)) = 45.0f; 

            }
        }
        Sleep(100);
    }
}
bool runner(LPVOID)
{
    Sleep(1000);
    try
    {
        DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
        if(dllfile == NULL)
        {
            throw 1;
        }
    }
    catch (int error)
    {
        switch(error)
        {
        case 1:
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
            return false;
        default:
            
            return false;
        }
    }
    Beep(1000,1000);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
    return true;
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hDll);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
        MessageBoxA (NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", NULL);
        break;

    case DLL_PROCESS_DETACH:
        
        break;

    case DLL_THREAD_ATTACH:
        
        break;

    case DLL_THREAD_DETACH:
        
        break;
    }
    return TRUE; 
}
lol idk. to prove im not a c+p'er, ill pm you my own base that i just made, for you to check (it doesnt work either :S)
Quote Originally Posted by _corn_ View Post
lol idk. to prove im not a c+p'er, ill pm you my own base that i just made, for you to check (it doesnt work either :S)
K i will check in about an hour..
makes it easier i suppose
lol isnt DllMain already exported :P
Posts 1–15 of 26 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us