Results 1 to 8 of 8

Thread: need help, Identifier expected in script, but i dont know why?

  1. #1
    Join Date
    Jun 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    need help, Identifier expected in script, but i dont know why?

    OK i am using Scar divi 3.11 with srl 3.8, this is what i have so far...

    SCAR Code:
    program WoodCutterSeller;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/skill/WoodCutting.scar}

    var
    lumbcheck: Integer;

    procedure lumbtele;
     begin
     GameTab(4);
     movemousesmooth(572+ random(8), 244+ random(8))
     getmousepos(x,y)
     clickmouse(x,y,true);
     end;


    procedure LumbCheckandtele;
     begin
     lumbcheck := BitmapFromString2(False, 'aF260E78DAA5945BAE8' +
     '5200C45A704C8F35310E73FA46BD9897253CB11C5648794D2 6529' +
     '4529A58D5787864394ABF150EFC9E2F6A6AED06A69AB7E25C D6D1' +
     'EFD65D9484DB4A73FF67A439EC190251447BA6C648FB460DA AA4F' +
     '0B29B8D99D96A0F3E5B3A76B6FD0A45B38FD97DCFEC111FD1 AE9F' +
     '8748925E6C435A4A4AAB88ABDC1F97260047D42895BCAD580 85F9' +
     '98A8C683B1B2CAB60644E62CE8529D9B620919211A88A0F42 C503' +
     '05FE31AD3332263F15C7A624FE97596D5FFBFA4B6F8BD5A49 BFE4' );

      if(FindBitmap(lumbcheck, x,y))
      then
        begin
         Writeln('Already In Lumbridge! Will start woodcutting shortly...');
         FreeBitmap(lumbcheck);
        end;
      else
       begin
        Writeln('Not in lumbridge, teleporting...');
         begin
          lumbtele
          end;
       end;
    end;
    begin
    LumbCheckandtele
    end.

    When i compile i get

    Line 34: [Error] (14848:1): Identifier expected in script C:\Program Files\SCAR 3.11\Scripts\wood cutter and seller.scar ...doesn't make sense, why is this happening?

    help me please!

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    When you have end else, make sure the end doesn't have a semi-colon. Also, alot of that is unneeded.

    Instead of:

    SCAR Code:
    procedure lumbtele;
     begin
     GameTab(4);
     movemousesmooth(572+ random(8), 244+ random(8))
     getmousepos(x,y)
     clickmouse(x,y,true);
     end;

    We use the SRL mouse functions. MMouse instead of MoveMouseSmooth. Mouse instead of ClickMouse.


    Mouse - (x, y, 2, 2, True); Left clicks on the point x, y with a random offset of 2.


    Mouse - (x, y, 2, 2, False); Right clicks on the point x, y with a random offset of 2.


    MMouse - (x, y, 2, 2); Moves to the point x, y with a random offset of 2.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  3. #3
    Join Date
    Jun 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you man your a great help!

    so mmouse and that stuff is less detectable? or is it just easier?

  4. #4
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MMouse and Mouse are both really. Easier, and less detectable, because it doesnt always click on the same pixel..

  5. #5
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    You can randomise the Non-SRL, but the SRL is still less detectable because of the way it moves the mouse.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  6. #6
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh. Didn't know that since i never use the non-SRL. :P oh well. I learned something today. "I always thought that.. dogs umm layed eggs. And i learned something today" - Family Guy

  7. #7
    Join Date
    Jun 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wo, dude, why is it moving so fast

    the mouse is moving hyperspeed lol

    and it is not clicking...

  8. #8
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure you call SetupSRL in your main loop, that will solve the hyper-speediness. And make sure you use Mouse(x, y, 0, 0, True) if you want it to click..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Identifier Expected in Script?
    By isjusme in forum OSR Help
    Replies: 2
    Last Post: 05-23-2008, 11:42 PM
  2. Identifier expected in script
    By StrikerX in forum OSR Help
    Replies: 2
    Last Post: 04-11-2008, 12:21 PM
  3. Identifier expected in script
    By wasapiguy2 in forum OSR Help
    Replies: 2
    Last Post: 03-25-2008, 09:57 AM
  4. Identifier expected in script. :(
    By skilld u in forum OSR Help
    Replies: 3
    Last Post: 01-05-2008, 11:51 PM
  5. Identifier expected in script?
    By steth1010 in forum OSR Help
    Replies: 6
    Last Post: 05-06-2007, 09:03 PM

Posting Permissions

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