Here is the function for getting the adrenaline bar %:
Simba Code:
function GetAdrenalinePercent(): Integer;
var
BarX1,BarX2,BarY1,BarY2 : Integer;
tpa : TPointArray;
box : TBox;
begin
Result := -1;
if isActionBarOpen then
begin
Result := 100;
BarY1 := 334 - SRL_NAVBAR_INGAME_Y;
BarY2 := 337- SRL_NAVBAR_INGAME_Y;
BarX1 := 49 - SRL_NAVBAR_INGAME_X;
BarX2 := 469 - SRL_NAVBAR_INGAME_X;
if FindColorsTolerance(tpa,1776411,BarX1,BarY1,BarX2,BarY2,15) then
begin
box := GetTPABounds(tpa);
Result := Floor(100 - ((BarX2 - box.X1)*1.0 / (BarX2-BarX1) * 1.0) * 100);
end;
end;
end;
i want to modify this function to read the green health bar of my target enemy. The one in the combat tab. I think this above function can be changed so that it reads that green HP bar rather than the adrenaline bar. Can anyone help me adapt this properly?