SRL Archive - OSR Help

This isn't really easy to figure out but i need help


samerdl

2013-04-12 05:46:43

Alright so this has been asked few times, and the answer is a long process that is too difficult for me/didn't get it to work.

SOLVED.

edit: trying this tutorial: http://villavu.com/forum/showthread.php?t=6129, will it do the work?
Edit2: That guide didnt work,


****what did work was a simple Bitmap AKA:

Zero := BitmapFromString(5, 9, 'meJwzdfA0dfCUn/EfiExhbFM7DwYG' +
'BqggjG1s4wokgWw4AysXohKZi1ULRASuEgBRMCjb');

Set a good tolerance level, it will only find the zero, it wont find 10, 20… This was actually really easy.

What i wanna do is a find a digit on the Rs screen in the prayer tab, notice at the bottom of this picture; the numbers.
What i really need to do is find the "0"; the zero.

So my question is, how do i do that?, it has no Uptext, and the font/color is not in the Chars list, whats a simple way to do this?. Please help!.

** need to do this because GetskillInfo gametab(tab_stats) will constantly switch back to Gametab(tab_inv) if i have no prayer points, i need it to stay on Gametab(tab_prayer) for the reminder of its session (to reduce the risk of ban), so in essence it will checkprayer from the Prayer-tab instead of the Stats-tab.

Oh and just throwing it out there, there is some cool text finding commands in Simba, check out this guide:
http://villavu.com/forum/showthread.php?t=31983&highlight=GetTextAtEx

^ just sadly they dont work for my case.

Sjoe

2013-04-12 06:04:10

Try bitmap.

Le Jingle

2013-04-12 06:08:09


function GetPrayerPoints(): Integer;
var
s: string;
begin
if not GameTab(Tab_Prayer) then
Exit;
s := GetTextAtExWrap(627, 445, 685, 456, 0, 2, 5, 2070783, 0, SmallChars07);
if (Pos('/', s) > 1) then // Janilabo's
s := Copy(s, 1, (Pos('/', s) - 1));
Result := StrToIntDef(GetNumbers(Trim(s)), -1);
end;

Something like this, does this work?

samerdl

2013-04-12 09:37:01

From: Sjoekeloe
Try bitmap.


Just refreshed the page and saw this post, this is what solved it for me.
if (FindBitmapToleranceIn(Zero,X,y,MIX1, MIY1, MIX2, MIY2, 10)) <<
From: Le Jingle

function GetPrayerPoints(): Integer;
var
s: string;
begin
if not GameTab(Tab_Prayer) then
Exit;
s := GetTextAtExWrap(627, 445, 685, 456, 0, 2, 5, 2070783, 0, SmallChars07);
if (Pos('/', s) > 1) then // Janilabo's
s := Copy(s, 1, (Pos('/', s) - 1));
Result := StrToIntDef(GetNumbers(Trim(s)), -1);
end;

Something like this, does this work?


negative, it looks for another font that isn't that color. Thank you though, solved it.