I need some suggestions on a procedure for checking in my player is in combat. I am using this for my LRC fisher so the area is very crowded and I am still getting false positives. This is currently what I have, and I am looking for something to cut down on the false positives! Thanks.
Simba Code:
Procedure CheckFight;
begin;
if (InFight) then
begin;
Writeln('Checking pixelshift for fight...')
PBox := IntToBox(245, 130, 285, 195);
If (AveragePixelShift(PBox, 1000, 5000) > 1110) then
begin;
writeln('...looks like a fight, to bank!');
ToBank;
end;
Writeln('...no fight detected! Back to fishing.');
end else exit;
exit;
end;