Results 1 to 4 of 4

Thread: TPA problem/idea

  1. #1
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TPA problem/idea

    okay, i'm redoing my cowkill and collecthide procedure in my cow killing script, and for my cow killing, it's fairly accurate, but it also finds bones

    SCAR Code:
    Procedure CollectHide;
    var
      j,p,highest,hide: integer;
      H: Tpoint;
      Hc: TpointArray;
      Hca: TpointArrayArray;

    begin
      Hide := 12040128;
      FindColorsSpiralTolerance(MSCx,MSCy,Hc,Hide,MSX1,MSY1,MSX2,MSY2,2);
      if length(Hc) > 0 then
      begin
        Writeln('found some colors...');
        Hca := SplitTpaEx(Hc,10,10);
        highest := high(Hca);
        for p := 0 to highest do
        begin
          if length(Hca) > 2 then
          begin
            H := MiddleTPA(Hca[j]);
            if (h.x <> 0) and (h.y <> 0) then
            begin
              Mouse(h.x,h.y,5,5,False);
              if Chooseoption('owhi') then
              begin
                {Fast}Flag;
                //FindNormalRandoms;
                //HidesPicked := HidesPicked + 1;
                //Players[CurrentPlayer].integers[6] := Players[CurrentPlayer].integers[6] + 1;
                Break;
              end;
            end;
          end;
        end;
      end;
      Wait(3000);
    end;

    i was wondering if maybe i could make it so that if that's not where i wanted it, i could make those coords go inactive, so as long as i'm doing that same findcolors procedure, it wouldn't go to that place
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Use TPAToATPAEx(Hc, 10, 10), SplitTPA(Hc, 10) gets all the points that are maximum 10 pixels away from eachother.

    With the TPAToATPAEx you can easily then compare the length of the array to the x and y that you used in TPAToATPAEx, like a cow hide is just a white square, so you know that a 10*10 piece of cow hide is 100 pts.

  3. #3
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    You should be able to completely eliminate the bone color by using color tolerance speed 2 with the correct CTS2 modifiers.

  4. #4
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i don't totally understand what you mean, but it works, so thanks
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need an idea
    By Shuttleu in forum RS3 Outdated / Broken Scripts
    Replies: 9
    Last Post: 04-12-2008, 11:15 PM
  2. Best Idea Yet!
    By @lex in forum RS3 Outdated / Broken Scripts
    Replies: 5
    Last Post: 08-01-2007, 03:01 AM
  3. Need An Idea
    By geerhedd in forum RS3 Outdated / Broken Scripts
    Replies: 10
    Last Post: 05-29-2007, 11:01 AM
  4. Idea!
    By kuiren in forum Bot Information and Spottings
    Replies: 4
    Last Post: 08-27-2006, 03:32 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
  •