Twinki
2013-04-26 18:57:48
I'd like to make my script check my health bar / HP by the minimap and when it get's too low and it starts blinking red i'd like it to eat some food. I already have the DTM setup for the food and everything, i'm just confused on how it'd grab the HP. I've tried FindColorTolerance but it doesn't find it lol.
This is on a RSPS.. but it's a 714 and the graphics and uptext are pretty much the exact same as current EoC.
Code:
This is on a RSPS.. but it's a 714 and the graphics and uptext are pretty much the exact same as current EoC.
Code:
procedure EatFood;
var
X, Y, RockTail :Integer;
begin
if FindColorTolerance(X, Y, 255, 725, 32, 743, 47, 5) then //made it check the HP orb by the minimap and when it turns red it's supposed to eat food.
begin
if FindDTM(RockTail, x, y, 885, 228, 1068, 466) then
begin
MMouse(x, y, 0, 0);
ClickMouse2(True);
WriteLn('Eating Rocktail...');
end;
end;
end;