Hey so the new GetAdrenalinePercent function in the SRL gametab include written by @Slushpuppy is really great. I was wondering, perhaps the code could be modified slightly to read the green HP bar of your target in the combat tab? Maybe this function could be added to the SRL include as well?
here's the function for anyone wondering:
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;