Code: Select all
$numpad1::
While GetKeyState("numpad1","p"){
PixelGetColor,buff,18,17
PixelGetColor,pet,1275,1436
if (buff != 0xE0C43C) and (pet = 0x000000)
{
send {f8} ;target my pet
sleep 50
send i ;turn buff on
sleep 350
}
else if (buff = 0xE0C43C) and (pet = 0x000000)
{
send {f8} ;target my pet
sleep 50
send i ;turn buff off
sleep 350
send i ;turn buff on
sleep 350
}
}
return