minimap.clickCompass();
from srl-6 include:
Simba Code:
(*
clickCompass
------------
.. code-block:: pascal
procedure TRSMinimap.clickCompass(faceSouth: boolean = false);
Clicks the Runescape compass to set the angle to north. If **faceSouth** is true,
it will right click and make the compass south *(default = false)*
.. note::
- by Olly
- Last Modified: 12 March 2015 by The Mayor
Example:
.. code-block:: pascal
minimap.clickCompass();
minimap.clickCompass(true); // To face south
*)
procedure TRSMinimap.clickCompass(faceSouth: boolean = false);
begin
mouseCircle(self.button[MM_BUTTON_COMPASS].center.x, self.button[MM_BUTTON_COMPASS].center.y,
self.button[MM_BUTTON_COMPASS].radius, MOUSE_MOVE);
if faceSouth or (random(4) = 2) then
begin
fastClick(MOUSE_RIGHT);
wait(random(100, 200));
case faceSouth of
true: chooseOption.select(['Face So']);
false: chooseOption.select(['Face No']);
end;
end else
fastClick(MOUSE_LEFT);
self.mouseOffCompass();
wait(150 + random(300));
print('TRSMinimap.clickCompass(): Clicked compass', TDebug.SUB);
end;