WarRock EU - Code Snippets

06/02/2011 15:20 .Son Goku#3706
Quote:
Originally Posted by _de4dj0k3r™ View Post
ALTER WAS SOLL DER DRECK MACH DAS SOFORT WIEDER WEG
BIS DU VON ALLEN GUTEN GEISTERN VERLASSEN
JETZ HAST DU DAZU BEIGETRAGEN DAS DER BYPASS SCHNELLER GEPATCHT WIRD !
falls du es nicht weist der Bypass wird in 1erwoche gepatcht nun wird er evt heute oder morgen dt und dan patched nur wegen
dich kann keiner leiden niemand mag dich und dan bist du noch so frech und tuhst allen schaden.... :facepalm:

echt jetzt reichts sag bb zu deinem pc
Ok das Patchen ist sowieso also wird sowieso gepatcht weil es eig kein Bypass ist sondern ein Bug von ehsvc. Das ist auch nichts schlimmes wenns gepatcht wird aber er leeched selber und verursacht dadurch auch noch ne größere kette von leechern. -.-
06/02/2011 23:13 nesim#3707
Quote:
Originally Posted by CyberRazzer View Post
#define ADR_OPK_1 0x00502673
#define ADR_OPK_2 0x0050267D
#define ADR_OPK_3 0x00502683

void WriteAsm( void* pxAddress, BYTE *code, int size )
{
unsigned long Protection;
VirtualProtect((void*)pxAddress, size, PAGE_READWRITE, &Protection);
memcpy((void*)pxAddress, (const void*)code, size);
VirtualProtect((void*)pxAddress, size, Protection, 0);
}
BYTE ONOPK[] = {0x89, 0xa1};
if (OPK==1)
{
WriteAsm((void*)ADR_OPK_1,ONOPK,6);
WriteAsm((void*)ADR_OPK_2,ONOPK,6);
WriteAsm((void*)ADR_OPK_3,ONOPK,6);
}

:S


#define ADR_OPK_1 0x00502673
#define ADR_OPK_2 0x0050267D
#define ADR_OPK_3 0x00502683

void WriteAsm( void* pxAddress, //BYTE *code, int size )
{
unsigned long Protection;
//VirtualProtect((void*)pxAddress, size, PAGE_READWRITE, &Protection);
//memcpy((void*)pxAddress, (const void*)code, size);
//VirtualProtect((void*)pxAddress, size, Protection, 0);
}
//BYTE ONOPK[] = {0x89, 0xa1};
if (OPK==1)
{
WriteAsm((void*)ADR_OPK_1,ONOPK,6);
WriteAsm((void*)ADR_OPK_2,ONOPK,6);
WriteAsm((void*)ADR_OPK_3,ONOPK,6);
}


so ist es richtig :D

du hast vergessen sie zu definieren.
06/03/2011 00:08 .PrAyEr™#3708
hier die Nfd source für euch!

Code:
if (CH_NoFallDamage==1){
		 if(dwPlayerPointer != 0){
		 *(float*)(dwPlayerPointer+OFS_NFD) = -90000000009008899990000000000999990000.0f;} 
}
06/03/2011 00:32 .Son Goku#3709
Quote:
Originally Posted by .PrAyEr™ View Post
hier die Nfd source für euch!

Code:
if (CH_NoFallDamage==1){
		 if(dwPlayerPointer != 0){
		 *(float*)(dwPlayerPointer+OFS_NFD) = -90000000009008899990000000000999990000.0f;} 
}
Warum so unnötig lang? Statt einfach -2000 oder so zu machen
06/03/2011 00:51 .PrAyEr™#3710
Quote:
Originally Posted by .Son Goku View Post
Warum so unnötig lang? Statt einfach -2000 oder so zu machen
nur so xD sicher ist sicher ich könnte auch -2000 machen aber ich wollte einfach soviel ^^
06/03/2011 01:06 .Son Goku#3711
Quote:
Originally Posted by .PrAyEr™ View Post
nur so xD sicher ist sicher ich könnte auch -2000 machen aber ich wollte einfach soviel ^^
Naja jeder wie er will halt, aber ich finds halt einfach unnötig :P
06/03/2011 01:12 .PrAyEr™#3712
Quote:
Originally Posted by .PrAyEr™ View Post
hier die Nfd source für euch!

Code:
if (CH_NoFallDamage==1){
		 if(dwPlayerPointer != 0){
		 *(float*)(dwPlayerPointer+OFS_NFD) = -2000.0f;} 
}
wie gesagt ich könnte das auch so machen aber jeder wie er es will :)
06/03/2011 13:00 FreeZoNe™#3713
Hier möchte ich euch mal Drei Source Code geben viel Spaß

