Anyhow, I've been looking for a program to check my current hp and verifies if I've been hit or not..
I couldn't find one, so I made my own using Windows.h library and going inside the process memory area.
I've managed to find the address of the current hp, somehow it's always the same..
That would be wonderful, BUT.. if I close CO with TerminateProcess(); and run again, that address will always return 0 to me. Even if I look on TSearch again for the current hp, it just won't show, I've tried many times.
So.. do anyone have any idea on how to get my current hp?
The whole idea of this thing is to get rid of mine pkers (who dont 1-hit kill)
I'll post my sourcecode, it does work for me (but you have to add the memory address of your current HP manualy)
Plus, it's not very self-explanatory for those who don't know C and it runs only on console window.
I know, it's not very friendly, the point of the whole thing is make it WORK, then I could think on the design.
Actually it does work, once.. then I have to reboot xD Not very useful.
And also you have to tell it the Process ID of the Conquer you want to monitor.
Yes, I'll try and make it seek the name of the char of each CO and then you only choose by name.. I know how to find the name and show it, but I don't know how to find CO's PIDs.. well, not yet.
If anyone wanna help me out or know if there's a tool like that around, let me know please. Any contribution is appreciated. Thanks in advance.
Code:
#include <Windows.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int *pta,pid,hp,hpt; HANDLE hnd_co; DWORD id_proc; printf("PID: "); scanf("%i",&pid); id_proc = pid; // pid pta = (void*)0xCF0560; // hp hnd_co = OpenProcess(PROCESS_ALL_ACCESS, TRUE, id_proc); ReadProcessMemory(hnd_co,pta, &hp, 4, NULL); ReadProcessMemory(hnd_co,pta, &hpt, 4, NULL); printf("HP: %i\n",hp); while(hp == hpt) { hnd_co = OpenProcess(PROCESS_ALL_ACCESS, TRUE, id_proc); ReadProcessMemory(hnd_co,pta, &hpt, 4, NULL); Sleep(1000); } TerminateProcess(hnd_co,0); return 0; }