[Request] recv curr hp and mp

09/13/2012 01:07 nonosocr1986#1
hello guys , how can i get curr hp or mp when attacking , i've tried all buffer slots with no success .
09/13/2012 05:58 meak1#2
PHP Code:
if (buf[2] == 0x45)
{
if (
buf[3] == 0x08)
{
mp=*(WORD*)&buf[4];
}
if (
buf[3] == 0x07)
{
hp=*(WORD*)&buf[4];

////////////////////////////////////////////////////////////////////////////////////////

if (buf[2] == 0x3E)
{
DWORD MobDMG;
DWORD Playerid,Mobid;
Playerid=*(DWORD*)&buf[7];
Mobid=*(DWORD*)&buf[3];
MobDMG=*(DWORD*)&buf[11];


if((
Playerid == Player[0].PID)&&(prevDMG != MobDMG))
{
prevDMG=MobDMG;
hp-=prevDMG;

09/13/2012 12:30 mohm195#3
You can also use Pointer stuff :D

Code:
DWORD* Health = (DWORD*)0x006F3840;
		DWORD MyHp;
		Memory::MemcpyEx((DWORD)&MyHp,(((DWORD)*Health)+0x000046AC),4);
	    DWORD Mana = *(DWORD*)0x0070EB30;
               Kal::ChatBox("[Prince] ",1,"Your Health Points ->[%d] and Mana Points ->[%d].",MyHp,Mana);
09/13/2012 16:37 meak1#4
mem read sucks, cpu voltage D;
09/13/2012 16:59 mohm195#5
Well, meak1 knows more than me! :p but it's just another way ^^
09/13/2012 19:41 nonosocr1986#6
thank you both , thats really helpful