Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Atomic`'s Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    28

    Some useful functions & Addresses

    Addresses -

    Code:
    #define ADDR_TAGS1			0x372FC62A
    #define ADDR_TAGS2			0x372FC6AD
    #define ADDR_GETPLAYERBYINDEX 		0x371549E0
    #define ADDR_LOCALPLAYER		0x37155860
    #define ADDR_CLIENTINFO			0x377D952C
    #define ADDR_MTBWCRET			0x373CE197
    #define ADDR_LTCLIENT			0x377DA848
    #define ADDR_WEAPONMGR			0x378208BC
    #define ADDR_LOCALPTR			0x37826730
    #define ADDR_BUILDFONT			0x3757B680
    #define ADDR_FILLFONT			0x3757C310
    #define ADDR_FONTECX			0x3783776C
    #define ADDR_GETFONTHAND		0x37483B30
    #define ADDR_GETCONSOLEINT		0x3738CE00
    #define ADDR_GCS			0x37823F50
    #define ADDR_LTCOMMON			0x3781EE68
    #define ADDR_S_BULLETS			0x3741BFED
    #define ADDR_REMOTEKILL1		0x37421741
    #define ADDR_REMOTEKILL2		0x37421742
    #define ADDR_REMOTEKILL3		0x37421AC1
    #define ADDR_REMOTEKILL4		0x37421AC2
    #define ADDR_WEAPON_RANGE1		0x37421619
    #define ADDR_WEAPON_RANGE2		0x37421999
    #define ADDR_RAPIDFIRE1			0x37418F27
    #define ADDR_RAPIDFIRE2			0x3742208E
    #define ADDR_RAPIDFIRE3			0x3741DF07
    #define ADDR_RAPIDFIRE4			0x37422095
    #define ADDR_RAPIDFIRE5			0x37421EC8
    #define ADDR_FORCEFPS			0x377DA8D8
    #define ADDR_L***BASE			0x377DA830
    #define ADDR_GAMEMODE			0x377FD148
    
    #define OFF_FPS				0x14EF8
    
    #define ADDR_W2S			0x4915C0
    #define ADDR_INTERSECT			0x470C90
    #define ADDR_D3D			0x9116A0
    #define ADDR_DRAWPRIM			0x805774
    #define ADDR_CURSORCENTER		0x7EFA4C
    #define ADDR_SETCVAR			0x486010
    Functions -

    Code:
    int gameMode() 
    {
    	return *(int*)ADDR_GAMEMODE;
    }
    
    typedef bool (*IsConnected_t)(void);
    bool inGame()
    {
    	DWORD* LTBase = (DWORD*)ADDR_LTCLIENT;
    	IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);
    	return pConnected();
    }
    
    D3DXVECTOR3 IntToObject(int* obj)
    {
    	return *(D3DXVECTOR3*)(obj + 0x4);
    }
    
    bool ValidPointer(void* p)
    { 
    	return !IsBadReadPtr(p, 4) && p;
    }
    
    void SetLocalPlayerPosition(int* Int)
    {
    	D3DXVECTOR3 Pos = IntToObject(Int);
    	DWORD dwClientFxEntry =	(DWORD)GetModuleHandleA(MODULE_CLIENTFX);
    	DWORD dwClass =		*(DWORD*)(dwClientFxEntry + 0x66F34);
    
    	if(!dwClass)	return;
    
    	*(float*)(dwClass + 0xC8) = (Pos.x);
    	*(float*)(dwClass + 0xCC) = (Pos.y);
    	*(float*)(dwClass + 0xD0) = (Pos.z);
    }
    
    void MemEdit(PVOID dwAdd, void *val, int bytes)
    {
        DWORD d, ds; 
        VirtualProtect(dwAdd, bytes, PAGE_EXECUTE_READWRITE, &d);
        memcpy(dwAdd, val, bytes);  
        VirtualProtect(dwAdd,bytes,d,&ds);
    }
    Good Telekill -

    Code:
    DWORD ulThis;
    PlayerInfo* pPlayer;
    PlayerInfo* pLocal;
    typedef PlayerInfo* (__thiscall *lpGetPlayerByIndex)(DWORD ulThis,int index, int unk);
    lpGetPlayerByIndex GetPlayerByIndex;
    typedef PlayerInfo* (__thiscall *lpGetLocalPlayer)(DWORD ulThis);
    lpGetLocalPlayer GetLocalPlayer;
    bool gotTarget, TKInitiated;
    
    void DoTelekill(int Status)
    {
    	if(Status)
    	{
    		if(inGame())
    		{
    			if(!TKInitiated)
    			{
    				GetPlayerByIndex = (lpGetPlayerByIndex)(ADDR_GETPLAYERBYINDEX);
    				ulThis = *(DWORD*)(ADDR_CLIENTINFO);
    				GetLocalPlayer = (lpGetLocalPlayer)(ADDR_LOCALPLAYER);
    				TKInitiated = true;
    				return;
    			}
    			else
    			{
    				pLocal = GetLocalPlayer(ulThis);
    				if(!gotTarget)
    				{
    					Target++;
    					if(Target > 16) 
    						Target = 0;
    					pPlayer = GetPlayerByIndex(ulThis, Target, 0);
    					if(pLocal && Tools.ValidPointer(pLocal) && pPlayer && Tools.ValidPointer(pPlayer) && pPlayer->pTeam != pLocal->pTeam && Player->pName != pLocal->pName && !pPlayer->pIsDead && !pLocal->pIsDead)
    						gotTarget = true;
    					else return;
    				}
    				else
    				{
    					if(pLocal && Tools.ValidPointer(pLocal) && pPlayer && Tools.ValidPointer(pPlayer) && pPlayer->pTeam != pLocal->pTeam && Player->pName != pLocal->pName && !pPlayer->pIsDead && !pLocal->pIsDead)
    					{
    						if(Tools.Hotkey(0x58, true))
    							SetLocalPlayerPosition(pPlayer->Object);
    						if(Tools.Hotkey(0x43))
    						{
    							gotTarget = false;
    							return;
    						}
    					}
    					else
    					{
    						gotTarget = false;
    						return;
    					}
    				}
    			}
    		}
    		else 
    		{
    			TKInitiated = false;
    			gotTarget = false;
    		}
    	}
    	else
    	{
    		gotTarget = false;
    		return;
    	}
    }
    Good Rapid Fire-

    Code:
    bool rRapidfire, SetRapidFire;
    float EndWait;
    void DoRapidFire(int Status)
    {
    	if(Status)
    	{
    		if(GetAsyncKeyState(VK_MBUTTON)<0)
    		{
    			if(clock() < EndWait)
    			{
    				MemEdit((PBYTE)ADDR_RAPIDFIRE1, (PBYTE)"\x74\x09", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE2, (PBYTE)"\x80\xBE\xE0\x00\x00\x00\x00", 7);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE3, (PBYTE)"\x7E\x15", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE4, (PBYTE)"\x74\x3E", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE5, (PBYTE)"\x8B\x86\xEC\x00\x00\x00", 6);
    			}
    			else
    			{
    				EndWait = clock() + 0.09 * CLOCKS_PER_SEC;
    				MemEdit((PBYTE)ADDR_RAPIDFIRE1, (PBYTE)"\x90\x90", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE2, (PBYTE)"\x90\x90\x90\x90\x90\x90\x90", 7);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE3, (PBYTE)"\x90\x90", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE4, (PBYTE)"\x90\x90", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE5, (PBYTE)"\x90\x90\x90\x90\x90\x90", 6);
    			}
    			SetRapidFire = true;
    		}
    		else
    		{
    			if(SetRapidFire)
    			{
    				MemEdit((PBYTE)ADDR_RAPIDFIRE1, (PBYTE)"\x74\x09", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE2, (PBYTE)"\x80\xBE\xE0\x00\x00\x00\x00", 7);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE3, (PBYTE)"\x7E\x15", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE4, (PBYTE)"\x74\x3E", 2);
    				MemEdit((PBYTE)ADDR_RAPIDFIRE5, (PBYTE)"\x8B\x86\xEC\x00\x00\x00", 6);
    				SetRapidFire = false;
    			}
    		}
    		rRapidfire = true;
    	}
    	else
    	{
    		if(rRapidfire)
    		{
    			MemEdit((PBYTE)ADDR_RAPIDFIRE1, (PBYTE)"\x74\x09", 2);
    			MemEdit((PBYTE)ADDR_RAPIDFIRE2, (PBYTE)"\x80\xBE\xE0\x00\x00\x00\x00", 7);
    			MemEdit((PBYTE)ADDR_RAPIDFIRE3, (PBYTE)"\x7E\x15", 2);
    			MemEdit((PBYTE)ADDR_RAPIDFIRE4, (PBYTE)"\x74\x3E", 2);
    			MemEdit((PBYTE)ADDR_RAPIDFIRE5, (PBYTE)"\x8B\x86\xEC\x00\x00\x00", 6);
    			rRapidfire = false;
    		}
    	}
    }
    Credits -

    Gellin`
    0xE9
    Atomic`

  2. The Following 6 Users Say Thank You to Atomic` For This Useful Post:

    -Dimensions- (02-10-2012),EliteHakz (02-15-2012),johniscool2 (03-16-2012),ParkII (02-09-2012),pDevice (08-12-2012),SNIPdetta (02-09-2012)

  3. #2
    Ninguém pode ser perfeito, mas todos podem ser melhores
    MPGH Member
    ParkII's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Andressa's Heart
    Posts
    1,379
    Reputation
    61
    Thanks
    408
    My Mood
    Yeehaw
    Good Job Bro , thanks for sharing

  4. #3
    SNIPdetta's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    121
    Reputation
    21
    Thanks
    96
    Thread Perfect, thanks.

  5. #4
    _Dead's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    4
    0xe9 seem's like a pretty cool guy xD What of this is his?

  6. #5
    SNIPdetta's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    121
    Reputation
    21
    Thanks
    96
    Quote Originally Posted by _Dead View Post
    0xe9 seem's like a pretty cool guy xD What of this is his?
    0xe9 = you.

    one question, what functions you found using sendtoserver?

    until the time I found some that are useful.

  7. #6
    TheMaTriX's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    0
    thx
    thats not the full code
    i cant compile this
    Taret and MODULE_CLIENTFX and PlayerInfo is undefined
    Last edited by TheMaTriX; 02-10-2012 at 11:24 PM.

  8. #7
    Reflex-'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    192.168.1.01
    Posts
    6,625
    Reputation
    584
    Thanks
    2,267
    My Mood
    Dead
    Quote Originally Posted by TheMaTriX View Post
    thx
    thats not the full code
    i cant compile this
    Taret and MODULE_CLIENTFX and PlayerInfo is undefined
    Then Define it....

  9. The Following 2 Users Say Thank You to Reflex- For This Useful Post:

    fakeness (02-15-2012),FinalHazard_ (03-27-2012)

  10. #8
    TheMaTriX's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    0
    hh i dont know how
    so if someone can help me i will be happy
    thx: )

  11. #9
    Shadow`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    MN
    Posts
    636
    Reputation
    74
    Thanks
    3,014
    My Mood
    Relaxed
    Excuse me, what would I define clocks and CLOCKS_PER_SEC as? I seem to have all the addys right but this is all I need. Anyone wanna help me please?

    (I'm asking about rapid fire)
    Currently coding applications in Java and C++.

    "It is change, continuing change, inevitable change, that is the dominant factor in society today. No sensible decision can be made any longer without taking into account not only the world as it is, but the world as it will be." -Isaac Asimov

  12. #10
    xFabolous's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    23
    Quote Originally Posted by Shadow` View Post
    Excuse me, what would I define clocks and CLOCKS_PER_SEC as? I seem to have all the addys right but this is all I need. Anyone wanna help me please?

    (I'm asking about rapid fire)
    #include <time.h>

    @Shadow`
    OP7
    Hook Detours - Complete
    Hook DIP - Complete
    Render Menu - Complete

  13. The Following User Says Thank You to xFabolous For This Useful Post:

    Shadow` (02-13-2012)

  14. #11
    LoveDaKush's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    966
    My Mood
    Amazed
    Nice release

  15. #12
    MagixAries's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    18th Gate
    Posts
    676
    Reputation
    78
    Thanks
    367
    My Mood
    Angelic
    very nice release there
    "You said 'I love you', and I said too.
    The only difference is, I didn't lie to you."

    Successful Trades: 204
    Middle Man'd: 67
    BLACKLIST:
    Stevie9090, ProHackTB, combatarms1993, sp33dkill3r,
    Markalot, Yomo710, -Nice-, kernie891
    /Add me on MSN \: x7sinsx@live.com

  16. #13
    holypain1's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    228
    Where do i put one of these scripts?

  17. #14
    stoptheinhumanity's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    Is it possible to paste this into Vis Studio and compile it somehow to use?

  18. #15
    Reflex-'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    192.168.1.01
    Posts
    6,625
    Reputation
    584
    Thanks
    2,267
    My Mood
    Dead
    Quote Originally Posted by stoptheinhumanity View Post
    Is it possible to paste this into Vis Studio and compile it somehow to use?
    If you Knew C++ You would know where these would go.

  19. The Following User Says Thank You to Reflex- For This Useful Post:

    Atomic` (02-18-2012)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Class library with some useful functions.
    By t7ancients in forum C# Programming
    Replies: 8
    Last Post: 05-17-2011, 04:41 AM
  2. Some Useful D3D Functions ( Must have someknowledge )
    By gcflames12 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 22
    Last Post: 08-19-2010, 08:28 AM
  3. Some Useful D3D Functions ( Must have someknowledge )
    By gcflames12 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 08-19-2010, 07:22 AM
  4. Some fool's IP address
    By Hyperion in forum General
    Replies: 15
    Last Post: 04-24-2008, 08:33 AM
  5. Some Useful Tools
    By yahagashi in forum WarRock - International Hacks
    Replies: 32
    Last Post: 12-17-2007, 09:38 PM