Er1k
2012-01-13 21:45:53
ClickNorth in SRL5 does not check whether the compass is within 5 degrees from North and always clicks north first before setting the angle. This should be fixed by adding the check from SRL4 back to the function.
For instance it would look like this:
Thanks devs!
For instance it would look like this:
procedure ClickNorth(AngleHigh: Integer);
begin
if InRange(Round(rs_GetCompassAngleDegrees), 5, 355) then //from srl4
if (Random(4) = 1) then
begin
Mouse(542, 24, 15, 15, mouse_right);
WaitOptionMulti(['ace', 'orth'], 1200);
end else
Mouse(542, 24, 15, 15, mouse_left);
SetAngle(AngleHigh);
end;Thanks devs!