WarRock EU - Code Snippets

06/19/2012 21:29 Faultyclones#7261
Quote:
Originally Posted by Instiinqzx3™ View Post
Machs mal so :

if(ExtraAmmo1 ==1)
{
*(float*)(PX_EXTRAAMMO1) = 0x1;
}
if(ExtraAmmo2 ==1)
{
*(float*)(PX_EXTRAAMMO2) = 0x1;
}


#define PX_EXTRAAMMO1 0x00A3059A
#define PX_EXTRAAMMO2 0x00A3059B

Edit: dein fehler liegt glb ich daran, dass du 2 mal ExtraAmmo2 hast... Du hast sogesagt ExtraAmmo1 vergessen.
Deins ist auch falsch..
float auf byte ?

if(ExtraAmmo)
{*(BYTE*)EXTRAAMMO_ADR=0x1;}
else
{*(BYTE*)EXTRAAMMO_ADR=0;}
06/19/2012 21:58 Instiinqzx3™#7262
Ja stimmt sry war falsche fun base :s xD

so ist es in meiner Base:

if(ExtraAmmo1 ==1)
{
*(BYTE*)(PX_EXTRAAMMO1) = 0x1;
}
if(ExtraAmmo2 ==1)
{
*(BYTE*)(PX_EXTRAAMMO2) = 0x1;
}
06/19/2012 22:11 Fischii26#7263
die definiere ich m_Stride und pDevice

danke leutz :)

und ist die Chams Source noch aktuell?

Quote:
{
if(fCHUMS == 1){
if(m_Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT,ORANGE);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 2){
if(m_Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT,BLUE);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}// "Orange","Blue","Green","White","Black",Yellow "
if(fCHUMS == 3){
if(m_Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT,GREEN);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 4){
if(m_Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT,WHITE);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 5){
if(m_Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT,BLACK);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS == 6){
if(m_Stride == 32){pDevice->SetRenderState(D3DRS_AMBIENT,YELLOW);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 1){
if(m_Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT,ORANGE);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 2){
if(m_Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT,BLUE);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 3){
if(m_Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT,GREEN);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 4){
if(m_Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT,WHITE);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 5){
if(m_Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT,BLACK);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}
if(fCHUMS1 == 6){
if(m_Stride == 36 ){pDevice->SetRenderState(D3DRS_AMBIENT,YELLOW);pDevice->SetRenderState(D3DRS_ZENABLE,false);}}}
06/19/2012 22:38 MilchMannx3#7264
Quote:
Originally Posted by Fischii26 View Post
die definiere ich m_Stride und pDevice

danke leutz :)

und ist die Chams Source noch aktuell?
Du musst die Source in die richtige stelle in der Base einfügen.


BT Extraammo:
if (CH_ExtraAmmo2==1)
{
*(BYTE*)(PX_ExtraAmmo1) = 0x1;
}

if (CH_ExtraAmmo2==1)
{
*(BYTE*)(PX_ExtraAmmo2) = 0x1;
}
So hatte ich das ja auch vorher, aber es geht nicht.

€: Ok habe den fehler gefunden, danke!
€²: Doch nicht xD
06/19/2012 22:43 Fischii26#7265
Quote:
Originally Posted by MilchMannx3 View Post
Du musst die Source in die richtige stelle in der Base einfügen.

und welches ist die richtige stelle? >.>
06/19/2012 23:47 Instiinqzx3™#7266
Quote:
Originally Posted by MilchMannx3 View Post
Du musst die Source in die richtige stelle in der Base einfügen.


BT Extraammo:
if (CH_ExtraAmmo2==1)
{
*(BYTE*)(PX_ExtraAmmo1) = 0x1;
}

if (CH_ExtraAmmo2==1)
{
*(BYTE*)(PX_ExtraAmmo2) = 0x1;
}
So hatte ich das ja auch vorher, aber es geht nicht.

€: Ok habe den fehler gefunden, danke!
€²: Doch nicht xD
Du definierst 2 mal CH_ExtraAmmo2 mach mal bei dem 1sten CH_ExtraAmmo1... oder gib mir mal deine base oder lass uns es morgen über TV machen :D
06/19/2012 23:48 xBioK1ngz#7267
Code:
VOID WINAPI Engine_SetRenderState(D3DRENDERSTATETYPE State,DWORD Value)
{
	__asm
	{
		MOV ESI,DWORD PTR DS:[0xA30544]
		MOV EAX,DWORD PTR DS:[ESI+0x2B930]
		MOV ECX,DWORD PTR DS:[EAX]
		MOV EDX,DWORD PTR DS:[ECX+0xE4]
		PUSH Value
		PUSH State
		PUSH EAX
		CALL EDX
	}
}
Code:
VOID WINAPI Engine_SetTexture(DWORD Stage,IDirect3DBaseTexture9* pTexture)
{
	__asm
	{
		MOV ESI,DWORD PTR DS:[0xA30544]
		MOV EAX,DWORD PTR DS:[ESI+0x2B930]
		MOV ECX,DWORD PTR DS:[EAX]
		MOV EDX,DWORD PTR DS:[ECX+0x104]
		PUSH pTexture
		PUSH Stage
		PUSH EAX
		CALL EDX
	}
}
Code:
VOID WINAPI Engine_DrawIndexedPrimitive(D3DPRIMITIVETYPE D3DPType,INT BaseVertexIndex,UINT MinIndex,UINT NumVertices,UINT StartIndex,UINT PrimitiveCount)
{
	__asm
	{
		MOV ESI,DWORD PTR DS:[0xA30544]
		MOV EAX,DWORD PTR DS:[ESI+0x2B930]
		MOV ECX,DWORD PTR DS:[EAX]
		MOV EDX,DWORD PTR DS:[ECX+0x148]
		PUSH PrimitiveCount
		PUSH StartIndex
		PUSH NumVertices
		PUSH MinIndex
		PUSH BaseVertexIndex
		PUSH D3DPType
		PUSH EAX
		CALL EDX
	}
}
Code:
HRESULT WINAPI Engine_GetStreamSource(UINT StreamNumber,IDirect3DVertexBuffer9** ppStreamData,UINT* OffsetInBytes,UINT* pStride)
{
	DWORD dwReturn;
	__asm
	{
		MOV ESI,DWORD PTR DS:[0xA30544]
		MOV EAX,DWORD PTR DS:[ESI+0x2B930]
		MOV ECX,DWORD PTR DS:[EAX]
		MOV EDX,DWORD PTR DS:[ECX+0x194]
		PUSH pStride
		PUSH OffsetInBytes
		PUSH ppStreamData
		PUSH StreamNumber
		PUSH EAX
		CALL EDX
		TEST EAX,EAX
		JE OK
		MOV dwReturn,1//S_FALSE
OK:
		MOV dwReturn,0//S_OK
	}
	return ( dwReturn );
}
Ich weiß nicht ob das was groß bringt .. hatte Langeweile ..
06/20/2012 07:11 Chown¡¡qhtz#7268
Quote:
Originally Posted by Fischii26 View Post
die definiere ich m_Stride und pDevice

