SRL Archive - SRL Archives

ClickNorth - MapWalk.scar


Rich

2009-09-18 13:22:09

{*******************************************************************************
procedure ClickNorth(AngleHigh : True);
By: R1ch
Description: Clicks the compass to make it perfect North. Will set angle at
highest depending on AngleHigh
*******************************************************************************}
procedure ClickNorth(AngleHigh : True);
begin
if Random(4) = 1 then
begin
Mouse(542, 24, 15, 15, False);
WaitOptionMulti(['ace', 'orth'], 1200);
end else
Mouse(542, 24, 15, 15, True);
if AngleHigh then
begin
Wait(RandomRange(500, 1250));
SetAngle(True);
end;
end;

A simple little procedure which will click on the compass next to the mini-map to make it perfect North. It will set the angle of the screen to the highest depending on AngleHigh.

Richard

Rich

2009-09-19 21:28:03

Bada bada bum bum ba bump! Ow!

Sorry, I but I wants attentions!

Gu3st...

2009-09-19 23:03:39

Maybe decrease the waiting time? Isn't it a bit much with 2 seconds? :P

Neehosoft

2009-09-19 23:46:26

Yay i use this in script i will release once i get 92 fm

Rich

2009-09-20 17:38:38

From: Zyt3x
Maybe decrease the waiting time? Isn't it a bit much with 2 seconds? :P


Changed.

From: Neehosoft
Yay i use this in script i will release once i get 92 fm


:)

Changed it a bit also, so that it will right click a quarter of the time.

EvilChicken!

2009-09-20 20:37:43

Committed, thanks!