it works for msn, but not for the legend of ares. I wonder what would be the problem.
- Code: Select all
extern struct hp{
BYTE bBuffer[0x118];
DWORD dwValue;
} * hpBase = {"", 0x689F88};
extern struct mana{
BYTE bBuffer[0x83C];
DWORD dwValue;
} * manaBase = {"", 0x689F88};
BOOL bAddy;
char * charhppot = "2"; //macro 2
char * charmanapot = "3"; //macro 3
VOID Addy(DWORD dwParam){
while(bAddy == true)
{
//making vars with the values of the hp and the mana
short sHp = hpBase->dwValue;
short sMana = manaBase->dwValue;
PrintF("Hp: %u", sHp);
PrintF("Mana: %u", sMana);
//hp part of the script
if(sHp < 70){//under this hp there will be potted
Type( charhppot );
PrintF("HpPot");//i did this to check if the script runs and it does.
}
//because i test it i only want it to run every 1 second
Sleep(1000);
}
}
VOID On_HK_3( DWORD dw1, DWORD dw2 ) {
//bAddy false or True
bAddy = !bAddy;
//( i made these just so i can see if bAddy is true or false)
if (bAddy == true){ PrintF("On");} //on
if (bAddy == false){ PrintF("Off");}//off
//void addy maken
if (bAddy == true)
{
HANDLE hAddy = CreateThread("Addy", 0);
if (!hAddy) { bAddy = false; return; }
CloseHandle(hAddy);
}
}