Results 1 to 4 of 4

Thread: Making a TPA have a Min amount of Pixels?

  1. #1
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default Making a TPA have a Min amount of Pixels?

    Title says it all :P
    Heres the TPA
    Simba Code:
    function SqFinder(x, y: Integer): Boolean;
    var
      CTS, I: Integer;
      TPA: TPointArray;
      ATPA: Array of TPointArray;
    begin
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.08, 0.16);
      FindColorsSpiralTolerance(MSCX, MSCY, TPA, 2765664, MSX1, MSY1, MSX2, MSY2, 2);
      ColorToleranceSpeed(CTS);
      ATPA := TPAToATPAEx(TPA, 15, 15);
      For I := 0 to High(ATPA) do
      begin
        MiddleTPAEx(ATPA[i], x, y);

        MMouse(x, y, 2, 2);
        Wait(500+Random(50));
        If(IsUpTextMultiCustom(['Gap'])) then
        begin
          Result := True;
          GetMousePos(x, y);
          Break;
        end;
      end;
    end;
    See it works but it finds abyssal Creatures, so I was wondering if anyone knew how I can add a Pixel Count?
    Thanks
    Mat



    ^^

  2. #2
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    if high(TPA) > x then
    if high(TPA) < x then
    etc
    Infractions, reputation, reflection, the dark side of scripting, they are.

  3. #3
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    ... Length(). For example,

    Simba Code:
    if (Length(TPA) > 250) then
    [10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts

  4. #4
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by Killerdou View Post
    if high(TPA) > x then
    if high(TPA) < x then
    etc
    Thanks Man <3



    ^^

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
  •