Results 1 to 4 of 4

Thread: TPA solution

  1. #1
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    TPA solution

    Guys, I'm planning to use TPA's and T2dPointArrays to find my iron rocks.
    this is my "part of the script for finding the rocks" Can you guys tell me What i do next, and how I can now put this into my script?
    SCAR Code:
    function Findores:boolean;
    var
      tx,ty,i: integer;
      IronPoints: TpointArray;
      Iron2D : T2DPointArray;
      Ironpoint : Tpoint;
    begin
      if not LoggedIn then Exit;
      x:=MSCX;
      y:=MSCY;
      begin
        FindColorsSpiralTolerance(x,y,IronPoints,3030370,MSX1,MSY1,MSX2,MSY2,10);
        Iron2D:= TPAtoATPAEx(IronPoints,30,30);
        for i:= 0 to length(Iron2D)-1 do
        begin
          if not LoggedIn then
          begin
            break;
          end;
          IronPoint:= MiddleTPA(Iron2D[i]);
          tx:= IronPoint.X;
          ty:= IronPoint.Y;
          MMouse(tx,ty,2,2);
          wait(90+ random(45));
          if isuptext('ine')then
          begin
            GetMousePos(x,y);
            OreColor:= GetColor(tx,ty);
            MineIron:= true;
            result:= true;
            break;
            exit;
          end;
        end;
      end;
    end;

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't double post -.- and why are you still dark green?


    tx:= IronPoints.X;
    ty:= IronPoints.Y;
    ?
    ~Hermen

  3. #3
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    lol k thx...ye thats because i knew i was going to make srl when i applied but then again sum ppl didnt like it so i UNapplied..till I have a PERFECT script where EVERYONE will love it.

  4. #4
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works?

    SCAR Code:
    GetMousePos(x,y);
            OreColor:= GetColor(tx,ty);
            MineIron:= true;
    Try to do mousepos(tx,ty);
    ~Hermen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. the final solution to xfering
    By ░░░░░ in forum Bot Information and Spottings
    Replies: 25
    Last Post: 01-31-2008, 05:02 AM
  2. Jagex's solution to... us :)
    By tehkow in forum RuneScape News and General
    Replies: 2
    Last Post: 11-19-2007, 01:08 AM
  3. need solution on how to fix this error
    By nihao454 in forum News and General
    Replies: 1
    Last Post: 08-31-2007, 03:24 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
  •