Results 1 to 4 of 4

Thread: Tpa's

  1. #1
    Join Date
    Sep 2008
    Location
    Earth
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Tpa's

    Ok i use FindColor its very simple and effective for meh and everyone is telling me to use TPA's so i read a tut for it and i made an auto miner but it doesn't work casue it clicks on the color but it keeps the mouse in the exact same spot so if the character moves it gets all screwed up am i doing something wrong?

  2. #2
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    post your TPA

  3. #3
    Join Date
    Sep 2008
    Location
    Earth
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    var
      MyTPA : TPointArray;
      MyPoint : TPoint;
      x, y, i : Integer;
     
    begin
      FindColorsTolerance(MyTPA, Color, MSx1, MSy1, MSx2, MSy2, 10);
      if Length(MyTPA) = 0 then FindColorsTolerance(MyTPA, Color, MSX1,MSY1, MSX2, MSY2, 10);
      for i := 0 to High(MyTPA)do
      begin
        MyPoint := MyTPA[i]
        MMouse (MyPoint.x, MyPoint.y, 3, 3);
        if (IsUpText('ine') then
        begin
          GetMousePos(x, y);
          Mouse(x, y, 5, 5, True);
          Wait(500+random(250));
          Exit;
        end;
      Wait(350+random(350));
      end;
    end;

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    You aren't looping your TPA, so after it mines, you should recall it. So it finds another rock.

    Also, side advice, look into Using T2DPointArrays as well.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. TPA's...
    By Floor66 in forum OSR Help
    Replies: 4
    Last Post: 03-01-2009, 06:47 PM
  2. Grouping TPA's
    By nielsie95 in forum OSR Advanced Scripting Tutorials
    Replies: 9
    Last Post: 12-10-2008, 05:56 AM
  3. TPA's explained.
    By mastaraymond in forum OSR Advanced Scripting Tutorials
    Replies: 18
    Last Post: 08-28-2008, 04:16 PM
  4. Function help with TPA's
    By FuruChan in forum OSR Help
    Replies: 5
    Last Post: 06-28-2008, 11:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •