Originally Posted by
stryku
Ok. Sorry, i had busy weekend. This is my example how i do that:
Code:
DWORD idOffset = 0x0, blStep = 0x0, adrBlStart = 0x550008 + adresy.adrBase; //adrBase is base address of tibia
int id;
for(int i = 0; i < 1300; i++)
{
ReadProcessMemory(tibia.uchwytProcesu, (LPCVOID)(adrBlStart + blStep + idOffset), &id, sizeof(int);
if(id != 0)
cout<<id<<"\n";
blStep += 0xB0;
}
and that isn't work. Idk why?
This is in c++
PHP Code:
int main(int argc, char *argv[])
{
HWND hHWND = FindWindow("TibiaClient", NULL);
DWORD processId;
GetWindowThreadProcessId(hHWND, &processId);
HANDLE process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);
DWORD idOffset = 0x0,
blStep = 0xB0,
blMaxCreatures = 1300,
adrBlStart = 0x950008,
blEnd = adrBlStart + (blStep * blMaxCreatures);
int id;
for (int i = (int)adrBlStart; i <= blEnd; i += (int)blStep)
{
ReadProcessMemory(process, (PCVOID)(i + idOffset), &id, 4, NULL);
if(id != 0)
cout<<id<<"\n";
}
CloseHandle(process);
system("PAUSE");
return EXIT_SUCCESS;
}