Results 1 to 7 of 7

Thread: BabarianFisher help please:(

  1. #1
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    BabarianFisher help please:(

    Hey everyone.
    I am working on a Babarian fisher, with the ability to bait or lure fish.
    Everything works good, but there are a few problems
    WhirlPoolPlace, AreWeFishing and FollowFishingSpot always return false for some odd reason.
    So please look to those functions and the way I used them.
    I think I call them wrong, but I'm not sure.
    After a few hours of modifying them I have no idea anymore what to do
    So please, help me out
    I'll rep++ you.
    I uploaded the script as a file.
    Thanks a lot for your time and help,
    PvH

    P.s. The script isn't done yet

  2. #2
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not sure, but on FollowFishingSpot, you never tell the function to have the result false, so that could be a problem? I really don't know, maybe something like this?

    SCAR Code:
    Function FollowFishingSpot(Var x, y: integer): Boolean;

    Var
       FishSpot, FishPoint1, FishPoint2: TPointArray;
       MiddleSpot: TPoint;
       CTS: Integer;
    Begin
      if not LoggedIn then Exit;
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      FindColorsTolerance(FishPoint1, 14796717, x - 40, y - 40, x + 40,  y + 40, 40);
      FindColorsTolerance(FishPoint2, 12104108, x - 40, y - 40, x + 40,  y + 40, 40);
      FishSpot := CombineTPA(FishPoint1, FishPoint2);
      If Length(FishSpot) > 3 Then
      Begin
        Result := True;
        MiddleSpot := MiddleTPA(FishSpot);
        x := MiddleSpot.X;
        y := MiddleSpot.Y;
      End else
      Begin
        writeln('Omg, we couldn''t follow the fishing spot...');
        Result := False;
      End;
      ColorToleranceSpeed(CTS);
    End;

  3. #3
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    LMAO PvH, even you told me that you should not use Result := False;

    but ill have a look at it, im a nub so... =3

    nope, i couldnt solve this problem.

  4. #4
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry, I forgot, SCAR automatically sets a function to False until you set it to true so it is unnecessary, at least that is what I was just told . But I always do that anyways, I don't really know why.

  5. #5
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try tweaking the count for the number of pixels in your tpa

    if length(WhirlPool) > 230 then

    hmmm no that won't be it. Try using FindColorsSpiralTolerance
    ~ Metagen

  6. #6
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm, thanks for taking you time guys...
    But it still didn't solve my problem
    It is my first fisher, so I'm a bit n00by at it
    Anyone who can fix this for me?

    PvH

    EDIT:
    I got it done, no need anymore guys.
    I needed to use other variables to store coörds in

  7. #7
    Join Date
    Oct 2007
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    look thats my pvh he solves his problems by him self

    good lucky finishing the fisher
    XD

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BabarianFisher By PvH
    By PvH in forum RS3 Outdated / Broken Scripts
    Replies: 120
    Last Post: 08-01-2008, 03:35 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
  •