NPC Telekill, Weapon Teleport..

Posts 1–15 of 25 · Page 1 of 2
NPC Telekill, Weapon Teleport..
Como não estou fazendo muito hackers para ca, vou postar algumas funções ( gambiarras hu3 )
Eis umas das minhas últimas contribuições com este jogo

Algumas classes :

Code:
class cCharacterFX2
{
public:
	char unknown1[16];
	__Object* Object; //0x0010
	char unknown2[44];
	__int32 IsPlayer; //0x0040
};//Size=0x05C8

class cObjName
{
public:
	char unknown1[4];
	char Name[28];
};

class cBaseFX
{
public:
	char unknown1[16];
	int* Object; //0x0010
	D3DXVECTOR3 Pos; //0x0014
	char unknown2[28];
	cObjName* gotoObjName; //0x0034
	char unknown3[8];
	int NoGun; //0x0040
	char unknown4[4];
	BYTE Unknown5;
	BYTE OwnerID; //0x004C
	char unknown6[40];
};//Size=0x0054
NPC Telekill

Code:
void NPCTeleKill( int TelekillNPC, LPDIRECT3DDEVICE9 pDevice )
{
	if( TelekillNPC == 1)
	{

		DWORD posptr, PositionY, dwBack;

		cGameClientShell *pGameClientShell = *(cGameClientShell **)GCS;
		cSFXMgr* SFXMgr = pGameClientShell->GetSFXMgr();
		GetPlayerByIndex = (lpGetPlayerByIndex)PlayerByIndex;
		unsigned long ulThis = *(unsigned long *)ClientInfoMgr;
		GetLocalPlayer = (lpGetLocalPlayer)LocalPlayer;

		posptr = (DWORD) GetModuleHandle("ClientFX.fxd");
		posptr += 0x6BF34;

		VirtualProtect( &PositionY, 4, PAGE_EXECUTE_READWRITE, &dwBack );
		memcpy( &PositionY, (VOID *) (posptr), 4 );
		VirtualProtect( &PositionY, 4, dwBack, &dwBack );

			if( ValidPointer(SFXMgr) )
			{
				for ( int i = 0; i < SFXMgr->SFXList[SFX_CHARACTER].Num; i++ )
				{
					cCharacterFX2* NPC = (cCharacterFX2*)SFXMgr->SFXList[SFX_CHARACTER].List[i];

					if( ValidPointer( NPC ) && ValidPointer( NPC->Object ))
					{
						if( NPC->IsPlayer )
							continue;

						D3DXVECTOR3 Pos, Screen;

						Pos	 = MyGetObjectMaxPos( (int*)NPC->Object );

						if( WorldToScreen2( pDevice, Pos, &Screen))
						{
							Sleep(1);
							*(FLOAT *) (PositionY + 0xC8) = NPC->Object->Pos.x + 25.0f;
						    *(FLOAT *) (PositionY + 0xCC) = NPC->Object->Pos.y;
						    *(FLOAT *) (PositionY + 0xD0) = NPC->Object->Pos.z;
					}
				}
			}
		}
	}
}


WeaponTeleport

Code:
void PickupESP( int DrawPickup, int DrawDistance, int WeaponTelePort, LPDIRECT3DDEVICE9 pDevice )
{
	if( DrawPickup ==  1 || DrawDistance == 1 || WeaponTelePort == 1 )
	{

		DWORD posptr, PositionY, dwBack;

		cGameClientShell *pGameClientShell = *(cGameClientShell **)GCS;
		cSFXMgr* SFXMgr = pGameClientShell->GetSFXMgr();
		GetPlayerByIndex = (lpGetPlayerByIndex)PlayerByIndex;
		unsigned long ulThis = *(unsigned long *)ClientInfoMgr;
		GetLocalPlayer = (lpGetLocalPlayer)LocalPlayer;

		posptr = (DWORD) GetModuleHandle("ClientFX.fxd");
		posptr += 0x6BF34;

		VirtualProtect( &PositionY, 4, PAGE_EXECUTE_READWRITE, &dwBack );
		memcpy( &PositionY, (VOID *) (posptr), 4 );
		VirtualProtect( &PositionY, 4, dwBack, &dwBack );

		if( ValidPointer( SFXMgr ) )
		{
			for ( int i = 0; i < SFXMgr->SFXList[SFX_PICKUP].Num; i++ )
			{

				cPlayerInfo *pLocal = GetLocalPlayer(ulThis);
				cPlayerInfo *pPlayer = GetPlayerByIndex(ulThis, i, 0);
				cBaseFX* Pickup = (cBaseFX*)SFXMgr->SFXList[SFX_PICKUP].List[i];

				if( ValidPointer( Pickup ) &&ValidPointer( Pickup->Object ) )
				{
					D3DXVECTOR3 Pos, Screen;

					Pos	 = MyGetObjectMaxPos( Pickup->Object );

					if( WorldToScreen2( pDevice, Pos, &Screen ) )
					{
						char Data2[256];
						float Dist = GetDistance( pLocal->Object->Pos, Pos );

						if (WeaponTelePort)
						{
							Sleep(1);
							*(FLOAT *) (PositionY + 0xC8) = Pickup->Pos.x;
						    *(FLOAT *) (PositionY + 0xCC) = Pickup->Pos.y;
						    *(FLOAT *) (PositionY + 0xD0) = Pickup->Pos.z;
						}

						if( DrawPickup == 1 && DrawDistance == 0 )
							PrintText("Weapon", (int)Screen.x, (int)Screen.y, Yellow, pFont);

						else if( DrawDistance == 1 && DrawPickup == 0 )
						{
							sprintf( Data2, "D: %.2f", Dist );
							PrintText(Data2, (int)Screen.x, (int)Screen.y,Yellow, pFont);
						}
						else if( DrawPickup == 1 && DrawDistance == 1 )
						{
							sprintf( Data2, "Weapon D: %.2f", Dist );
							PrintText(Data2, (int)Screen.x, (int)Screen.y,Yellow, pFont);
						}
					}
				}
			}
		}
	}
}


