or the location of text :) ill look into it NOW
program New;
{.Include SRL/SRL.Scar}
var
level : integer;
function InWilderness: Boolean;
var
skull: Integer;
begin
skull := BitmapFromString(5, 5, 'z78DA7373C3078CCD8D5C8C0C7' +
'1B1F1CB3ABB39595A5A629A09114756834C42C40128C72517');
if (FindBitmapIn(skull, x, y, 476, 256, 504, 280)) then
Result := True;
FreeBitmap(skull);
end;
Function GetWildyLevel : Integer;
var
txt , S , ChatChars , WildyLevel : integer;
Txt2 : string;
begin
Result := 0;
if (InWilderness) then
begin
txt := 1;
Txt2:= inttostr(txt)
ChatChars := LoadChars2(AppPath + 'CharsChat2\');
S := CreateBitmapMaskFromText(Txt2, ChatChars);
if FindBitmapMaskTolerance(S,x,y,501,285,514,300,10,50)then
begin
WildyLevel:= Txt;
Result:= WildyLevel;
exit;
end;
repeat
FreeBitmap(S)
Wait(150+random(50))
txt:= txt + 1;
Txt2:= inttostr(txt)
S := CreateBitmapMaskFromText(txt2, ChatChars);
until(FindBitmapMaskTolerance(S,x,y,501,285,514,300,10,50)or(Txt >= 61))
if Txt >= 61 then
begin
writeln('Error, Couldnt Get Wildy Level')
exit;
end;
WildyLevel:= Txt;
Result:= WildyLevel;
end else
Writeln('Not In Wildy!')
end;
begin
SetupSRL;
Level:= GetWildyLevel;
Writeln('Wildy: ' + inttostr(Level))
end.
this does not work properly for now, as i got pked >_< and couldnt finnish it :(