FLASH COLOR SOURCE
PHP Code:
////////////////// FLASH COLOR BEGIN \\\\\\\\\\\\\\\\*
if (flashcolor)
{
        if(
NumVertices == 103)
        {
                if(
flashcolor)pDevice->SetRenderState(D3DRS_ZENABLE,false);
                if(
flashcolor)pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                if(
flashcolor==1)pDevice->SetTexture(0Red);
                if(
flashcolor==2)pDevice->SetTexture(0Yellow);
                if(
flashcolor==3)pDevice->SetTexture(0Orange);
                if(
flashcolor==4)pDevice->SetTexture(0Green);
                if(
flashcolor==5)pDevice->SetTexture(0Blue);
                if(
flashcolor==6)pDevice->SetTexture(0White);
                if(
flashcolor==7)pDevice->SetTexture(0Purple);
        }
}
////////////////// FLASH COLOR END \\\\\\\\\\\\\\\\* 

M14 COLOR SOURCE

PHP Code:
////////////////// M14 COLOR BEGIN \\\\\\\\\\\\\\\\*
if (m14color)
{
        if(
NumVertices == 101)
        {
                if(
m14color)pDevice->SetRenderState(D3DRS_ZENABLE,false);
                if(
m14color)pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                if(
m14color==1)pDevice->SetTexture(0Red);
                if(
m14color==2)pDevice->SetTexture(0Yellow);
                if(
m14color==3)pDevice->SetTexture(0Orange);
                if(
m14color==4)pDevice->SetTexture(0Green);
                if(
m14color==5)pDevice->SetTexture(0Blue);
                if(
m14color==6)pDevice->SetTexture(0White);
                if(
m14color==7)pDevice->SetTexture(0Purple);
        }
}
////////////////// M14 COLOR END \\\\\\\\\\\\\\\\* 
NADE COLOR BEGIN

PHP Code:
////////////////// NADE COLOR BEGIN \\\\\\\\\\\\\\\\*
if (nadecolor)
{
        if(
NumVertices == 151)
        {
                if(
nadecolor)pDevice->SetRenderState(D3DRS_ZENABLE,false);
                if(
nadecolor)pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                if(
nadecolor==1)pDevice->SetTexture(0Red);
                if(
nadecolor==2)pDevice->SetTexture(0Yellow);
                if(
nadecolor==3)pDevice->SetTexture(0Orange);
                if(
nadecolor==4)pDevice->SetTexture(0Green);
                if(
nadecolor==5)pDevice->SetTexture(0Blue);
                if(
nadecolor==6)pDevice->SetTexture(0White);
                if(
nadecolor==7)pDevice->SetTexture(0Purple);
        }
}
////////////////// NADE COLOR END \\\\\\\\\\\\\\\\\\\* 
06/03/2011 13:05 xxfabbelxx#3714
Quote:
Originally Posted by FreeZoNe™ View Post
Hier möchte ich euch mal Drei Source Code geben viel Spaß

FLASH COLOR SOURCE
PHP Code:
////////////////// FLASH COLOR BEGIN \\\\\\\\\\\\\\\\*
if (flashcolor)
{
        if(
NumVertices == 103)
        {
                if(
flashcolor)pDevice->SetRenderState(D3DRS_ZENABLE,false);
                if(
flashcolor)pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                if(
flashcolor==1)pDevice->SetTexture(0Red);
                if(
flashcolor==2)pDevice->SetTexture(0Yellow);
                if(
flashcolor==3)pDevice->SetTexture(0Orange);
                if(
flashcolor==4)pDevice->SetTexture(0Green);
                if(
flashcolor==5)pDevice->SetTexture(0Blue);
                if(
flashcolor==6)pDevice->SetTexture(0White);
                if(
flashcolor==7)pDevice->SetTexture(0Purple);
        }
}
////////////////// FLASH COLOR END \\\\\\\\\\\\\\\\* 

M14 COLOR SOURCE

PHP Code:
////////////////// M14 COLOR BEGIN \\\\\\\\\\\\\\\\*
if (m14color)
{
        if(
NumVertices == 101)
        {
                if(
m14color)pDevice->SetRenderState(D3DRS_ZENABLE,false);
                if(
m14color)pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                if(
m14color==1)pDevice->SetTexture(0Red);
                if(
m14color==2)pDevice->SetTexture(0Yellow);
                if(
m14color==3)pDevice->SetTexture(0Orange);
                if(
m14color==4)pDevice->SetTexture(0Green);
                if(
m14color==5)pDevice->SetTexture(0Blue);
                if(
m14color==6)pDevice->SetTexture(0White);
                if(
m14color==7)pDevice->SetTexture(0Purple);
        }
}
////////////////// M14 COLOR END \\\\\\\\\\\\\\\\* 
NADE COLOR BEGIN

