Results 1 to 12 of 12
  1. #1
    skulhead's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    714
    Reputation
    0
    Thanks
    158
    My Mood
    Cheerful

    [HELP] Why is this not working :\

    Code:
    #include <windows.h>
    #include <stdio.h>
    
    #define Addr_Playerpointer 0xBC2248
    #define Addr_ServerPointer 0xABCE28
    #define Addr_FastAmmo 0xA46D34
    #define Addr_FastMedic 0xA46D38
    #define Addr_FastRepair 0xA46D3C
    #define Addr_FastFlag1 0xA46D40
    #define Addr_FastFlag 0xA43894
    #define Addr_NoWater 0x967044
    #define Addr_NoSpread 0xA43888
    #define ADR_FULLBRIGHT1 0xA496F0
    #define ADR_FULLBRIGHT2 0xA496EC
    #define ADR_FULLBRIGHT3 0xA496E8
    #define Ofs_NFD 0x00103A8
    #define Ofs_Z 0x00102D8
    #define Ofs_Y 0x00102DC
    #define Ofs_X 0x00102D4
    #define Ofs_5Slot 0x001021A4
    #define Ofs_6Slot 0x001021A5
    #define Ofs_7Slot 0x001021A6
    
    
    #define OFS_ROOMMASTER 0x000FD148
    #define OFS_SUPERMASTER 0x000FCD30
    #define Addr_Nospread 0x00A43888 
    
    #define Ofs_NoRecoil1 0x001C
    #define Ofs_NoRecoil2 0x0020
    #define Ofs_NoRecoil3 0x0024
    
    
    DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
    
    
    
    // 37
    void source_codes()
    {
    
    *(float*)(dwPlayerPtr+Ofs_NFD) = -2000;
    
    if(GetAsyncKeyState(VK_CONTROL) &1)
    {
    DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
    if(dwPlayerPtr != 0)
    {
    *(float*)(dwPlayerPtr+Ofs_Z) = 2000;
    }
    }
    
    if(GetAsyncKeyState(VK_INSERT) &1) //try VK_CONTROL
    {
    DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
    if(dwPlayerPtr != 0)
    {
    *(float*)(dwPlayerPtr+Ofs_Z) = -2000; //= must be removed
    }
    }
    if(GetAsyncKeyState(VK_NUMPAD2) &1) // 30
    {
    *(float*)(dwPlayerPtr+Addr_FastAmmo) = 10000000;
    *(float*)(dwPlayerPtr+Addr_FastMedic) = 10000000;
    *(float*)(dwPlayerPtr+Addr_FastRepair) = 100000000;
    *(float*)(dwPlayerPtr+Addr_FastFlag1) = 100000;
    *(float*)(dwPlayerPtr+Addr_FastFlag) = 100000; // fast all
    } // 36
    if(GetAsyncKeyState(VK_NUMPAD3) &1)
    {
    *(int*)(ADR_FULLBRIGHT1) = 1092779973;
    *(int*)(ADR_FULLBRIGHT2) = 1092779973;
    *(int*)(ADR_FULLBRIGHT3) = 1092779973; // full bright
    }
    if(GetAsyncKeyState(VK_NUMPAD4) &1)
    {
    *(float*)Addr_NoWater = 0;
    }
    while( 1 == 1 )
    {
    float PositionY, PositionX, PositionZ;
    
    //Start hacks
    DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
    if(dwPlayerPtr != 0)
    {
    
    if(GetAsyncKeyState(VK_F10)&1)
    {
    // We take the position only when pressing F10
    PositionX = *(float*)(dwPlayerPtr + Ofs_X);
    PositionY = *(float*)(dwPlayerPtr + Ofs_Y);
    PositionZ = *(float*)(dwPlayerPtr + Ofs_Z);
    }
    
    if(GetAsyncKeyState(VK_F11)&1)
    {
    // The playerPosition will be the one we took before
    *(float*)(dwPlayerPtr + Ofs_X) = PositionX;
    *(float*)(dwPlayerPtr + Ofs_Y) = PositionY;
    *(float*)(dwPlayerPtr + Ofs_Z) = PositionZ;
    }
    }
    }
    }
    
    
    void Module_Thread(){ 
    for(;;)
    { 
    source_codes();
    } 
    Sleep(200); 
    }
    
    BOOL WINAPI DllMain(HINSTANCE hMODULE,DWORD Basic_Base,LPVOID lpvReserved)
    { // Begin our module running
    if(Basic_Base == DLL_PROCESS_ATTACH) // If our dll is attached to a process were are going to run a thread.
    { // Begin our Thread Running
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Module_Thread,0,0,0);
    source_codes();
    }
    return TRUE; 
    }

  2. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Everyone would be happy to help, but maybe more specific, like are you getting any errors . etc.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  3. #3
    skulhead's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    714
    Reputation
    0
    Thanks
    158
    My Mood
    Cheerful
    It dont give debug error, it just dont work in game.
    When I press hotkey nothing happens, so ussualy the addies are outdated but on the warrock forum they said that this are the updated addies. That is my problem.

  4. #4
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    ... I see... did you try compiling the code?

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

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

    Hell_Demon (03-02-2011)

  6. #5
    skulhead's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    714
    Reputation
    0
    Thanks
    158
    My Mood
    Cheerful
    I am using visual 2008, if you press debug there it compiles to. ( I think )

  7. #6
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Did you compile it to a .dll and inject it?

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  8. #7
    skulhead's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    714
    Reputation
    0
    Thanks
    158
    My Mood
    Cheerful
    Yes, tryed 3 injectors.

  9. #8
    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
    The only two hotkeys that will/should work are F10 and F11

    Code:
    while( 1 == 1 )
    {
    ...
    }
    You have that somewhere in the source_codes function
    Ah we-a blaze the fyah, make it bun dem!

  10. #9
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Wow. Didn't even see that HD, though bad formatting may have helped. Lol. And because you declare the variables in the loop, the teleporting never works, because the x,y,and z positions get turned to junk data. Not to mention you would have to hold down the f11 key to teleport, and your position would be in so many different places that it probably ends up teleporting off the map a million times a second or no where at all.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

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

    Hell_Demon (03-02-2011)

  12. #10
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127
    define the X Y Z postions as globals. that happened 2 me in my first warrock tele hack, it crashed me or fked up.

  13. #11
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Uhg, it would be be nice if you didn't bump week old threads. Thank you.

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

    Hell_Demon (03-10-2011)

  15. #12
    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
    ~ locked to prevent further necrophilia ~
    Ah we-a blaze the fyah, make it bun dem!