Results 1 to 3 of 3

Thread: Getting a problem with a script im trying to make

  1. #1
    Join Date
    Jan 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Getting a problem with a script im trying to make

    So first things first the script.

    SCAR Code:
    program EarthRunePickup;

    Var
    x,y:integer

    Procedure FindRune;
    Begin
    FindColor(var x,y:Integer;936815,209,185,-1244215,-5094690);
    if(FindColor(x,y,936815,209,185,-1244215,-5094690)=true);
    then
    clickmouse(x,y,True);
    End;

    begin
    Repeat
    FindRune;
    Until(false);
    end.

    So, im getting this error right now.
    Line 6: [Error] (6:1): Semicolon (';') expected in script

    But there already is a semicolon in the line. Also please help me with anything you see wrong with my script. It probably won't work, but I want to see if I can make it work.

    Also for some more information the script is picking up earth runes that spawn on the ground.

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    : <--- colon

    ; <---- semi colon


    you are missing ; at the end

    x,y:integer;



    don't use clickmouse, use mouse from srl, which means you won't need x,y

    This will get you banned. For some practice scripts that won't get you banned, try janilabos massive scar learning package, see part 1 of my FAQ (link in sig)

  3. #3
    Join Date
    Jan 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the tip, and that fixed that error. Now for the rest >.<

    Edit: How do i include srl? Do I do it like regular includes like {.include srl.scar}, or is it a different way?
    (Im asking this because there is no srl.scar in the include file. Its in Scar 2.03/Include/Srl/srl.scar)
    Edit2:Nevermind saw your test script and its {.include SRL/srl.scar}

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how do i make a script!
    By brent8900 in forum First Scripts
    Replies: 4
    Last Post: 02-22-2008, 10:01 PM
  2. How Do U Make A Script
    By tbeck3r in forum OSR Help
    Replies: 4
    Last Post: 02-19-2008, 11:57 PM
  3. Need Someone To Make Script With
    By skilld u in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 10-06-2007, 10:21 PM
  4. What script to make
    By steth1010 in forum RS3 Outdated / Broken Scripts
    Replies: 9
    Last Post: 05-11-2007, 09:44 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
  •