Results 1 to 4 of 4

Thread: Feedback and help

  1. #1
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Feedback and help

    Ok heres my little script im just messing around with to get use to the SRL functions and procedures

    Code:
    program gppickin;
    {.include srl\srl\core\Globals.scar}
    {.include srl\srl\core\object.scar}
    
    
    var clicks: Integer;
    
    const
    Itemcolor1=1413297;
    itemcolor2=1815773;
    itemcolor3=1413297;
    
    
    Procedure finditems;
    begin
    repeat
    if (findobjmulti('Coins',itemcolor1,itemcolor2,itemcolor3,5)) and isuptext('Coins') then
       begin
       movemousesmooth(x,y);
       cmouse(x,y,1,2);
       clicks:=clicks+1;
       end;
      Until(not(findobjmulti('Coins',itemcolor1,itemcolor2,itemcolor3,5)))
    end;
    
    begin
    repeat
    finditems;
    until(clicks>=25)
    end.
    When compiled I get this Line 31: [Error] (389:5): Unknown identifier 'FindMSColorTol' in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\object.scar Any help with this and any other pointers for this script would be great, thank you.
    SUMMER BREAK be back when I want to

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

    Default

    Include all of SRL.

  3. #3
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program gppickin;
    {.Include SRL/SRL.Scar}
    // this include included both of the includes that you originally had
    // the reason you were getting unknown identifier was because this include
    // wasnt included.
    var clicks: Integer;

    const
    Itemcolor1=1413297;
    itemcolor2=1815773;
    itemcolor3=1413297;


    Procedure finditems1; //the original procedure name was already included in
    //srl, so you needed to change the names.
    begin
    repeat
    if (findobjmulti('Coins',itemcolor1,itemcolor2,itemcolor3,5)) and isuptext('Coins') then
       begin
       movemousesmooth(x,y);
       mouse(x,y,1,2,true);
       clicks:=clicks+1;
       end;
      Until(not(findobjmulti('Coins',itemcolor1,itemcolor2,itemcolor3,5)))
    end;

    begin
    setupsrl;//added this
    repeat
    finditems1;
    until(clicks>=25)
    end.

  4. #4
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, thats more than I expected! Thanks a lot
    SUMMER BREAK be back when I want to

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need Feedback on my first script!
    By unrealman in forum RS3 Outdated / Broken Scripts
    Replies: 7
    Last Post: 10-29-2008, 11:54 PM
  2. Can I get some feedback on..
    By Torrent of Flame in forum News and General
    Replies: 14
    Last Post: 04-19-2008, 06:07 PM
  3. can i have some feedback on..
    By NiCbaZ in forum News and General
    Replies: 0
    Last Post: 04-10-2008, 11:46 PM
  4. New Sig (Feedback Please)
    By Scathis in forum Graphics and Multimedia
    Replies: 14
    Last Post: 01-19-2008, 03:50 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
  •