pretty nice
pretty nice
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
such as players familirs, people, troll items etc etc
Silly me :O I thought you were making a post about tapas not tpas
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)