crossback7
Active Member
SCAR is not working at the moment because of the recent RS update. Wait for SRL to be updated (Should be soon) and try again then. Do NOT auto until then. It's just asking to be banned.
{*******************************************************************************
function MakeCompass(Side: String);
By: Wizzup? and modified by Ron
Description: Aligns RS to specified direction
direction: set to: North='n', South='s', East='e', West='w'
*******************************************************************************}
function MakeCompass(Side: char): Boolean;
var
Fx, Fy, dx, dy, StartPos, EndPos: Integer;
ComMark: Integer;
Left_Right: Boolean;
begin
StartPos := FindCompassAngle;
MarkTime(ComMark);
case LowerCase(Side) of
'n':
begin
Fx := 561;
Fy := 13;
if StartPos > 180 then EndPos := 360 else EndPos := 0;
end;
'e':
begin
Fx := 554;
Fy := 20;
if StartPos < 270 then EndPos := 90 else EndPos := 450;
end;
's':
begin
Fx := 562;
Fy := 26;
EndPos := 180;
end;
'w':
begin
Fx := 567;
Fy := 21;
if StartPos < 90 then EndPos := -90 else EndPos := 270;
end;
else
begin
WriteLn('MakeCompass - Value wasn''t n, e, s, or w!');
Exit;
end;
end;
if FindColor(dx, dy, 723587, Fx - 2, Fy - 2, Fx + 2, Fy + 2) then
begin
Result := True;
Exit;
end
if StartPos > EndPos then Left_Right := True
else if StartPos < EndPos then Left_Right := False
else exit;
if Left_Right then KeyDown(VK_RIGHT)
else KeyDown(VK_Left);
repeat
Wait((10) + Random(10));
if (FindColor(dx, dy, 723587, Fx, Fy, Fx, Fy)) then
begin
Result := True;
Break;
end;
until (TimeFromMark(ComMark) > 7000);
if Left_Right then KeyUp(VK_Right)
else KeyUp(VK_Left);
end;
im confused :s