SRL Archive - Help

Find if prayer is lower then a procents?


weeps

2011-12-25 03:17:16

I know there is a HPPercent is lower then, but is there one for prayer (icon)?

YoHoJo

2011-12-25 03:24:09

Lol, good question, I can't seem to find one very odd.
Would be easy to mod the HP one for payer, someone should do this and add it to SRL

Brandon

2011-12-25 03:25:57

From The Up n Coming Armoured Zombie Killer:


Function CheckPrayer: Boolean;
var
PrayerLevel: Integer;
ColourString: String;
begin
PrayerLevel:= GetMMLevels('Prayer', ColourString);

if (PrayerLevel < WTP) then
begin
MakeCompass('E');
wait(1500);
if (FindAltar = False) then
begin
if FindLadder then //Climb Ladder..
begin
FindAltar;
end else
WalkToLadder;
FindAltar;
ClimbDown;
end;
end;
end;

YoHoJo

2011-12-25 03:27:13

Thanks ggzz.

Check out gametab.scar and you will see
{Function GetMMLevels(LevelType : String;var ColorSign : String): integer;
By: Raymond / Wizzup / Sabzi / NCDS
Last Edit: 29 June 2010
Description: Returns the level shown next to the minimap.
Colorsign returns the color of the text (Green,Yellow,Orange,Red).
Returns -1 if failed. }