Offsets 3.3.5(12340)
Hi anyone can help me ?
if find a offset for wow.exe(EU),
Player Life in group, and PET
my Offsets and function:
Code:
//define
DWORD GetDLL(char* DllName, DWORD tPid);
DWORD GetPidByName(char *szProcName);
//READ EXE
DWORD GetPidByName(char *szProcName){
PROCESSENTRY32 pe = {sizeof(PROCESSENTRY32)};
HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if(hSnap != INVALID_HANDLE_VALUE)
{
if(Process32First(hSnap, &pe))
{
do
{
if(strcmpi(pe.szExeFile, szProcName) == 0)
{
dwPID = pe.th32ProcessID;
break;
}
}
while(Process32Next(hSnap, &pe));
}
CloseHandle(hSnap);
}
return dwPID;
}
//if u need memory of DLL
DWORD GetDLL(char* DllName, DWORD tPid){
HANDLE snapMod;
MODULEENTRY32 me32;
if (tPid == 0) return 0;
snapMod = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, tPid);
me32.dwSize = sizeof(MODULEENTRY32);
if (Module32First(snapMod, &me32)){
do{
if (strcmp(DllName,me32.szModule) == 0){
CloseHandle(snapMod);
return (DWORD) me32.modBaseAddr;
}
}while(Module32Next(snapMod,&me32));
}
CloseHandle(snapMod);
return 0;
}
exemple of use:
Code:
if(GetPidByName("Wow.exe")!=0)
{wow = GetDLL("Wow.exe", dwPID);DLL = GetDLL("Battle.net.dll", dwPID);}
else{exit(0);}
//wow = memory adress wow.exe
//DLL = memory adress Battle.net.dll
My offset and use with code:
Code:
int adresseMyLife=0x008D87A8;//(+wow.exe)
int adresseOffsetMyLife1=0x34;
int adresseOffsetMyLife2=0x24;
int adresseOffsetMyLife3=0x6C;
int adresseOffsetMyLife4=0x64;
int adresseMyLifeMax=0x68;
int adresseMyLifeMin=0x48;
int adresseHowManyInGroup=0x007D1998;(+wow.exe)
h_Read_Process = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, dwPID);
phandle = OpenProcess(PROCESS_ALL_ACCESS, 0, dwPID);
//tempon is a buffer in french :D
ReadProcessMemory(h_Read_Process,(LPCVOID)(wow+adresseMyLife), &tempon, sizeof(int), NULL);
ReadProcessMemory(h_Read_Process,(LPCVOID)(tempon+adresseOffsetMyLife1), &tempon, sizeof(int), NULL);
ReadProcessMemory(h_Read_Process,(LPCVOID)(tempon+adresseOffsetMyLife2), &tempon, sizeof(int), NULL);
ReadProcessMemory(h_Read_Process,(LPCVOID)(tempon+adresseOffsetMyLife3), &tempon, sizeof(int), NULL);
ReadProcessMemory(h_Read_Process,(LPCVOID)(tempon+adresseOffsetMyLife4), &tempon, sizeof(int), NULL);
ReadProcessMemory(h_Read_Process,(LPCVOID)(tempon+adresseMyLifeMin), &moiVieMin, sizeof(int), NULL);
ReadProcessMemory(h_Read_Process,(LPCVOID)(tempon+adresseMyLifeMax), &moiVieMax, sizeof(int), NULL);
if(moiVieMax==0||moiVieMin<0){moiVie=0;}else{moiVie=((float)moiVieMin/(float)moiVieMax*100);}//moiVie = % off life.
//HOW MANY IN GROUP 1? 2? 3? 4? (whiout PET)
ReadProcessMemory(h_Read_Process,(LPCVOID)(wow+adresseHowManyInGroup), &nombreJoueur, sizeof(int), NULL);
// result = nombreJoueur;
for the name:
Code:
//define
CHAR MEMOIRE_LireTexteASCII(DWORD u32_adresse, CHAR *pu32_data, UINT32 u32_tailleMax);
//function
CHAR MEMOIRE_LireTexteASCII(DWORD u32_adresse, CHAR *pu32_data, UINT32 u32_tailleMax) {
if(ReadProcessMemory(h_Read_Process,(LPCVOID)u32_adresse, &pu32_data[0], u32_tailleMax, NULL) == 0) return -1;
return 0;
}
//USE
MEMOIRE_LireTexteASCII(wow+0x00879D18,monNom,32);
plz help me for find life of group and pet, i'm not a pro THANKS !!!!
(sry i have a bad english :x)