Results 1 to 7 of 7

Thread: power of tpas

  1. #1
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default power of tpas

    pretty nice

    Attached Images Attached Images
    • File Type: jpg a.jpg (48.2 KB, 226 views)

  2. #2
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    are you filling the ground then doing something like ReturnPointsNotInTPA? Pretty nice, would love to see the filtering code

  3. #3
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by jstemper View Post
    are you filling the ground then doing something like ReturnPointsNotInTPA? Pretty nice, would love to see the filtering code
    yeah pretty much. Trying to figure out how to determine to filter the remaining items out. Like I am trying to sort the object TPAs on the ground based off east south west or north based off the red MM dot. Having trouble this is just the mess im working on, its still a procedure

    [simba]procedure getMiscObjects();
    var
    redDotsTPA, groundTPA, objectsTPA:TPointArray;
    redDotsATPA, groundATPA, objectsATPA:T2DPointArray;
    nearestDrop, me:TPoint;
    i:integer; // 2 to 50 so 1:25
    begin

    findColorsTolerance(redDotsTPA, 1776620, 547, 57, 720, 212, 43);

    redDotsATPA := clusterTPA(redDotsTPA, 1);
    filterTPAsBetween(redDotsATPA, 25, 200);
    sortATPAFrom(redDotsATPA, Point(630, 132));

    // writeln(length(redDotsATPA));
    if (length(redDotsATPA) > 0) then
    begin
    nearestDrop := redDotsATPA[0].getBounds().getMiddle();
    me := Point(630, 132);
    // nearestDrop := Point((630 - nearestDrop.x) * 25, (132 - nearestDrop.y) * 25);

    //end;

    //exit;


    writeln(nearestDrop);

    findColorsTolerance(groundTPA, 2312279, intToBox(7, 49, 517, 383), 6, colorSetting(2, 0.18, 1.06));
    groundATPA := clusterTPA(groundTPA, 3);
    filterTPAsbetween(groundATPA, 0, 700);
    objectsTPA := returnPointsNotInTPA(mergeATPA(groundATPA), intToBox(7, 49, 517, 383));
    objectsATPA := clusterTPA(objectsTPA, 2);
    filterTPAsbetween(objectsATPA, 0, 100);
    filterTPAsbetween(objectsATPA, 400, 50000);

    if (me.x - nearestDrop.x) > (me.y - nearestDrop.y)





    sortATPAFrom(objectsATPA, Point(267 - ((630 - nearestDrop.x) * 25), 217 - ((132 - nearestDrop.y) * 25)));

    mouse(Point(267 + ((630 - nearestDrop.x) * 25), 217 + ((132 - nearestDrop.y) * 5)));
    exit;
    for i := 0 to high(objectsATPA) do
    begin
    mouse(objectsATPA[i].getBounds().getMiddle());
    wait(500);
    end;
    end;


    right now i'm just trying to figure out a point that is closest to the drop, i'm not trying to find an exact point to the drop because I already have a list of points that is the potential drop, I just want a close one, that way i can sort all the potential drops from that point so when i scroll throufh them that i will be the most likely to rifht click on the one that is the real drop i could use the fungus but there could be other things blocking it such as players and stuff. plus it looks better this way it's more likely to work and makes you think with your brain

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    such as players familirs, people, troll items etc etc

  5. #5
    Join Date
    Jun 2007
    Posts
    310
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default

    Silly me :O I thought you were making a post about tapas not tpas

  6. #6
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by lolskilla View Post
    Silly me :O I thought you were making a post about tapas not tpas
    tapas are pretty powerful ngl
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  7. #7
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Didn't know in NOTA that SRL Members forgot how to wrap code and how to edit posts. Looks like you learn something new everyday.

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
  •