Log in

View Full Version : Runescape text help please!



Runescape Pro
03-14-2011, 01:59 AM
Long story short: Tutorial runner.

I never really have free time but I've been working on it today. When you entire whatever username you want, if the name is unavailable, then you can choose one of three options.

My code:

Begin
SetupSRL;
Unavailable[0]:='hy not';Unavailable[1]:='try on';Unavailable[2]:='these nam';Unavailable[3]:='Why no';Unavailable[4]:='of th';Unavailable[5]:='ame';Unavailable[6]:='ot try';Unavailable[7]:='se nam';
ActivateClient;
Wait(2000);
If FindTextTPAMulti(12378347, 4, 98, 234, 308, 253, Unavailable, 'XPChars', Nothing) Then Writeln('Found it!');
End.

The error:

Compiled succesfully in 1156 ms.
SRL Compiled in 16 msec
Error: Exception: Access violation at line 473
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]


And opens this(Text.scar line 473):

{************************************************* ******************************
Function LoadTextTPA(Text : String; Chars : Integer;var height : integer) : TPointArray;
By: Raymond
Description: Loads a TPA of the text.. It also returns the real height
of the Text.. Used in FindTextTPAinTPA
************************************************** *****************************}
{$IFNDEF SIMBA}
function LoadTextTPA(Text: string; Chars: Integer; var height: integer): TPointArray;
var
DC: HDC;
CTS, w, h :INteger;
BMP: Integer;
begin;
BMP := CreateBitmapMaskFromText(Text,Chars);
DC := GetClientCanvas.Handle;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(0);
GetBitmapSize(BMP,W,H);
SetTargetDc(GetBitmapDc(BMP));
FindColorsTolerance(Result,clwhite,0,0,w+1,h+1,0);
height := h - 1;
SetTargetDC(DC);
ColorToleranceSpeed(CTS);
FreeBitmap(BMP);
end;
{$ELSE}
function LoadTextTPA(Text, Chars: string; var height: integer): TPointArray;
var
w: integer;
begin
**This line**result := TPAFromText(text,chars,w,height);**This line**
dec(height);
end;
{$ENDIF}

I guess its have a problem creating the tpa? Help please! :)

TomTuff
03-14-2011, 02:01 AM
The characters you're trying to read from XPChars don't exist. The font doesnt have all the letters/numbers due to the limited number of instances it occurs in the game - therefore, you must be using the wrong font.

Runescape Pro
03-14-2011, 02:47 AM
Ahh, ok. Thank you for that. I need to find out which font it is. Could you help? I checked everyone and I am still puzzled. Here's the picture:

http://img140.imageshack.us/img140/4839/namex.png (http://img140.imageshack.us/i/namex.png/)

Uploaded with ImageShack.us (http://imageshack.us)

i luffs yeww
03-14-2011, 03:26 AM
May not be a made font, and you'd have to make it yourself. Shuttleu has a tut on it I think.

1337w33d
03-20-2011, 08:13 PM
Is this what you are looking for?

Runescape Standard.fon - Searched my ass off for it a while back to do some editing of RS Screenshot text in paint/PS.

http://www.mediafire.com/?c3m5whcj212201z

(Poor) Example:

http://img861.imageshack.us/img861/6684/grimymarijuana.jpg

I'm not exactly sure if they use the same font in game as they do on the website though... :s