Results 1 to 5 of 5

Thread: More errors in script please help

  1. #1
    Join Date
    Jul 2008
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default More errors in script please help

    Failed when compiling
    Line 76: [Error] (12719:40): comma (',') expected in script C:\Documents and Settings\Robby Nicholas\Desktop\Scar\My Power Chopper.scar

    SCAR Code:
    procedure DropLogs; // This Drops the logs
    begin
         if FindObjCustom(x, y, ['Willow logs'] then
         DropAll;
    end;

  2. #2
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    if FindObjCustom(x, y, ['Willow logs']) then

    there =)

  3. #3
    Join Date
    Jul 2008
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i put that in and now it tells me i have invalid amount of parimeters in the same line

    SCAR Code:
    procedure DropLogs; // This Drops the logs
    begin
         if FindObjCustom(x, y, ['Willow logs']) then
         DropAll;
    end;

  4. #4
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Hi,

    Here's the problem,

    there are two other parameters that you didn't fill in, the color(s) and the tolerance.

    This should be
    SCAR Code:
    procedure DropLogs; // This Drops the logs
    begin
         if FindObjCustom(x, y, ['Willow logs']) then
         DropAll;
    end;

    SCAR Code:
    procedure DropLogs; // This Drops the logs
    begin
         if FindObjCustom(x, y, ['Willow logs'], [color(s)], tolerance) then
         DropAll;
    end;

    Example

    SCAR Code:
    procedure DropLogs; // This Drops the logs
    begin
         if FindObjCustom(x, y, ['Willow logs'], [2349871, 2049387], 4) then
         DropAll;
    end;

    Cut em2 it

    Edit: 4 is usually a good tolerance, and don't use these colors, they won't work... Just some advice, don't use the whole uptext, something might be blocking a part of it. I would use this since you can use multiple uptexts
    SCAR Code:
    if FindObjCustom(x, y, ['illo', 'ogs'], [color(s)], 4) then
    Formerly known as Cut em2 it

  5. #5
    Join Date
    Jul 2008
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the help i got my script to compile it is now in my first script section


    Closed.

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/with errors.
    By hihi12340 in forum OSR Help
    Replies: 21
    Last Post: 06-19-2007, 02:22 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
  •