Results 1 to 5 of 5

Thread: Im the noob :)

  1. #1
    Join Date
    Nov 2007
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Im the noob :)

    SCAR Code:
    program SimpleReflectionWalkerEx;
    {.Include SRL\SRL\Misc\Smart.Scar}
    {.Include SRL\SRL.Scar}
    {.Include SRL\SRL\Reflection\Reflection.Scar}

    Procedure SetupSmart;
    Begin
      smartSetupEx('world167', True, True, False);
      Wait(1000);
      SetTargetDC(SmartGetDC);
    end;

    Procedure DeclarePlayers;
    Begin

      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name :=''; //Your Username
      Players[0].Pass :='';  // Your password
      Players[0].Nick :='';  //3-4 letters of your username.
      Players[0].Active:=True;

    end;

    function LoadPath: TPointArray;
    begin
      SetLength(Result, 30);

      Result[0] := Point(3225, 3218);
      Result[1] := Point(3234, 3219);
      Result[2] := Point(3240, 3226);
      Result[3] := Point(3251, 3226);
      Result[4] := Point(3259, 3233);
      Result[5] := Point(3260, 3240);
      Result[6] := Point(3256, 3248);
      Result[7] := Point(3251, 3255);
      Result[8] := Point(3250, 3264);
      Result[9] := Point(3247, 3271);
      Result[10] := Point(3242, 3278);
      Result[11] := Point(3238, 3288);
      Result[12] := Point(3238, 3299);
      Result[13] := Point(3235, 3308);
      Result[14] := Point(3228, 3310);
      Result[15] := Point(3222, 3315);
      Result[16] := Point(3220, 3322);
      Result[17] := Point(3215, 3328);
      Result[18] := Point(3212, 3332);
      Result[19] := Point(3206, 3340);
      Result[20] := Point(3203, 3350);
      Result[21] := Point(3205, 3360);
      Result[22] := Point(3211, 3364);
      Result[23] := Point(3212, 3371);
      Result[24] := Point(3211, 3377);
      Result[25] := Point(3211, 3387);
      Result[26] := Point(3211, 3396);
      Result[27] := Point(3211, 3406);
      Result[28] := Point(3210, 3416);
      Result[29] := Point(3212, 3424);
    end;

    Procedure WalkThePath;
    Var
      I: Integer;
      Path: TPointArray;

    Begin
      Path := LoadPath;
      for i := 0 to High(Path) do
        Begin
           WalkToTile(Path[i], 3, 0);
        end;
          Wait(500+Random(300));
    end;

    Begin
      SetupSRL;
      SetupSmart; // Calls the SetupSmart procedure.
    end.

    Ok so this is the problem i followed the path make walk guide from reflection section, but when i press go i get this erros:

    Line 75: [Hint] (21490:20): Variable '' never used in script D:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\AntiRandoms\Molly .scar
    Line 209: [Hint] (21624:20): Variable '' never used in script D:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\AntiRandoms\Molly .scar
    Line 8: [Error] (21892:44): Type mismatch in script D:\Program Files\SCAR 3.15\Scripts\Test\test.scar



    help?

  2. #2
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    pascal Code:
    Procedure SetupSmart;
    Begin
      smartSetupEx(167, True, True, False);
      Wait(1000);
      SetTargetDC(SmartGetDC);
    end;

    SmartSetupEx uses an integer, not a string.

  3. #3
    Join Date
    Mar 2009
    Location
    Canada
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    smartSetupEx('world167', True, True, False);
    is supposed to be just
    smartSetupEx(167, True, True, False);
    just a nnumber not a string

    Bah FRT beet me!

  4. #4
    Join Date
    Nov 2007
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    okey ty guys, but when it goes into smart it dont do anything els?

    why do i need a logging script or somthin?

  5. #5
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you don't call any procedures in your mainloop.

    pascal Code:
    begin
    SetupSRL;
    SetupSmart;
    DeclarePlayers;
    LoginPlayer;
    WalkThePath(LoadPath);
    end.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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