PHP Code:
////////////////// NADE COLOR BEGIN \\\\\\\\\\\\\\\\*
if (nadecolor)
{
        if(
NumVertices == 151)
        {
                if(
nadecolor)pDevice->SetRenderState(D3DRS_ZENABLE,false);
                if(
nadecolor)pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
                if(
nadecolor==1)pDevice->SetTexture(0Red);
                if(
nadecolor==2)pDevice->SetTexture(0Yellow);
                if(
nadecolor==3)pDevice->SetTexture(0Orange);
                if(
nadecolor==4)pDevice->SetTexture(0Green);
                if(
nadecolor==5)pDevice->SetTexture(0Blue);
                if(
nadecolor==6)pDevice->SetTexture(0White);
                if(
nadecolor==7)pDevice->SetTexture(0Purple);
        }
}
////////////////// NADE COLOR END \\\\\\\\\\\\\\\\\\\* 
Also sowas wie Mine ud Nadegps oder was?
06/03/2011 13:16 R3d~F!st#3715
Nope Mine/nade CHAMS
but use this :P

Code:
#define Players (/*bottom part of hands*/NumVertices==391 || /*hands*/NumVertices==842 || /*Players*/NumVertices==1176 || primCount==1536)
#define Hummee (/*hummee gun*/NumVertices==342|| /*hummee Windows*/primCount==37 || /*hummee body*/primCount==480 || /*hummee body*/NumVertices==2339 || /*hummee front*/NumVertices==2816 || primCount==2119)
#define Smoke ((m_Stride == 24 && NumVertices == 6 && primCount == 4 || m_Stride ==24 && NumVertices == 80 && primCount == 40))
#define M14Mine ((m_Stride == 44 && NumVertices ==200 && primCount == 353 || m_Stride ==44 && NumVertices == 162 && primCount == 310 || m_Stride == 44 && NumVertices == 101 && primCount == 167))
#define FlashMine ((m_Stride == 44 && NumVertices == 201 && primCount == 310 || m_Stride == 44 && NumVertices == 142 && primCount == 211 || m_Stride ==44 && NumVertices == 103 && primCount == 170))
Usage:
Code:
if(/*for example*/Players)
{
//Chams
}
06/03/2011 13:36 Neqqa™#3716
@FreeZoNe™, nice du kannst C&P, das ist die Source von GreenPeace also give Credits :facepalm:
06/03/2011 17:38 DashWar#3717
hier einmal eine langeweile aktion :D


es ist für die etwas schreib faulen :D
InGame ist eins aktiv und outgame halt das andere
viel Spass
gebt credits

Code:
DWORD ADR_Playerpointer = (DWORD)0x0C7C738;
DWORD ADR_Serverpointer = (DWORD)0x0B770B0;
bool Unloc;

DWORD Ptr(DWORD Address,int Value)
{
	DWORD PPtr = *(DWORD*)ADR_Playerpointer;
	DWORD SPtr = *(DWORD*)ADR_Serverpointer;
	if(PPtr!=0)								
	{	
		Unloc = true;
		if(Unloc==true)
		{
			*(float*)(PPtr + Address)=Value;
			return true;
		}
	}
	if(SPtr!=0)
	{
		Unloc = false;
		if(Unloc==false)
		{
			*(long*)(SPtr + Address)=Value;
			return false;
		}
	}
	return false;
}

DWORD Hacks(LPVOID)
{
	for(;;)
	{
		if(GetAsyncKeyState(VK_CONTROL))
		{
			Ptr(OFS_Z,1000);
		}
		Ptr(OFS_Slot7,2);
	}
	return false;
}
06/03/2011 17:50 SubZerom_#3718
Quote:
Originally Posted by DashWar View Post
hier einmal eine langeweile aktion :D


es ist für die etwas schreib faulen :D
InGame ist eins aktiv und outgame halt das andere
viel Spass
gebt credits

Code:
DWORD ADR_Playerpointer = (DWORD)0x0C7C738;
DWORD ADR_Serverpointer = (DWORD)0x0B770B0;
bool Unloc;

DWORD Ptr(DWORD Address,int Value)
{
	DWORD PPtr = *(DWORD*)ADR_Playerpointer;
	DWORD SPtr = *(DWORD*)ADR_Serverpointer;
	if(PPtr!=0)								
	{	
		Unloc = true;
		if(Unloc==true)
		{
			*(float*)(PPtr + Address)=Value;
			return true;
		}
	}
	if(SPtr!=0)
	{
		Unloc = false;
		if(Unloc==false)
		{
			*(long*)(SPtr + Address)=Value;
			return false;
		}
	}
	return false;
}

DWORD Hacks(LPVOID)
{
	for(;;)
	{
		if(GetAsyncKeyState(VK_CONTROL))
		{
			Ptr(OFS_Z,1000);
		}
		Ptr(OFS_Slot7,2);
	}
	return false;
}
Addys Outdated+Type-Casting
06/03/2011 17:57 DashWar#3719
naja das ist ja was formales und cih weiss erst seit ner minute vom update
06/03/2011 22:04 .PrAyEr™#3720
Hier nobounds für euch!

Code:
if (CH_Bounds==1){
	          *(int*)(ADR_NoBounds1) = 0;
	          *(int*)(ADR_NoBounds2) = 0;
                   *(int*)(ADR_NoBounds3) = 0;
}