SRL Archive - Help

Exception in Script: Unknown compiler directives at 4:3


sm321

2012-03-02 07:13:15

I've got this script at the moment:

program DTM;

{$1 SRL\SRL.scar}

var

Bar, X, Y:integer

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
MMouse(x, y , 0, 0, True);
end;

FreeDTM(Robe);

end.

Yet, when I compile the script, I get this error:

Exception in Script: Unknown compiler directives at 4:3

What do I do?

masterBB

2012-03-02 07:21:54

program DTM;

{.include SRL\SRL.simba} // changed this one

var

Bar, X, Y:integer; //added ;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True); //Changed MMouse to Mouse
end;

FreeDTM(Bar); //changed robe to bar

end.

sm321

2012-03-02 07:27:22

From: masterBB
program DTM;

{.include SRL\SRL.simba} // changed this one

var

Bar, X, Y:integer; //added ;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True); //Changed MMouse to Mouse
end;

FreeDTM(Bar); //changed robe to bar

end.


Thanks. :)

EDIT: Same problem for some reason.

Current script:

program DTM;

{$1 SRL\SRL.simba}

var

Bar, X, Y:integer;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True);
end;

FreeDTM(Bar);

end.

masterBB

2012-03-02 07:44:34

Look at the difference between the way we include srl at top of the program, I don't believe $1 is anything.

sm321

2012-03-02 07:47:55

From: masterBB
Look at the difference between the way we include srl at top of the program, I don't believe $1 is anything.


Sorry, I watched a tutorial so I didn't know any different. Thankyou for your help :)

EDIT: Another error,

ERROR in TMThread.LoadFile
Exception in Script: Unable to find file 'C:\Simba\Includes\SRL/SRL/core/players.simba' used from 'C:\Simba\Includes\SRL\SRL.simba'

masterBB

2012-03-02 07:55:12

I never had that error before, make sure you got the latest version of srl and simba.

sm321

2012-03-02 07:56:03

From: masterBB
I never had that error before, make sure you got the latest version of srl and simba.


No Plugins update available.
No SRL update available.
No SPS update available.
No MSI update available.

masterBB

2012-03-02 07:59:25

Make sure you restart simba and check if that file is in the correct folder: C:\Simba\Includes\SRL/SRL/core/players.simba

sm321

2012-03-02 08:04:38

From: masterBB
Make sure you restart simba and check if that file is in the correct folder: C:\Simba\Includes\SRL/SRL/core/players.simba


I've got players.scar if that helps?

masterBB

2012-03-02 08:19:30

That's an old version of srl. Remove the entire srl folder. In simba go to srl->settings->override update. Then go to srl->update, not check for update.

sm321

2012-03-02 09:39:09

From: masterBB
That's an old version of srl. Remove the entire srl folder. In simba go to srl->settings->override update. Then go to srl->update, not check for update.


It worked, thanks :) But, nothing actually happens on RuneScape. It says:

Successfully Excecuted

but nothing actually happened.

Sin

2012-03-02 09:53:32

Guys, he's using MSX1, the chocolate bar is in the inventory..


FindDTM(Bar,x,y,MIX1,MIY1,MIX2,MIY2)

sm321

2012-03-02 09:55:23

From: Sin
Guys, he's using MSX1, the chocolate bar is in the inventory..


FindDTM(Bar,x,y,MIX1,MIY1,MIX2,MIY2)


It's in the bank when I want to withdraw it, but I'll try altering it for when it's in the inventory. :)

Sin

2012-03-02 09:57:03


FindDTM(Bar,x,y,MBX1,MBY1,MBX2,MBY2)
Also, we include SRL like this -

{$Include SRL\SRL.simba}

masterBB

2012-03-02 10:01:50

Are you sure that the DTM is correct? And have you selected the client with the crosshair?

From: Sin

Also, we include SRL like this -

{$Include SRL\SRL.simba}


There are multiple ways to accomplish that. Three of them are:

{$I SRL\SRL.simba}
{$Include SRL\SRL.simba}
{.include SRL\SRL.simba}

Sin

2012-03-02 10:02:43

From: masterBB
Are you sure that the DTM is correct? And have you selected the client with the crosshair?



There are multiple ways to accomplish that. Three of them are:

{$I SRL\SRL.simba}
{$Include SRL\SRL.simba}
{.include SRL\SRL.simba}


Yup.
I haven't included SRL for so long, I have a preset script skeleton :p

sm321

2012-03-02 10:03:13

From: Sin

FindDTM(Bar,x,y,MBX1,MBY1,MBX2,MBY2)
Also, we include SRL like this -

{$Include SRL\SRL.simba}


Ok, thanks :) It still does nothing. It compiles successfully, but it just starts and stops with no clicking inbetween.

Current script:

program DTM;

{$include SRL\SRL.simba}

var

Bar, X, Y:integer;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MBX1, MBY1, MBX2, MBY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True);
end;

FreeDTM(Bar);

end.

Sin

2012-03-02 10:05:23

Have you selected the client with the crosshairs?
You're not using SMART so..

sm321

2012-03-02 10:07:09

From: Sin
Have you selected the client with the crosshairs?
You're not using SMART so..


I have selected RuneScape with the crosshair, yet it's still not working.

Sin

2012-03-02 10:07:44

Then your DTM isn't proper.

sm321

2012-03-02 10:10:41

From: Sin
Then your DTM isn't proper.


I'll redo it, see if that helps :)

EDIT: I've redone it, it now moves to a toy horsey, yet doesn't click it.

Sin

2012-03-02 10:12:26

It should, if the problem still persists, give me 8 hours and i'll come home from school and do it.

sm321

2012-03-02 10:17:08

From: Sin
It should, if the problem still persists, give me 8 hours and i'll come home from school and do it.


It's ok, I've edited it to click a toy horsey, but now it just doesn't click, but it moves there still :)

EDIT: Had to make it click twice :)

Neora

2013-03-06 13:28:10

Shit posted on wrong thread -.-