Results 1 to 2 of 2

Thread: Why does SMART not work with my script?

  1. #1
    Join Date
    Oct 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Why does SMART not work with my script?

    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.

  2. #2
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hello, Hello, The issue you are having is because of the order you did your includes, theres a small quirk with smart, it has to be included BEFORE SRL. meaning:

    SCAR Code:
    program New;
    {.Include SRL\SRL\Misc\SMART.SCAR}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}
    {C:\Program Files\SCAR 3.15\includes\SRL\Logs.scar}

    If you would like an explanation of why it is like this feel free to pm me or something I will happily explain it to you =)
    Current Project: Catching up on what I missed, re-writing some old includes I done in the past.
    Upcoming Project: Open For Suggestions

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Smart Does Work
    By nhstarter10 in forum News and General
    Replies: 10
    Last Post: 11-07-2008, 06:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •