I have this for detecting combat: (Just a snippet, not a procedure) It constantly says In Combat: False, even though the color is on the screen.
Simba Code:
begin
Combat1 := 1;
begin
if (FindColor(X, Y, 65280, 220, 110, 330, 220)) then
begin
Writeln('-* In Combat: True');
end
else Combat1 := 0;
if (FindColor(X, Y, 65280, 220, 110, 330, 220)) = false then
Writeln('-* In Combat: False');
wait(randomrange(100, 200));
ClickMouse2(mouse_right);
wait(randomrange(800, 1000));
P07_ChooseOptionMulti(['ttack']);
end;
end;