Results 1 to 4 of 4

Thread: Need help with tpa

  1. #1
    Join Date
    Dec 2011
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Need help with tpa

    Ok i can not get this to find a yew tree.
    What am i doing wrong?

    Simba Code:
    function FindYew(var x, y: Integer) :Boolean;
    var
      CTS, I: Integer;
      TPA: TPointArray;
      ATPA: Array of TPointArray;
    begin
      Antirandoms;
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.14, 0.043);
      FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MIX1, MIY1, MIX2, MIY2,6);
      aTPA := TPAToATPAEx(TPA, 20, 20);

      For I := 0 to High(ATPA) do
      begin
        MiddleTPAEx(ATPA[i], x, y);
        MMouse(x, y, 2, 2);
        If(IsUpTextMultiCustom(['ew','hop','own'])) then
        begin
          Writeln('Found Yew Tree');
          Result := True;
          GetMousePos(x, y);
          Break;
        end;
      end;
    end;

  2. #2
    Join Date
    Oct 2008
    Posts
    500
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MIX1, MIY1, MIX2, MIY2,6);

    This line makes your function look in the inventory instead of the main screen.

  3. #3
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Simba Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MIX1, MIY1, MIX2, MIY2,6);

    To:

    Simba Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MSX1, MSY1, MSX2, MSY2,6);

    You were having it search the inventory rather than the main screen.


    E: Kitchenrange. D:

  4. #4
    Join Date
    Dec 2011
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    Simba Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MIX1, MIY1, MIX2, MIY2,6);

    To:

    Simba Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MSX1, MSY1, MSX2, MSY2,6);

    You were having it search the inventory rather than the main screen.


    E: Kitchenrange. D:
    WOW im dumb haha thanks:P

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
  •