SRL Archive - S.M.A.R.T. Questions and Answers.

Line 79 Syntax error


elfenlyte

2008-02-20 15:30:52

Hi,

I followed Markus's tutorial.

Now, here is a sample of my edited Smart.scar:


{$DEFINE SMART}
{
smart.scar overwrites the SCAR procedures.
You should always include this before any other include, even SRL.scar
}

procedure MoveMouse(x, y: Integer);
begin
SmartMoveMouse(x, y);
end;

procedure HoldMouse(x, y: Integer; left: Boolean);
begin
SmartHoldMouse(x, y, left);
end;
procedure ReleaseMouse(x, y: Integer; left: Boolean);
begin

Then I edited SRL.scar to this. Here is a sample of it.


*******************************************************************************}

procedure SetupSRL;
begin
{$IFDEF SMART}
SmartSetup({your prefix here}, false, {signed? true/false});
wait(10000+random(5000));
SetTargetDC(SmartGetDC);
repeat
wait(100);
until(SmartGetColor(253, 233)<>1118604);
{$ENDIF}
MouseSpeed := 15;
CheckHPFirst := True;
Reincarnate := False;
TalkAfterRandoms := False;
RoadColor := 0;
WaterColor := 0;
BankColor := 0;
LampSkill := 'mining';
SetUpSRLReport;

Then I edit in the heading at the top of the modified script.

I run the script and get this error each time.

Line 79: [Error] (12369:30): Syntax error in script C:\Program Files\SCAR 3.14\includes\SRL/SRL.Scar

As you probably know, Line 79 is:

SmartSetup({your prefix here}, false, {signed? true/false});

Would you please help me with this?

Thank you

n3ss3s

2008-02-20 15:55:03

It's because you didn't put in the world prefix and the signed…

mixster

2008-02-20 20:15:14

As n3ss3s said, you have to fill it out. I would recommend using SmartSetupEx though, as you can choose a world number instead of a prefix (which can be annoying when you want to change worlds) - e.g. 'SmartSetupEx(51,false,false);' to have SMART login to world 51 with low detail and unsigned (the 2nd boolean toggles signed/unsigned).

elfenlyte

2008-02-20 22:16:12

Thank you. Fixed.