This is what I use, I added berserker ability, and made all the keys fixed, so no playerform needed.
(S -> SGS Spec, B -> Berserk, H -> Rocktail)
Simba Code:
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 6410) then exit;
if ((actionbar.getHPPercent() > 80) and (actionbar.getAdrenalinePercent() = 100)) then
begin
sendKeys('b', 250, 40);
exit;
end;
if ((actionbar.getHPPercent() < 80) and (actionbar.getAdrenalinePercent() > 50)) then
begin
sendKeys('s', 250, 40);
exit;
end;
if (actionbar.getHPPercent() < 40) then
sendKeys('h', 250, 40);
if (actionbar.getHPPercent() < 20) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
combatMgr.healthTimer.start();
end;
Also this '9999' doesn't make any sense?
Simba Code:
case __npc.colorCount() of
01..10: __npc.colorize(8000, 11);
11..20: __npc.colorize(5000, 21);
21..50:
begin
case random(25) of
0..4: __npc.colorize(1500, 9999);
end;
end;
else
Shouldn't that just be 51?
I tried making a new color file after I toyed a little with the npc colorize settings and the colorize include constants (mainly the tresholds for good color/bad collor and attempts) and then I got this error;

Any idea how to resolve this? (At fire Giants in chaos tunnels as usual)