marpis
2009-05-06 17:22:41
I made this function to find all NPCs in MM.
It is very accurate, but if the NPCs are right next to each other it sometimes only notices the other. That shouldn't be a big deal anyway…
edit: removed autocolor, because it was proved useless :( b-b-but i did my best!
edit2: now its even shorter
It is very accurate, but if the NPCs are right next to each other it sometimes only notices the other. That shouldn't be a big deal anyway…
edit: removed autocolor, because it was proved useless :( b-b-but i did my best!
edit2: now its even shorter
// GetNPCsIn by marpis
function GetNPCsIn(x1, y1, x2, y2: integer): TPointArray;
begin
FindColorsSpiralTolerance(MMCX, MMCY, result, 1179390, x1, y1, x2, y2, 18);
RAaSTPA(result, 4);
SortTPAFrom(result, Point(MMCX, MMCY));
end;