Results 1 to 3 of 3

Thread: First script help (Non runescape related)

  1. #1
    Join Date
    May 2008
    Posts
    308
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default First script help (Non runescape related)

    If it doesn't find th scar icon, i wan't it to do line2 aswell as doing writeln('Sorry, the scar icon is hiding somewhere or your color color simlpy sucks');

    If it does find the icon i want it to do line1 aswell as writeln('Found the scar icon, hurray!')

    but it does line1 and line2 even if it finds it or not.

    And could you post the fixed script AND add standars to it?
    I heard something about const and var on the top, but... i dont know... whatever.

    Thanks in advance

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need a begin end after your else to do both lines:

    You have:

    SCAR Code:
    procedure FindScarIcon;
    begin
    if (findcolor(x,y,Scaricon,0,3,15,16))  then
     begin
      writeln('Found the scar icon, hurray!')
       line1;
     End else
      writeln('Sorry, the scar icon is hiding somewhere or your color color simlpy sucks');
       line2;
    end;

    Needs to be:

    SCAR Code:
    procedure FindScarIcon;
    begin
    if (findcolor(x,y,Scaricon,0,3,15,16))  then
     begin
      writeln('Found the scar icon, hurray!')
       line1;
     End else
     begin
      writeln('Sorry, the scar icon is hiding somewhere or your color color simlpy sucks');
       line2;
     end;
    end;

  3. #3
    Join Date
    May 2008
    Posts
    308
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Ok, that makes sense. Thanks.

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
  •