SRL Archive - OSR Help

need some help


larsi37

2013-03-27 07:13:33

hello i have a question, i was following the tutorial video from YoHoJoSRL, and i'm getting stuck at the WriteLn part. the mouse hovers over the objects i selected, but it doens't show any tekst in the debug box, this is the part i'm talking about:

procedure MineTin;
var
x , y: Integer;
begin
if FindObjCustom(x, y, ['mi', 'ne'], [1186090, 593436], 10)then
begin
WriteLn('We found some Tin');
end;
end;

i dont know how to put it as a scart code, so i just pasted it.
thanks in advance,

Total

2013-03-27 07:17:47

I'm assuming you are using 07Scape, and if you are then you either need to use P07_FindObjCustom from the P07Include or just keep it the same way and use SRL-OSR. It is not finding it because it is having trouble finding the uptext.

larsi37

2013-03-27 08:21:19

okay thanks it works fine now!

yorkie911

2013-03-27 09:22:52

Total, props to you, you are a genius