Results 1 to 10 of 10

Thread: Someone please help, Its fast. (I think/hope)

  1. #1
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Someone please help, Its fast. (I think/hope)

    Well this is my first script not done, just started. But i keep on getting this

    Failed when compiling
    Line 55: [Error] (18598:1): Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\walk to North West trees.scar

    Can someone please help?
    Also how do i get it to click on a tree in the mini map, not the tree symbol i mean just a regular tree in the mini map. Here is the script:
    SCAR Code:
    program New;
    {.include SRL\SRL.scar}
    {.include SRL\SRL\Skill\Woodcutting.SCAR}
    {.include SRL\SRL\Skill\RuneCrafting.SCAR}

    Procedure Walk2Trees;
    begin
    MakeCompass('n');
    SetRun(true);
    RadialRoadWalk(FindRoadColor, 0, 90, 70, 2, 2);
    RadialRoadWalk(FindRoadColor, 0, 90, 70, 2, 2);
    RadialRoadWalk(FindRoadColor, 0, 90, 50, 2, 2);
    RadialRoadWalk(FindRoadColor,320,400,40, 2, 2);
    RadialRoadWalk(FindRoadColor,320,400,40, 2, 2);
    RadialRoadWalk(FindRoadColor,320,400,40, 2, 2);
    RadialWalk(14612,90,0,70, 2, 2)
    Mouse(x, y, 2, 2, true);
    Flag;
    end;

    Function FWalkToYew : Boolean;
    Var
      wX, wY : Integer;

      Begin
        If FindSymbol(wX, wY, 'Tree') then
        Begin
          Mouse(wX, wY, 0, 0, True)
        end;
        Result := True;
      end;

    function GetIntoAlter: Boolean;

    var
      cx, cy, c: Integer;

    begin
      repeat
        if (not (LoggedIn)) then
          Exit;
        repeat
          c := c + 1;
          if (not (LoggedIn)) then
            Exit;
          Wait(25);
          if (c > 100) then
          begin
            Result := False;
            Exit;
          end;
        until (FindMSColorTol(cx, cy, 5922904, 20));
        MMouse(x, y, 1, 1);
        if GetUpText = 'Enter' then
        Mouse(x, y, 1, 1, true);
      Result := True;
     end;

    begin
    SetUpSRL;
    ActivateClient;
    Wait(5000);
    Walk2Trees;
    FWalkToYew;
    GetIntoAlter;
    end.

    Thanks to everyone who helps or trys to help.

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I'm kinda lazy so I won't answer the first question, but to get it to click the tree, create a bitmap of the tree.. Problem with this is it may click the wrong tree if they all look the same on the map.. Other wise find something unique looking that is close to the tree you want to click and then create a BMP of that and have it click that instead..
    SUMMER BREAK be back when I want to

  3. #3
    Join Date
    Sep 2006
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    edit: actually forget that you dont need the repeat after the begin statement
    http://www.fenjer.com/adnan/SRLStats/391.png
    http://img341.imageshack.us/img341/4...irbypb6lf8.gif
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig
    i <3 jagex

  4. #4
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, yea there is one weird tree i can have it click. Thanks.

  5. #5
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you forgot an until in the procedure GetIntoAltar;

  6. #6
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can someone add me on msn and help me? ( badandymitch@yahoo.com )
    This is my first script and i don't really know what i should put for until.

  7. #7
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function GetIntoAlter: Boolean;
     
    var
      cx, cy, c: Integer;
     
    begin
      repeat //one repeat
        if (not (LoggedIn)) then
          Exit;
        repeat //two repeats
          c := c + 1;
          if (not (LoggedIn)) then
            Exit;
          Wait(25);
          if (c > 100) then
          begin
            Result := False;
            Exit;
          end;
        until (FindMSColorTol(cx, cy, 5922904, 20)); //only one until!
        MMouse(x, y, 1, 1);
        if GetUpText = 'Enter' then
        Mouse(x, y, 1, 1, true);
      Result := True;
     end;

    You have two repeats in your function. You must either take out the first repeat, since it doesnt do anything (apparently), or add an until somewhere

  8. #8
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    O lol thanks you helped a lot.

  9. #9
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    np glad to help

  10. #10
    Join Date
    Sep 2006
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Infintry001 View Post
    SCAR Code:
    function GetIntoAlter: Boolean;
     
    var
      cx, cy, c: Integer;
     
    begin
      repeat //one repeat
        if (not (LoggedIn)) then
          Exit;
        repeat //two repeats
          c := c + 1;
          if (not (LoggedIn)) then
            Exit;
          Wait(25);
          if (c > 100) then
          begin
            Result := False;
            Exit;
          end;
        until (FindMSColorTol(cx, cy, 5922904, 20)); //only one until!
        MMouse(x, y, 1, 1);
        if GetUpText = 'Enter' then
        Mouse(x, y, 1, 1, true);
      Result := True;
     end;

    You have two repeats in your function. You must either take out the first repeat, since it doesnt do anything (apparently), or add an until somewhere
    i had said the same thing b4 lol *sigh* no one pays attention to me :P jp
    http://www.fenjer.com/adnan/SRLStats/391.png
    http://img341.imageshack.us/img341/4...irbypb6lf8.gif
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig
    i <3 jagex

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. One last question, I hope!
    By Sandstorm in forum OSR Help
    Replies: 2
    Last Post: 10-19-2008, 11:20 PM
  2. I Hope Your Happy!
    By dudesareus in forum News and General
    Replies: 30
    Last Post: 12-16-2007, 08:52 AM
  3. Abandon Hope
    By timtag1190 in forum Blogs and Writing
    Replies: 0
    Last Post: 12-29-2006, 04:37 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
  •