SRL Archive - OSR Help

Need help with Custom font and uptext


farkid

2013-04-28 07:38:23

I am trying to make a simple woodcutter. I have never made a script before and followed tutorials and guides to get where I am. I have tried looking and couldn't figure it out. This is what I have.
This is for RSPS

program New;
{$i srl/srl.simba}

procedure ChopTree;
var x, y: integer;
begin
LoadFont(SSFont, True);
repeat
if FindObj(x, y, 'een', 4690048, 15) then
begin
Mouse(x, y, 0, 0, False);
ChooseOption('een');
end;
repeat
wait(400+random(250));
Until (InvFull);
until(InvFull);
end;

begin
SetUpSRL;
ChopTree;
end.

I read that I needed to include my Fonts so I added [LoadFont(SSFont, True);].
In my Font folder I have
[ATTACH=CONFIG]20970[/ATTACH] [ATTACH=CONFIG]20971[/ATTACH]
I got the letters from [ATTACH=CONFIG]20972[/ATTACH]
Is the script not reading the uptext? Is the untext wrong? Is the LoadFont(SSFont, True); not working?
Right now all it does is hover over the trees and doesn't click them.

rj

2013-04-28 08:45:24

Cut out ALL the black around the edges. Check out zip below

farkid

2013-04-28 20:10:05

From: Officer Barbrady
Cut out ALL the black around the edges. Check out zip below


I saved those letters and changed the LoadFont(SSFont, True); to LoadFont(SSUpChars, True);
But it still just hovers over trees.
Are the fonts not getting loaded into the script?

rj

2013-04-28 20:15:08

From: farkid
I saved those letters and changed the LoadFont(SSFont, True); to LoadFont(SSUpChars, True);
But it still just hovers over trees.
Are the fonts not getting loaded into the script?

You have to make your own function to use them your still using the SRL find obj

farkid

2013-04-28 20:32:25

From: Officer Barbrady
You have to make your own function to use them your still using the SRL find obj


Probably not something a beginner could do? :o