SRL Archive - OSR Help

need help on what this means


Ace257

2010-06-28 04:52:31

here is my script.

//By: Polo
begin
{.Include SRL\SRL.SCAR}
program blacksmith;
var
A, X, Y: Integer;
function FindDTM(var A, X, Y:Integer): Boolean;
begin
A := DTMFromString('78DA639466606050604001DFFB7918FE03694' +
'620FE0F048C52400633AA9A9FD39DC0342394CF68002414D1D494' +
'59A3AA0199638CAAE6479711AA1A564CF760A81101126204EC520' +
'212E204D42803090D026A40F6A8A1A9399684A20600913516A8');
Result :=FindDTM(X, Y, A, MSX1, MSY1, MSX2, MSY2);
FreeDTM(A);
end;
begin
if(FindDTM(A, X, Y))then
begin
MoveMouse(x,y);
Wait(1000+random(100));
ClickMouse(x, y, True);
ClickMouse(x, y, True);
end;
end.





when i tried to run my script the scar standard resource library popped up and said it had the error line 13…
but what does it mean?

{ const SRLVersionNumber;
Description: Repository Version Number. }
Const
SRLVersionNumber = 42;

YoHoJo

2010-06-28 05:29:36

Well first it's called the SRL Resource Library.

Second, you aren't even using any SRL functions in your script (so far at least, so no reason to include it (yet?).

Third, if this is for runescape, you're going to want to use MMouse/Mouse instead of MoveMouse/ClickMouse etc.

As for the error, I'm not sure :/, sorry,

Ace257

2010-06-28 05:46:37

okay i took it out but it says Line 3: [Error] (3:1): Identifier expected in script C:\Users\Chip\Desktop\SCAR 3.22\Scripts\other.scar


//By: Polo
begin
program blacksmith;
var
A, X, Y: Integer;
function FindDTM(var A, X, Y:Integer): Boolean;
begin
A := DTMFromString('78DA639466606050604001DFFB7918FE03694' +
'620FE0F048C52400633AA9A9FD39DC0342394CF68002414D1D494' +
'59A3AA0199638CAAE6479711AA1A564CF760A81101126204EC520' +
'212E204D42803090D026A40F6A8A1A9399684A20600913516A8');
Result :=FindDTM(X, Y, A, MSX1, MSY1, MSX2, MSY2);
FreeDTM(A);
end;
begin
if(FindDTM(A, X, Y))then
begin
MoveMouseSmooth(x,y:A);
Wait(1000+random(100));
ClickMouse(x, y:A True);
ClickMouse(x, y:A True);
end;
end.

cycrosism

2010-06-28 06:02:51

The begin is after the program line. Like this


Program Blacksmith;
{.Include SRL/SRL.scar}
Var
A, X, Y:Integer;

Function FindDTMCustom(var A, X, Y:Integer): Boolean;
Begin
A := DTMFromString('78DA639466606050604001DFFB7918FE03694' +
'620FE0F048C52400633AA9A9FD39DC0342394CF68002414D1D494' +
'59A3AA0199638CAAE6479711AA1A564CF760A81101126204EC520' +
'212E204D42803090D026A40F6A8A1A9399684A20600913516A8');
Result := FindDTM(A, X, Y, MSX1, MSY1, MSX2, MSY2);
FreeDTM(A);
End;

Begin
If FindDTMCustom(A, X, Y) Then
Begin
MoveMouseSmooth(X, Y);
Wait(1000+random(100));
ClickMouse(X, Y, True);
ClickMouse(X, Y, True);
End;
End.

I fixed it up for you a bit, you had some syntax's wrong

Ace257

2010-06-28 06:06:50

successfully executed!!!
thank you so much +rep :)

i luffs yeww

2010-06-28 08:24:14

Also, if this is for RuneScape, you should get SCAR 3.23.