WarRock EU - Code Snippets

07/03/2011 18:08 .Eragon#4321
öhhm evtl. daran ?

Quote:
if( (m_Stride == 36) || (m_Stride == 32) || (m_Stride == 44))
36 und 32 brauchst du glaub ich nur :D
aber ich weiß grad nich was für was steht.
07/03/2011 19:07 .FreeZoNe™#4322
Hat wer einen Funktionierenden D3D9 Base für mich? oder kann mir mal Helfen meine wieder hin zu bekommen ? Skype : freezone109


AntiSPam:
Quote:
void norecoil ()
{
DWORD dwPlayerPtr = *(DWORD*)PlayerPointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+NoRecoil1) = 0;
*(float*)(dwPlayerPtr+NoRecoil2) = 0;
*(float*)(dwPlayerPtr+NoRecoil3) = 0;
}
}
07/03/2011 20:15 ~kau~#4323
Danke @.Eragon^^ Es funzt jetzt^^
bzw .. Wie kann man Pointen ohne debugger?
07/04/2011 00:47 *Pumio*#4324
was ist falsch

Code:
if(telekill)
 {
	 if(GetAsyncKeyState(VK_F5))
	{
  DWORD dwPlayerPointer = *(DWORD*)(PTR_PLAYERPOINTER);
  if(dwPlayerPointer != 0) 
  {
   for(int i = 0; i < 32; i++)
   {
    CPlayer* pPlayerA = g_pBase->player[i];  
    CPlayerInfo *pLocalInfoA = (CPlayerInfo*)((DWORD)(ADR_BASEPOINTER) + (g_pBase->local->index * OFS_STRUCT_SIZE));
    CPlayerInfo *pInfoA = (CPlayerInfo*) ((DWORD)(ADR_BASEPOINTER ) + (i*OFS_STRUCT_SIZE));
    
    if(pPlayerA && pInfoA)
    {
     if(pInfoA->team != pLocalInfoA->team && pInfoA->health > 0)
     {
      g_pBase->local->pos1 = pPlayerA->pos1;
      g_pBase->local->pos2 = pPlayerA->pos2;
      g_pBase->local->pos3 = pPlayerA->pos3;
     }
    }
   }
  }
 }
}
07/04/2011 13:06 ~kau~#4325
Nix ist falsch :D
bzw: wo hast du es denn stehen?
07/04/2011 14:03 *Pumio*#4326
also
void telekill ()

Beim HAckThread dan
telekill();


Aber es funkt nicht :/
07/04/2011 18:44 Büny :)#4327
Quote:
Originally Posted by *Pumio* View Post
also
void telekill ()

Beim HAckThread dan
telekill();


Aber es funkt nicht :/
eventuell fail structs oder basepointer addy o.ä. ?
07/04/2011 19:16 *Pumio*#4328
Ich denke mal Structur :/
07/04/2011 21:41 ~kau~#4329
Kann mir bitte einer bei Chams helfen :/
Bei mir werden nur die Köpfe und die Waffen farbig...
Code:
if(Items.Chams == 1)
    {
        if(Items.Color1 >0)
        if(m_Stride == 32)
        {
           pDevice->SetRenderState(D3DRS_FOGENABLE,false);
           pDevice->SetRenderState(D3DRS_SHADEMODE,D3DSHADE_FLAT);
		   if(Items.Color1==1) pDevice->SetTexture(1,White);
			if(Items.Color1==2) pDevice->SetTexture(1,Red);
			if(Items.Color1==3) pDevice->SetTexture(1,Green);
			if(Items.Color1==4) pDevice->SetTexture(1,Blue);
			if(Items.Color1==5) pDevice->SetTexture(1,Black);
			if(Items.Color1==6) pDevice->SetTexture(1,Purple);
			if(Items.Color1==7) pDevice->SetTexture(1,Grey);
			if(Items.Color1==8) pDevice->SetTexture(1,Yellow);
			if(Items.Color1==9) pDevice->SetTexture(1,Orange);
			if(Items.Color1==3) pDevice->SetRenderState(D3DRS_AMBIENT,GREEN);
			pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
			
        } 
	}
