Bad Boy JH
2010-02-04 05:52:09
Now for my upcoming script I am looking to find a group of people, because that would be a very good indicator of where the next tree will be, because people tend to cluster around the next tree to spawn, so here is what I have so far.
So what I need is a function to find a cluster of the TPoints, which would indicate the largest grouping of people…
Just an update on how the script is going…
So far I have a pretty good woodcutting procedure and this will finish it off, and I have a fairly simple Radial Walking Procedure to get me to the willows,
Procedure GroupofPeople;
var
x, y:integer;
TPA:TPointArray;
ATPA:T2DPointArray;
begin
findcolorstolerance(TPA, 16777215, MMX1, MMY1, MMX2, MMY2, 10);
RemoveDistTPointArray(MSCX, MSCY, 5, TPA, False);
ATPA := SplitTPAEx(TPA, 4, 4);
for i:=0 to high(ATPA) do
TPA[i] := middleTPA(ATPA[i]);
//so far each TPA value is a person
end;So what I need is a function to find a cluster of the TPoints, which would indicate the largest grouping of people…
Just an update on how the script is going…
So far I have a pretty good woodcutting procedure and this will finish it off, and I have a fairly simple Radial Walking Procedure to get me to the willows,