Hey there,
I've just done the SMART test script, and it works fine on my computer. However when I try run my script on SMART it comes up with:
Failed when compiling
Line 7: [Error] (16917:11): Duplicate identifier 'MOVEMOUSE' in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Misc\SMART.SCAR
Then it opens up the SMART script and shows me line 7.
This is my script below, is there anything I've done wrong that is causing this error?
SCAR Code:
program New;
{.include SRL/SRL.scar}
{.include SRL/SRL/Skill/Mining.scar}
{C:\Program Files\SCAR 3.15\includes\SRL\Logs.scar}
{.Include SRL\SRL\Misc\SMART.SCAR}
Var
x, y: integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := 'Username';
Players[0].Pass := 'Password';
Players[0].Nick := 'Nick';
Players[0].Active := True;
end;
Procedure RunningFromFights;
begin
FindNormalRandoms;
If (FindFight) then
RunAway('N', True, 1, 5000);
end;
Procedure randomcompass;
Begin
Case Random(15) Of
1: makecompass('E');
2: makecompass('W');
3: makecompass('N');
4: makecompass('S');
5: setangle(true);
End;
End;
Procedure FindRandoms;
Begin
If Not (LoggedIn) Or Not (Players[CurrentPlayer].Active) Then
NextPlayer(false);
FindNormalRandoms;
wait(400)
Findtalk;
RunningFromFights;
FindLamp('Mining');
End;
procedure AntiBan;
begin
case random(30) of
0: RandomRClick;
1: BoredHuman;
2: HoverSkill('Mining', False);
end;
end;
begin
SMARTSetUp('world38', True, True, False);
SetTargetDC(SMARTGetDC);
SetupSRL;
DeclarePlayers;
LogInPlayer;
wait(200+random(100))
Repeat
Mousespeed := 15
DropAll;
Repeat
LoadRockRecords;
FindObjRock(x, y, Rimmington_Iron);
ClickMouse(x, y, True);
FindRandoms;
AntiBan;
randomcompass;
Wait(3000+random(2000));
Until (InvFull= True);
until false
end.
If you know why SMART doesn't work with it can you please leave a post telling me what to do.
Thanks.