Results 1 to 22 of 22

Thread: First Script/with errors.

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

    First Script/with errors.

    ok this is my irst complete script but it has an error code

    SCAR Code:
    {HIHI12340 FIRST SCRIPT     PowerChopper
    AntiRandoms go to Jad}


    program PowerChopper;
    {.includeSLR/SLR.scar}

    procedure AntiRandoms;
    begin
    FindTalk;
    FindNormalRandoms;
    if (FindFight = true) then
    begin
    RunAwayDirection('N');
    Wait(10000 + random(3000));
    runback;
    end;
    end;

    procedure FindNormalTree;
    begin
    SetupSRL;
    repeat
    if(FindColor(x,y,2373688,587,397,0,0))then
    MMouse(x,y,0,0);
    Wait(100+random(70));
    Mouse(x,y,0,0,True);
    Wait(600+random(300);
    DoAntiRandoms
    until(InvFull);
    end;
    begin
    DropTo(2,28);
    end;
    begin
    repeat
    RepeatClicking;
    drop;
    until(false);
    end.

    i got unknown identifier findtalk
    which is my antirandom (maybe not good but i just started)
    if its good then tell me
    if it needs work tell me what has to be done
    thanks


    and please tell me if it will even work!!

  2. #2
    Join Date
    Apr 2007
    Posts
    169
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you need to make prodecure that finds that talk? you have probably just copied that antirandom thing from JADs script or tutorial?
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

    http://www.fenjer.com/adnan/SRL/20/33/BucketX.png

    http://www.fenjer.com/adnan/SRLStats/742.png

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

    Default

    what can i say i dont know much better on how to do antirandoms or stuff like that

  4. #4
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what can i say i dont know much better on how to do antirandoms or stuff like that

    you need to make prodecure that finds that talk? you have probably just copied that antirandom thing from JADs script or tutorial?
    then what am i suppsed to do?

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

    Default

    change

    SCAR Code:
    {.includeSLR/SLR.scar}

    to

    SCAR Code:
    {.include SRL/SRL.scar}

  6. #6
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    now i get the error that scar includes dont exist when i already downloaded them



    Include file c:\ program files \scar\includes\SLR\SLR.scar does not exsist

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

    Default

    i said change to {.include SRL/SRL.scar}

    notice SRL not SLR

  8. #8
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ohhhhh i get it but now i get line 28 , excpected

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

    Default

    grr... tell someone b4 u edit lol

  10. #10
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it says in line 28 comma now excpected!!!

    ill never be a scripter if its this complicated!!

  11. #11
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {HIHI12340 FIRST SCRIPT     PowerChopper
    AntiRandoms go to Jad}


    program PowerChopper;
    {.include SRL/SRL.scar}

    procedure AntiRandoms;
    begin
      FindTalk;
      FindNormalRandoms;
      if (FindFight = true) then
      begin
        RunAwayDirection('N');
        Wait(10000 + random(3000));
        runback;
      end;
    end;

    procedure FindNormalTree;
    begin
      repeat
        if(FindColor(x,y,2373688,587,397,0,0))then
        begin
          MMouse(x,y,0,0);
          Wait(100+random(70));
          Mouse(x,y,0,0,True);
          Wait(600+random(300));
        end;
        AntiRandoms;
        Wait(100);
      until(InvFull);
    end;


    begin
      SetupSRL;
      repeat
        FindNormalTree;
        DropTo(2,28);
      until(false);
    end.

  12. #12
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it still doesnt work!! al it does when i target the screen and press run it wont do anything!!

    (also tell me what the comma excpected in script means so i can fix for future scripts(if i have any future scripts))



    (updated powerchopper)

    SCAR Code:
    {HIHI12340 FIRST SCRIPT     PowerChopper
    AntiRandoms go to Jad}


    program PowerChopper;
    {.include SRL/SRL.scar}

    procedure AntiRandoms;
    begin
      FindTalk;
      FindNormalRandoms;
      if (FindFight = true) then
      begin
        RunAwayDirection('N');
        Wait(10000 + random(3000));
        runback;
      end;
    end;

    procedure FindNormalTree;
    begin
      SetupSRL;
      repeat
        if(FindColor(x,y,2373688,587,397,2,2))then
        begin
          MMouse(x,y,0,0);
          Wait(100+random(70));
          Mouse(x,y,0,0,True);
          Wait(600+random(300));
        end;
        AntiRandoms;
        Wait(100)
      until(InvFull);
    end;


    begin
    repeat
    FindNormalTree
    dropTo(2,28);
    until(false);
    end.

  13. #13
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    u forgot the other ')' in dropTo(2,28); line 39,

    also take out SetupSrl; from FindNormalTree and put it after begin in your main loop...

    SCAR Code:
    begin
      SetUpSrl;
      repeat
        FindNormalTree
        DropTo(2,28);
      until(false);
    end.

  14. #14
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks im testing now....(btw i +repped you because of the help)

  15. #15
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nope it doesnt work...the mouse just stays still

  16. #16
    Join Date
    Jun 2007
    Location
    Indiana
    Posts
    153
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  17. #17
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ^^what he said.. better yet

    to

    SCAR Code:
    if (FindColor(x,y,2373688,MSX1, MSY1, MSX2, MSY2)) then

  18. #18
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can you briefly explain what those do?

  19. #19
    Join Date
    May 2007
    Location
    Canada
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    if (FindColor(x,y,2373688,MSX1, MSY1, MSX2, MSY2)) then
    x,y - You should know what those are
    2373688 - Is the color
    MSX1, MSY1, MSX2, MSY2 - This makes a box specified by each cord.

    MSX1, MSY1, MSX2, MSY2 are the cords of the Main Screen.
    MMX1, MMY1, MMX2, MMY2 are the coods of the MiniMap.
    On vacation from July 2nd till middle of August


    Account Creator and Tutorial Island Runner (member | public) Errors fixed


    Check out my Complete forms tutorial. It will teach you everything you need to know about forms.

  20. #20
    Join Date
    Jun 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks much

    my script works !!! huray!

    now it clicks a tree then clicks another tree riteafter

    should i increase wait time on line 28?

  21. #21
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes

  22. #22
    Join Date
    Jun 2007
    Location
    Indiana
    Posts
    153
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    put it at like 4000
    edit:now you got the easy part done now comes all the multi player stuff and banking and all the hard stuff lol

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Errors with my script...
    By Runescapian321 in forum OSR Help
    Replies: 4
    Last Post: 01-06-2008, 04:04 PM
  2. First Script, Several Errors
    By Jackrawl in forum OSR Help
    Replies: 8
    Last Post: 09-11-2007, 10: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
  •