Results 1 to 3 of 3
  1. #1
    myonemanga's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    1
    My Mood
    Busy

    Hack not working, code error I think

    The hack I made happens to be not working. I didn't really make it as much as copy and paste but I know a bit of c++ anyways. Here is code, I am using tom's injector that was just released. When I open warrock and everything nothing happens but when I get in a game warrock closes. Help?

    Code (also tell me if this is right current addies, should be)

    //
    #include <stdio.h>
    #include <windows.h>
    //
    // Addresses
    #define Playerpointer 0x00CD98C0
    #define Serverpointer 0x00BE2A30
    #define OFF_NFD 0x00000320
    #define OFS_STAMINA 0x00B18425
    #define OFS_Z 0x0000025C
    // End Addresses
    /////////////////
    DWORD *ingame= (DWORD*)Playerpointer;
    DWORD *megame= (DWORD*)Serverpointer;
    ////////////////

    // HACK CODES //

    void Stamina()
    {
    DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
    if(dwPlayerPtr != 0)
    {
    *(float*)(dwPlayerPtr+OFS_STAMINA) = 100;
    }
    }

    void Jump()
    {
    if(GetAsyncKeyState(VK_CONTROL) &1)
    {
    DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
    if(dwPlayerPtr != 0)
    {
    *(float*)(dwPlayerPtr+OFS_Z) = 2500;
    }
    }
    }

    void NFD()
    {
    DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
    if(dwPlayerPtr != 0)
    {
    *(float*)(dwPlayerPtr+OFF_NFD) = -20000;
    }
    }

    void HackThread()
    {
    for(;
    {
    if(*ingame) //check if we are ingame.. prevent crashs
    {
    NFD();
    Jump();
    Stamina();
    }
    if(*megame)
    {
    // Add the PX Items here.

    }
    Sleep(200); //prevent for overloading the cpu
    }
    }
    BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    if(dwReason == DLL_PROCESS_ATTACH)
    {
    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
    }
    return TRUE;
    }



    Ty and hope this is right section

  2. #2
    Felipeb18's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    6
    I think u need a bypass.

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    I think you need to f*ck off and learn C++ first
    Ah we-a blaze the fyah, make it bun dem!

  4. The Following User Says Thank You to Hell_Demon For This Useful Post:

    Matrix_NEO006 (01-07-2010)

Similar Threads

  1. [Help] (Source Code included)Hack not working
    By johnnydicamillo in forum WarRock Hack Source Code
    Replies: 9
    Last Post: 12-30-2010, 07:43 AM
  2. [Help] hack not working [source code included]
    By kibbles18 in forum WarRock Hack Source Code
    Replies: 7
    Last Post: 11-24-2010, 10:27 AM
  3. [ERROR] NumPad Key Hack not working, but others do..
    By hgmf8124 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 15
    Last Post: 07-27-2010, 03:16 AM
  4. [Help] My hacks not working
    By ilovepie21 in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-09-2008, 07:13 AM
  5. Hacks not working
    By crazy4her in forum WarRock - International Hacks
    Replies: 12
    Last Post: 06-07-2007, 03:25 AM