ollie
2006-05-28 13:12:58
i Thought, Like a Real Human, You Sometimes Miss The Target you want.
i made it have more chance of getting the Right Target..
i havent Tested it so tell me if its complete bollocks or if its ok :P
i made it have more chance of getting the Right Target..
i havent Tested it so tell me if its complete bollocks or if its ok :P
procedure HitOrMiss(x, y, rx, ry: integer);
var
HitnMiss : Integer;
begin
repeat
MouseSpeed:= 10 + Random(6);
HitnMiss:= random(7);
case HitnMiss of
0: MMouse(x - 2 + random(164), y - 5 + random(23), rx - 3 + random(56), ry + random(5));
1: MMouse(x - 2 + random(73), y - 5 + random(97), rx - 3 + random(62), ry + random(105));
2: MMouse(x - 2 + random(30), y - 5 + random(27), rx - 3 + random(12), ry + random(45));
3: MMouse(x, y, rx, ry);
4: MMouse(x, y, rx, ry);
5: MMouse(x, y, rx, ry);
6: MMouse(x, y, rx, ry);
end;
until(HitnMiss > 2)
end;