WarRock EU - Code Snippets

03/03/2012 22:51 GolTrend0km#6526
fast spawn cqc?
03/03/2012 23:53 AdrenalinaPL#6527
@request
ESP struct
03/03/2012 23:56 alfmkwndk#6528
Help

chams party program detect

Español:
ayudenmen me aparece party program detect

Code:
#pragma once 
#ifndef __CMEMORYPATCH_H__ 
#define __CMEMORYPATCH_H__ 

#include <windows.h> 

template <typename T> 
class cMemPatch 
{ 
private: 
unsigned long Address; 
T OffValue; 
T OnValue; 
int PatchStatus; 
int OffValueSaved; 

enum PATCHSTATUS 
{ 
NORMAL, 
PATCHED 
}; 

bool SaveOffValue(void); 

public: 
cMemPatch(void); 
cMemPatch(unsigned long ADR, T VAL); 

void Patch(void); 
void Restore(void); 
}; 

template <typename T> 
cMemPatch<T>::cMemPatch(void) 
{ 
} 

template <typename T> 
cMemPatch<T>::cMemPatch(unsigned long ADR, T VAL) 
{ 
this->Address = ADR; 
this->OnValue = VAL; 
this->PatchStatus = NORMAL; 
this->OffValueSaved = false; 
} 

template <typename T> 
void cMemPatch<T>::Patch() 
{ 
if (this->PatchStatus == NORMAL) 
{ 
if (this->OffValueSaved == false) 
{ 
if (!this->SaveOffValue()) 
return; 
} 
else 
{ 
//*(T*)(this->Address) = this->OnValue; 
unsigned long size;
VirtualProtect((void*)this->Address, sizeof(this->OnValue), PAGE_READWRITE, &size);
memcpy((void*)this->Address, &this->OnValue , sizeof(this->OnValue));
VirtualProtect((void*)this->Address, sizeof(this->OnValue), size, 0);
this->PatchStatus = PATCHED; 
} 
} 
} 

template <typename T> 
void cMemPatch<T>::Restore() 
{ 
if (this->PatchStatus == PATCHED) 
{ 
*(T*)(this->Address) = this->OffValue; 
this->PatchStatus = NORMAL; 
} 
} 

template <typename T> 
bool cMemPatch<T>::SaveOffValue() 
{ 
if (IsBadReadPtr((void*)(this->Address), sizeof(T))) 
return false; 
else 
{ 
this->OffValue = *(T*)(this->Address); 
this->OffValueSaved = true; 
return true; 
} 
}
#endif
03/04/2012 13:29 R3d_L!n3#6529
Quote:
Originally Posted by GolTrend0km View Post
fast spawn cqc?
Code:
#define ADR_NoSpawn1                                  0x00B1B2A4
#define ADR_NoSpawn2                                  0x00B292A0

	if(RedLine.rServer.RL_SpawnNow >= 1)
	{

		*(float*)ADR_NoSpawn1 = 0;
		*(float*)ADR_NoSpawn2 = 0;

	}
Quote:
Originally Posted by alfmkwndk View Post
Help

chams party program detect

....
Try find new way to hook ur dip
03/04/2012 16:22 SkinnLaw#6530
updated structs pls + telekill
03/04/2012 20:40 G1-Creadits-Sale#6531
weopan binder addy+source
03/04/2012 21:18 xBioK1ngz#6532
GetTickCount - 0x81B174
LoadLibrary - 0x81B164
GetLastError - 0x81B190
QueryPerformanceCounter - 0x81B1E8
QueryPerformanceFrequency - 0x81B1DC


Beispiel:
Code:
VOID WINAPIV EngineLoadLibrary(LPCSTR lpLibrary)
{
    __asm
    {
        PUSH [ lpLibrary ]
        CALL DWORD PTR DS: [ 0x81B164 ]
        ADD ESP,0x4
    }
}
03/04/2012 22:58 Raz9r#6533
Quote:
Originally Posted by xBioK1ngz View Post
GetTickCount - 0x81B174
LoadLibrary - 0x81B164
GetLastError - 0x81B190
QueryPerformanceCounter - 0x81B1E8
QueryPerformanceFrequency - 0x81B1DC


Beispiel:
Code:
VOID WINAPIV EngineLoadLibrary(LPCSTR lpLibrary)
{
    __asm
    {
        PUSH [ lpLibrary ]
        CALL DWORD PTR DS: [ 0x81B164 ]
        ADD ESP,0x4
    }
}
Die Funktion LoadLibrary ist im Modul Kernel32.dll, dass heißt, ein Aufruf von der Funktion durch das gelinkte Modul bewirkt genau das, was deine Funktion auch macht, mit nur einer kleinen Abweichung: Dein Code führt zum "Stack Overrun". Du erhöhst den Stack Pointer um 4 nach dem Aufruf der Funktion in dem Irrtum, das hier tun zu müssen. Der Microsoft Befehlsdokumentation zufolge hat die Funktion das Scope stdcall, was bedeutet, dass die Funktion den Stack Pointer selbst erhöht und du das nicht machen musst. Durch deine Funktion würde WarRock sich also mit der Zeit beenden, wenn du sie zu oft aufrufst.
03/05/2012 19:04 avast!#6534
was bedeutet dieser fehler? :)
fatal error C1083: Datei (Include) kann nicht geöffnet werden: "d3dx9.h": No such file or directory
1> Code wird generiert...
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

kann wer helfen grüße :)
03/05/2012 19:06 Stephack#6535
Ja du must erst eine form erstellen, die d3dx9.h heißt :D
03/05/2012 19:12 avast!#6536
Quote:
Originally Posted by Stephack View Post
Ja du must erst eine form erstellen, die d3dx9.h heißt :D
geht trotzdem nicht.-. :D
03/05/2012 19:15 __BuRn3R#6537
Quote:
Originally Posted by .Facebook View Post
geht trotzdem nicht.-. :D
Lade dir DirectX SDKs runter.
03/05/2012 19:19 avast!#6538
Quote:
Originally Posted by _BuRn3R_ View Post
Lade dir DirectX SDKs runter.
der fehler kommt immer noch.
03/05/2012 20:01 hero9910#6539
kann mir einer bei sprite menü helfen?
03/05/2012 20:43 __BuRn3R#6540
Quote:
Originally Posted by hero9910 View Post
kann mir einer bei sprite menü helfen?
Meinst Du das Sprite Design oder die Sprite-Funktion in der Base einzubauen?