Results 1 to 5 of 5

Thread: help with lobster fishing function

  1. #1
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default help with lobster fishing function

    heres fucntion

    function FindSpot(Tol: Integer): Boolean;
    var
    a,b: Integer;
    Box,Box2: TBox;
    begin
    if Not LoggedIn then Exit;
    if(FindColorTolerance(a,b,14796717,0,0,750,500,Tol ))then
    begin
    Mouse(a,b,2,2,False)
    FTWait(2)
    if(ChooseOption('Cage'))then
    begin
    Result:= True;
    FFlag(0);
    end else
    begin
    Box:= IntToBox(a-30,b-30,a+30,b+30)
    if FindColorSkipBoxTolerance(a,b,14796717,0,0,750,500 ,Tol,Box)then
    begin
    Mouse(a,b,2,2,false)
    FTWait(2)
    if ChooseOption('Cage') then
    begin
    Result:= True;
    FFlag(0)
    end else
    begin
    Box2:= IntToBox(a-30,b-30,a+30,b+30)
    if FindColorSkipBoxArrayTolerance(a,b,14796717,0,0,75 0,500,Tol,[Box,Box2]) then
    begin
    Mouse(a,b,2,2,false)
    FTWait(2)
    if ChooseOption('Cage') then
    begin
    Result:= True;
    FFlag(0)
    end;
    end;
    end;
    end;
    end;
    end;
    end;

    {FUNCTION FIND SPOT BY KING OF KNIVES}


    i get Line 82: [Error] (12877:56): comma (',') expected in script
    thats line 7 of the fuinction here
    Help with it anyone?

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Here there were many errors in there

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

    function FindSpot(Tol: Integer): Boolean;
    var
    a,b: Integer;
    Box,Box2: TBox;
    begin
    if Not LoggedIn then Exit;
    if(FindColorTolerance(a,b,14796717,0,0,750,500,Tol ))then
    begin
    Mouse(a,b,2,2,False)
    FTWait(2)
    if(ChooseOption('Cage'))then
    begin
    Result:= True;
    FFlag(0);
    end else
    begin
    Box:= IntToBox(a-30,b-30,a+30,b+30)
    if FindColorSkipBoxTolerance(a,b,14796717,0,0,750,500 ,Tol,Box)then
    begin
    Mouse(a,b,2,2,false)
    FTWait(2)
    if ChooseOption('Cage') then
    begin
    Result:= True;
    FFlag(0)
    end else
    begin
    Box2:= IntToBox(a-30,b-30,a+30,b+30)
    if FindColorSkipBoxArrayTolerance(a,b,14796717,MSX1,MSY1,MSX2,MSY2,Tol,[Box,Box2]) then
    begin
    Mouse(a,b,2,2,false)
    FTWait(2)
    if ChooseOption('Cage') then
    begin
    Result:= True;
    FFlag(0)
    end;
    end;
    end;
    end;
    end;
    end;
    end;

    Please use standards .

    Things I Changed :

    1.Added a comma between the 70 and the 0.
    2. Got rid of the extra 500 parameter
    3. Added MSX1,MSY2


    Hope I Helped

  3. #3
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That error often means theres either a "," or ")" missing in the line
    Project: Welcome To Rainbow

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Also you may be better of By using FindObjTPA to Find the fishing Spot, Its much more accurate and reliable

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

    Default

    Also please learn to use the SCAR tags. It makes it much easier for us to read and help out =]. Also as nauman said, use standards =]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SRL 4] Fishing Guild Lobster Fisher
    By King of Knives in forum RS3 Outdated / Broken Scripts
    Replies: 110
    Last Post: 06-29-2009, 03:27 PM
  2. Replies: 6
    Last Post: 04-16-2009, 06:40 AM
  3. fishing guild lobster and shark fisher
    By TheChineseMan in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 08-27-2008, 12:37 AM
  4. Fishing Guild Lobster Catcher
    By Prince in forum First Scripts
    Replies: 17
    Last Post: 02-06-2008, 07:46 PM
  5. Need Fishing guild lobster/shark fisher.
    By Godlike007 in forum RS3 Outdated / Broken Scripts
    Replies: 5
    Last Post: 07-12-2007, 12:22 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
  •