hello guys , how can i get curr hp or mp when attacking , i've tried all buffer slots with no success .
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;
}
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);