07/04/2011 21:49 Büny :)#4330
Quote:
Originally Posted by kauknochen View Post
Kann mir bitte einer bei Chams helfen :/
Bei mir werden nur die Köpfe und die Waffen farbig...
Code:
if(Items.Chams == 1)
    {
        if(Items.Color1 >0)
        if(m_Stride == 32)
        {
           pDevice->SetRenderState(D3DRS_FOGENABLE,false);
           pDevice->SetRenderState(D3DRS_SHADEMODE,D3DSHADE_FLAT);
		   if(Items.Color1==1) pDevice->SetTexture(1,White);
			if(Items.Color1==2) pDevice->SetTexture(1,Red);
			if(Items.Color1==3) pDevice->SetTexture(1,Green);
			if(Items.Color1==4) pDevice->SetTexture(1,Blue);
			if(Items.Color1==5) pDevice->SetTexture(1,Black);
			if(Items.Color1==6) pDevice->SetTexture(1,Purple);
			if(Items.Color1==7) pDevice->SetTexture(1,Grey);
			if(Items.Color1==8) pDevice->SetTexture(1,Yellow);
			if(Items.Color1==9) pDevice->SetTexture(1,Orange);
			if(Items.Color1==3) pDevice->SetRenderState(D3DRS_AMBIENT,GREEN);
			pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
			
        } 
	}
dann musse halt nochmal das gleiche machen nur mit Items.Color2 und Stride = 36
07/04/2011 22:27 ~kau~#4331
Danke aber jetzt färbt er immer noch nur kopf und waffen aber jetzt immer unterschiedlich oO
Code:
if(Items.Chams == 1)
    {
        if(m_Stride == 32 || m_Stride ==36)
        {
	
           pDevice->SetRenderState(D3DRS_FOGENABLE,false);
           pDevice->SetRenderState(D3DRS_SHADEMODE,D3DSHADE_FLAT);
		   if(Items.Color1==1) pDevice->SetTexture(1,White);
			if(Items.Color1==2) pDevice->SetTexture(1,Red);
			if(Items.Color1==3) pDevice->SetTexture(1,Green);
			if(Items.Color1==4) pDevice->SetTexture(1,Blue);
			if(Items.Color1==5) pDevice->SetTexture(1,Black);
			if(Items.Color1==6) pDevice->SetTexture(1,Purple);
			if(Items.Color1==7) pDevice->SetTexture(1,Grey);
			if(Items.Color1==8) pDevice->SetTexture(1,Yellow);
			if(Items.Color1==9) pDevice->SetTexture(1,Orange);
			pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
			if(Items.Color2==1) pDevice->SetTexture(1,White);
			if(Items.Color2==2) pDevice->SetTexture(1,Red);
			if(Items.Color2==3) pDevice->SetTexture(1,Green);
			if(Items.Color2==4) pDevice->SetTexture(1,Blue);
			if(Items.Color2==5) pDevice->SetTexture(1,Black);
			if(Items.Color2==6) pDevice->SetTexture(1,Purple);
			if(Items.Color2==7) pDevice->SetTexture(1,Grey);
			if(Items.Color2==8) pDevice->SetTexture(1,Yellow);
			if(Items.Color2==9) pDevice->SetTexture(1,Orange);		
        } 

	}
07/05/2011 00:33 sirosix³#4332
Hat wer Source für Wallhack und/oder Stamina für NoMenü ?
07/05/2011 09:41 Raz0r'#4333
Hat jemand die Source NoRecoil und NoSpread für mich? (Menu Hack)
07/05/2011 11:07 Rel0ad3dx3#4334
Quote:
Originally Posted by Raz0r' View Post
Hat jemand die Source NoRecoil und NoSpread für mich? (Menu Hack)
Zu faul zu suchen?

Diese beiden Source Codes wurden etliche male hier gepostet :rolleyes:
07/05/2011 12:45 .star™#4335
NoRecoil
Code:
			*(double*)(Ptr + NoRecoil1)=0;
			*(double*)(Ptr + NoRecoil2)=0;
			*(double*)(Ptr + NoRecoil3)=0;
NoSpread
Code:
*(double*)(ADR_NoSpread)=0;
@Kauknochen, versuch mal den Source
Code:
 if( (m_Stride == 36) || (m_Stride == 32) || (m_Stride == 44))
		{
			pDevice->SetRenderState(D3DRS_ZENABLE,false);

			if(Items.Color1==1){pDevice->SetTexture(0,Yellow);}

			pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, PrimitiveCount);

			pDevice->SetRenderState(D3DRS_ZENABLE, true);

			if(Items.Color2==1){pDevice->SetTexture(0,Yellow);}