NPC ESP

Code:
void NPCESP( int name, int distance, int boxes, LPDIRECT3DDEVICE9 pDevice )
{
	if( name == 1 || distance == 1 || boxes == 1 )
	{
		CHAR CDistance[50];

		cGameClientShell *pGameClientShell = *(cGameClientShell **)GCS;
		cSFXMgr* SFXMgr = pGameClientShell->GetSFXMgr();
		GetPlayerByIndex = (lpGetPlayerByIndex)PlayerByIndex;
		unsigned long ulThis = *(unsigned long *)ClientInfoMgr;
		GetLocalPlayer = (lpGetLocalPlayer)LocalPlayer;

			if( ValidPointer(SFXMgr) )
			{
				for ( int i = 0; i < SFXMgr->SFXList[SFX_CHARACTER].Num; i++ )
				{
					cCharacterFX2* NPC = (cCharacterFX2*)SFXMgr->SFXList[SFX_CHARACTER].List[i];
					cPlayerInfo *pPlayer = GetPlayerByIndex(ulThis, i, 0);
			        cPlayerInfo *pLocal = GetLocalPlayer(ulThis);

					if( ValidPointer( NPC ) && ValidPointer( NPC->Object ))
					{
						if( NPC->IsPlayer )
							continue;

						D3DXVECTOR3 Pos, Screen;

						Pos	 = MyGetObjectMaxPos( (int*)NPC->Object );

						if( WorldToScreen2( pDevice, Pos, &Screen))
						{
							if (name)
								PrintText("NPC", Screen.x, Screen.y, Red, pFont);

							if (distance)
							{
								sprintf(CDistance, "%0.0f M", GetDistance(pLocal->Object->Pos, NPC->Object->Pos));
								PrintText2(CDistance, Screen.x, Screen.y + 33, Red, pFont);
							}

							if (boxes)
								// isso e com voces !
					}
				}
			}
		}
	}
}
Créditos

fatboy88, Gellin, NeoIII, Gordon, nubzgetkillz, We11ngton, Coder.Fail
Obrigado Cara
Essa das armas é muito boa, eu lembro de um função parecida no BlackCipher 6
Só me falta uma base para usar essas funções... Alguem me ajuda com isso?
Quote Originally Posted by NeoStryker View Post
Só me falta uma base para usar essas funções... Alguem me ajuda com isso?
O que não falta nesse site e em outros é base.
Quote Originally Posted by Megaloco View Post
O que não falta nesse site e em outros é base.
Eu literalmente já baixei todas daqui... O problema é que todas estão dando conexão encerrada Na verdade a base não é problema, eu sei criar uma simples, o problema é a detecção da memória que não permite eu fazer hook...
Quote Originally Posted by NeoStryker View Post
Eu literalmente já baixei todas daqui... O problema é que todas estão dando conexão encerrada Na verdade a base não é problema, eu sei criar uma simples, o problema é a detecção da memória que não permite eu fazer hook...
tirar o reset de sua base se for a whit e atualiza sua detours problema resolvido ...
Quote Originally Posted by _ReturnsBR_ View Post
tirar o reset de sua base se for a whit e atualiza sua detours problema resolvido ...
Estou usando present, minha base eu fiz do zero só olhei como fazia o present e estou usando aquela detours mais básica... Estou analisando e acho que encontrei onde é feita a verificação de memória e estou tentando burlar...
Quote Originally Posted by NeoStryker View Post
Estou usando present, minha base eu fiz do zero só olhei como fazia o present e estou usando aquela detours mais básica... Estou analisando e acho que encontrei onde é feita a verificação de memória e estou tentando burlar...
HWBP funciona até hoje aqui, tente:
http://www.mpgh.net/forum/showthread.php?t=863451
Quote Originally Posted by New - Hacker View Post


HWBP funciona até hoje aqui, tente:
http://www.mpgh.net/forum/showthread.php?t=863451
Aqui não estou conseguindo hookar o EndScene pela d3d9, está detectando.. devo estar fazendo alguma coisa errada --´

Quote Originally Posted by Megaloco View Post
Delícia de detour...
Delícia de detour ?
Quote Originally Posted by pDevice View Post

Na verdade isso não é uma detour.

- @Coder.Fail

A exatamente dois anos eu fiz o NPC Telekill e um pouco antes o Teleport to Weapon:

http://www.mpgh.net/forum/showthread.php?t=570233
http://www.mpgh.net/forum/showthread.php?t=564782

Não me lembro se postei o NPC Telekill mas o esquema é simples parecido com o Teleport to Weapon.
Eu me lembro, sou o HackerFail hu3
É bem parecido mesmo, no final de tudo você tem apenas de igualar as posições
Bom trabalho

//SetObjectPos: 0xD4
Quote Originally Posted by pDevice View Post
Originally Posted by Megaloco
Delícia de detour...
Na verdade isso não é uma detour.
KKKKKKKKKKK...fiz bagunça nas postagens...
Posts 1–15 of 25 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?