Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed

    Cool Quick look at my code

    Hi MPGH!

    Thanks to your code snippets and threads i learned to make a nomenu hack, and now im working on a menu hack. The menu is working fine! But the hackfunction themself aren't working. From most threads I've read I know addys are often wrong. I got mine from n4n033 (Credits to him! Great Hack!). I have not been able to find addys myself.

    If someone could tell me why my functions arent working, it would be great!

    Hack Code:
    Code:
    void PlayerHacks()
    {
    	DWORD dwPlayer = *(DWORD*)ADR_PLAYERPOINTER;
    		if (CH_NoFallDamage)
    	{
    		*(float*)(dwPlayer + OFS_NOFALLDAMAGE) = -9999999.0F;
    	}
    
    	if (CH_NoBounds)
    	{
    		*(float*)(ADR_NOBOUNDS1) = 0.0F;
    		*(float*)(ADR_NOBOUNDS2) = 0.0F;
    		*(float*)(ADR_NOBOUNDS3) = 0.0F;
    	}
    
    	if (CH_NoRecoil)
    	{
    		*(float*)(dwPlayer + OFS_NORECOIL1) = 0.0F;
    		*(float*)(dwPlayer + OFS_NORECOIL2) = 0.0F;
    		*(float*)(dwPlayer + OFS_NORECOIL3) = 0.0F;
    	}
    
    	if (CH_FastRepair)
    	{
    		if(dwPlayer != 0)
    		{
    			*(float*)MEM_FastRepair = 5000000;
    		}
    	}
    	if (CH_FastMedic)
    	{
    		if(dwPlayer != 0)
    		{
    			*(float*)MEM_FastMedic = 5000000;
    		}
    	}
    
    	if (CH_FastFlag)
    	{
    		if(dwPlayer != 0)
    		{
    			*(float*)MEM_FastFlag = 5000000;
    		}
    	}
    
    	if (CH_FastAmmo)
    	{
    		if(dwPlayer != 0)
    		{
    			*(float*)MEM_FastAmmo = 5000000;
    		}
    	}
    
    
    
    }
    
    void ServerHacks()
    {
    
    	DWORD dwServer = *(DWORD*)ADR_SERVERPOINTER;
    
    	if (CH_GMWarning) /* Crash */
    	{
    		char *GMName = (char*)(ADR_GMWARNING);
    		if (strlen(GMName) > 2)
    		{
    			ExitProcess(0);
    		}
    	}
    
    	if (CH_Slot5)
    	{
    		*(BYTE*)(dwServer + OFS_SLOTS5) = 0x1;
    	}
    
    	if (CH_Slot6)
    	{
    		*(BYTE*)(dwServer + OFS_SLOTS6) = 0x1;
    	}
    
    	if (CH_Slot7)
    	{
    		*(BYTE*)(dwServer + OFS_SLOTS7) = 0x1;
    	}
    
    	if (CH_Slot8)
    	{
    		*(BYTE*)(dwServer + OFS_SLOTS8) = 0x1;
    	}
    	if (CH_Premium)
    	{
    		*(int*)(dwServer+OFS_Prem_1) = 4;
    	}
    	if (CH_Premium2)
    	{
    *(int*)(dwServer+OFS_Prem_2) = 4;
    	}
    	if (CH_exitwr)
    	{
    		ExitProcess(0); 
    	}
    
    }
    And to be shure here is my addy list

    Code:
    #define ADR_PLAYERPOINTER                 0xB23F20
    #define ADR_SERVERPOINTER                 0xB1B624
    #define ADR_NOBOUNDS1                     0xBB651C
    #define ADR_NOBOUNDS2                     0xBB6520
    #define ADR_NOBOUNDS3                     0xBB6524
    #define ADR_GMWARNING	                  0xB51364
    #define OFS_NORECOIL1                     0xC45C
    #define OFS_NORECOIL2                     0xC460
    #define OFS_NORECOIL3                     0xC464
    #define OFS_NOFALLDAMAGE                  0x10300
    #define OFS_X                             0x10318
    #define OFS_Y                             0x10320
    #define OFS_Z                             0x1031C
    #define OFS_SLOTS5                        0x34134
    #define OFS_SLOTS6                        0x34135
    #define OFS_SLOTS7                        0x34136
    #define OFS_SLOTS8                        0x34137
    #define MEM_FastAmmo            0xB285B4
    #define MEM_FastMedic			0xB285BC
    #define MEM_FastFlag			0xB285CC
    #define MEM_FastRepair			0xB285BC
    #define OFS_Prem_1              0x3CC
    #define OFS_Prem_2              0xC3C
    If you want to see more of the code just replay. Thanks for your time, I love your comunity!

    Znoen,

  2. The Following User Says Thank You to znoen For This Useful Post:

    trebbia999 (07-09-2014)

  3. #2
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    make sure you're hooking the threads


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  4. #3
    croseng1234's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    sure give me a sample

  5. #4
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Quote Originally Posted by n4n033 View Post
    make sure you're hooking the threads
    There is a hackloop that loads the Player and ServerHacks. That should be it?

    Code:
    void HackLooP()
    {
    	for (;;)
    	{
    		PlayerHacks();
    		ServerHacks();
    		Sleep(5);
    	}
    }
    and here the HackLoop itself gets loaded

    Code:
    		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackLooP, NULL, NULL, NULL);
    Edit: Im shure hooking is right, when i enable some hacks the game crashes.
    Last edited by znoen; 06-14-2014 at 02:57 AM.

  6. #5
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,392
    My Mood
    Stressed
    Quote Originally Posted by znoen View Post
    There is a hackloop that loads the Player and ServerHacks. That should be it?

    Code:
    void HackLooP()
    {
    	for (;;)
    	{
    		PlayerHacks();
    		ServerHacks();
    		Sleep(5);
    	}
    }
    and here the HackLoop itself gets loaded

    Code:
    		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackLooP, NULL, NULL, NULL);
    Edit: Im shure hooking is right, when i enable some hacks the game crashes.
    make sure your address are all correct.

  7. #6
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Quote Originally Posted by Jhem View Post


    make sure your address are all correct.
    I just changed the address of Player and Server pointer, also added Glasswalls and thats working fine now. The other addresses were indeed wrong. But how can the addresses i got from you're logger be so defferent then n4n033.

    This is what i could get, wanna share some other working addy's?
    Tnx!

    Also, if this is finally finished you will be named in credits!

    Code:
    <----------- ### Address Logger ### ----------->
    <-------------- ### WarRock ### -------------->
    <--------- ### Made By [MPGH]Jhem ### ----------->
    <-------------- ### MPGH.net ### -------------->
    
    
    
    
    <----------- ### Pointers ### ----------->
    #define ADR_PlayerPointer 0x00B23F20
    #define ADR_ServerPointer 0x00B1C6E4
    #define ADR_RemotePointer 0x00BA6034
    
    
    <----------- ### Memory ### ----------->
    #define ADR_GlassWalls 0x00B1B878
    
    
    <----------- ### Offsets ### ----------->
    #define OFS_Nodelay     0x10410
    #define OFS_NoReload    0x1040D
    #define OFS_NFD         0x102E8
    #define OFS_X           0x10300
    #define OFS_Y           0x10308
    #define OFS_Z           0x10310
    #define OFS_NoRecoil1   0xC444
    #define OFS_NoRecoil2   0xC44C
    #define OFS_NoRecoil3   0xC448

  8. #7
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,392
    My Mood
    Stressed
    Problem solved @Mayion

  9. #8
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Quote Originally Posted by Jhem View Post
    Problem solved @Mayion
    i dont see where?

  10. #9
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    Quote Originally Posted by znoen View Post
    I just changed the address of Player and Server pointer, also added Glasswalls and thats working fine now. The other addresses were indeed wrong. But how can the addresses i got from you're logger be so defferent then n4n033.

    This is what i could get, wanna share some other working addy's?
    Tnx!

    Also, if this is finally finished you will be named in credits!

    Code:
    <----------- ### Address Logger ### ----------->
    <-------------- ### WarRock ### -------------->
    <--------- ### Made By [MPGH]Jhem ### ----------->
    <-------------- ### MPGH.net ### -------------->
    
    
    
    
    <----------- ### Pointers ### ----------->
    #define ADR_PlayerPointer 0x00B23F20
    #define ADR_ServerPointer 0x00B1C6E4
    #define ADR_RemotePointer 0x00BA6034
    
    
    <----------- ### Memory ### ----------->
    #define ADR_GlassWalls 0x00B1B878
    
    
    <----------- ### Offsets ### ----------->
    #define OFS_Nodelay     0x10410
    #define OFS_NoReload    0x1040D
    #define OFS_NFD         0x102E8
    #define OFS_X           0x10300
    #define OFS_Y           0x10308
    #define OFS_Z           0x10310
    #define OFS_NoRecoil1   0xC444
    #define OFS_NoRecoil2   0xC44C
    #define OFS_NoRecoil3   0xC448
    If you're on WarRock INT offsets changed so all your offsets are wrong


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  11. #10
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Quote Originally Posted by n4n033 View Post
    If you're on WarRock INT offsets changed so all your offsets are wrong
    So all you're addys aren't for warrock INT? That explains a lot haha.
    Going to try my own addys. But my hackthread is alright?

  12. #11
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    Quote Originally Posted by znoen View Post
    So all you're addys aren't for warrock INT? That explains a lot haha.
    Going to try my own addys. But my hackthread is alright?
    It is but i have failed addresses so i'm gonna check it all tomorrow and repost the right ones


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  13. #12
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Quote Originally Posted by n4n033 View Post
    It is but i have failed addresses so i'm gonna check it all tomorrow and repost the right ones
    Oh that would be nice!
    I have found some of my self now. Will share them ofcourse

  14. #13
    Pitcher's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Screwing your mom.
    Posts
    524
    Reputation
    53
    Thanks
    797
    My Mood
    Flirty
    First check the addies, if they are right, then you've gotta look at the hook. Is the hook correctly ?


    Back on the 30th of september.

    WarRock Contributer Force

    My hacks are only for WarRock International!


  15. #14
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    Quote Originally Posted by Pitcher View Post
    First check the addies, if they are right, then you've gotta look at the hook. Is the hook correctly ?
    Problem is already solved about it man


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  16. #15
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Quote Originally Posted by n4n033 View Post
    Problem is already solved about it man
    Not realy, its still not working...

    Here is a paste of my Hook. I can finally write some code myself. But a hook goes a little too far. I hope people here find it :P

    Code:
    HRESULT __stdcall DirectXHooK()
    {
    	DWORD dwD3D9;
    	do
    	{
    		dwD3D9 = (DWORD)GetModuleHandleA("D3D9.DLL");
    		Sleep(1000);
    	}
    	while (!dwD3D9);
    
    	pReset = (oReset)E9Detour((DWORD)VTable->ID(16),(DWORD)Reset,5);
    	pPresent = (oPresent)E9Detour((DWORD)VTable->ID(17),(DWORD)Present,5);
    
    	return true;
    }
    
    void HackLooP()
    {
    	for (;;)
    	{
    		PlayerHacks();
    		ServerHacks();
    		Sleep(5);
    	}
    }
    
    BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    	DisableThreadLibraryCalls(hDll);
    	if (dwReason == DLL_PROCESS_ATTACH)
    	{
    		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackLooP, NULL, NULL, NULL);
    		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DirectXHooK, NULL, NULL, NULL);
    	}
    	return TRUE;
    I use BuRn3R his base.

Page 1 of 2 12 LastLast

Similar Threads

  1. looking for m249 code
    By s1n1ster in forum WarRock - International Hacks
    Replies: 6
    Last Post: 02-24-2008, 08:17 AM
  2. looking for m249 code
    By s1n1ster in forum Trade Accounts/Keys/Items
    Replies: 1
    Last Post: 02-24-2008, 02:15 AM
  3. Looking for Retail Codes
    By dubbeldamz in forum Trade Accounts/Keys/Items
    Replies: 0
    Last Post: 11-23-2007, 06:02 PM
  4. looking for retail code
    By aatje92 in forum Trade Accounts/Keys/Items
    Replies: 1
    Last Post: 10-17-2007, 06:15 PM
  5. Look in other Codes ?
    By kingkicker8 in forum General Game Hacking
    Replies: 1
    Last Post: 06-10-2007, 06:31 PM

Tags for this Thread