#define PLAYER_DEBUFFS 0x160
#define PLAYER_DEBUFF_SIZE 0x40
#define PLAYER_MAX_DEBUFFS 16
find the player struct then add. read((player_address+PLAYERDEBUFFS), PLAYER_BUFF_SIZE), then loop through and read until debuff = 0. they are stored as an array of int's and you can look up the ID numbers on thottbot.
Code:
if (!ReadProcessMemory(hProc, (LPCVOID)PlayerStruct, &Player, sizeof(player_struct), (SIZE_T*)&read))
return false;
if (!ReadProcessMemory(hProc, (LPCVOID)(PlayerStruct+PLAYER_DEBUFFS), &Player.debuffs, PLAYER_DEBUFF_SIZE, (SIZE_T*)&read))
return false;
----------------------------
bool CheckDebuff(int id)
{
UpdatePlayer();
int x = 0;
for (x=0;x<PLAYER_MAX_DEBUFFS;x++)
{
if (Player.debuffs[x] == id)
return true;
}
return false;
};
#define INACTIVE 43681 // http://thottbot.com/s43681
you cant remove a buff client side, just read if its there