Element17
2014-07-05 02:57:55
I just don't know how to do it really. I guess I could make a box around the player and search for the player dot inside the box.
It is also late here sorry… :/
It is also late here sorry… :/
{
Want to search X-distance from yourself and then give result for below function
}
function checkForPlayer(): boolean;
var
dot: TPointArray;
begin
if not isloggedIn() then
exit;
dot := minimap.getDots(MM_DOT_PLAYER, minimap.getBounds());
if (length(dot) > 2) then
begin
writeln('Found' +toStr(length(dot)) + 'Players on the minimap');
result := true;
exit;
end;
writeln('Not enough players found on the minimap to care');
end;