danke leutz :)

und ist die Chams Source noch aktuell?
UINT m_Stride;

z.B. DWORD WINAPI PresentSource(LPDIRECT3DDEVICE9 pDevice)
{
//source
}
Du brauchst nen anderen Hook ;)
06/20/2012 13:01 Fischii26#7269
Quote:
Originally Posted by Chown¡¡qhtz View Post
UINT m_Stride;

z.B. DWORD WINAPI PresentSource(LPDIRECT3DDEVICE9 pDevice)
{
//source
}
Du brauchst nen anderen Hook ;)
Ich brauch ne neue Base o.O Aus irgendeinem Grund funktionieren die neuen, dazu geaddeten Source Codes nicht. Kann sich das mal i-ein Coder ansehen? Ich weiß nicht woran das liegen kann...

Und damit mein Post nicht als Spam angegriffen wird poste ich mal das ;D


if (CH_FastAll ==1)
{
*(float*)ADR_FastAmmo = 100.0f;
*(float*)ADR_FastFlag = 10.0f;
*(float*)ADR_FastHealth = 100.0f;
*(float*)ADR_FastRepair = 100.0f;
}}
{
if(CH_teleport == 1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
PositionX = *(float*)(dwPlayerPtr + OFS_X);
PositionY = *(float*)(dwPlayerPtr + OFS_Y);
PositionZ = *(float*)(dwPlayerPtr + OFS_Z);
if(GetAsyncKeyState(VK_F10)&1){
Telx = PositionX;
Tely = PositionY;
Telz = PositionZ;}
if(GetAsyncKeyState(VK_F11)&1){
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
bool bChangedValue = true;
int oldValue;
06/20/2012 15:23 ichtrinknsektvielleicht#7270
Req:
Auto ready / start [not keyhook & mouse event].
Please a tested version!
06/20/2012 18:07 Døмe™#7271
Req:
ZeroDelay
06/20/2012 18:10 CyberVeezy :)#7272

PartyProgrammBypass
Code:
VOID PartyProgrammBypass()
{
	while (true)
	{
		DWORD PlayerPointer = *( DWORD )* ADR_PLAYERPOINTER ;
                DWORD ServerPointer = *( DWORD )* ADR_SERVERPOINTER ;
		if(  PlayerPointer && ServerPointer !=0  )
		{
		*( BYTE *)(  ServerPointer + OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX1  ) = 0  ;
		*( BYTE *)(  ServerPointer + OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX2  ) = 0  ;
}}}
Addys:
#define OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX1 0x360
#define OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX2 0x361

Info: If Party Programm comes, press ESC and you can login again!
Credits:
xCrazia ( Source, Addys )
CyberRazzer ( How to find Functions )
06/20/2012 18:36 xRoute66x#7273
Quote:
Originally Posted by xx1dome1x1 View Post
Req:
ZeroDelay
Code:
if (CH_NoDelay==1)
{
if(GetAsyncKeyState(VK_LBUTTON))
{
*(DWORD*)(pp+OFS_NoDelay) = -1;
}
}
06/20/2012 19:05 cheatslaw#7274
Quote:
Originally Posted by CyberVeezy :) View Post

PartyProgrammBypass
Code:
VOID PartyProgrammBypass()
{
	while (true)
	{
		DWORD PlayerPointer =  *(DWORD*)ADR_PLAYERPOINTER;
		DWORD ServerPointer = *(DWORD*)ADR_SERVERPOINTER;
		if(PlayerPointer && ServerPointer !=0)
		{
		*(BYTE*)(OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX1) = 0x0;
		*(BYTE*)(OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX2) = 0x0;
}}}
Addys:
#define OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX1 0x360
#define OFS_BLOCK_PARTYPROGRAMM_MESSAGE_BOX2 0x361

Info: If Party Programm comes, press ESC and you can login again!
Credits:
xCrazia ( Source, Addys )
CyberRazzer ( How to find Functions )
That won't do anything, it just disables the messagebox...
It gets called to that position, but its not where its detecting...
06/20/2012 19:11 CyberVeezy :)#7275
Quote:
Originally Posted by cheatslaw View Post
That won't do anything, it just disables the messagebox...
It gets called to that position, but its not where its detecting...
I know, the function is disabling the messagebox :D