mormonman
2011-12-20 06:51:04
function InMordaut: Boolean;
var
dots: TPointArray;
pBlack: Integer;
midP: Tpoint;
Begin
dots := GetMiniMapDots('npc');
pBlack := PercentBlackMM;
Result := (Length(dots) = 7) and ((pBlack > 60) and (pBlack < 70));
if Result then
begin
midP := MiddleTPA(dots);
//writeln(Distance(midP.x, midP.y, MMCX, MMCY));
Result := (Distance(midP.x, midP.y, MMCX, MMCY) < 38);
end;
end;