Brandon
2012-01-20 23:28:46
I've been debugging a script of mine.. and well for the prayer detection, I use detecting by level AND by TPA of colours.. it works fine except I noticed a small bug where level detection is broke. When finding prayer, sometimes instead of detecting 360, it detects 60 only.. Also sometimes messes up on detection overall.. The prayerLevel function is detecting 384 when my prayer is at 860.. See below (Picture and script)..


Function PrayerLevel: Integer;
var
ColourString: String;
begin
//LProc:= 'PrayerLevel';
Result:= GetMMLevels('Prayer', ColourString);
//if debugs then
writeln('Prayer: ' + ToStr(Result));
end;