View Full Version : rs_ScanMiniMap
zenma
08-15-2007, 02:48 AM
how do i use this function? i have this function rs_ScanMiniMap(iFrom, iTo, Distance, Color: Integer): Integer; it helps a little bit,but i dont know where it stores anything of where it finds anything on the minimap. any help would be appreciated. i tried searching
Tim0suprem0
08-15-2007, 03:16 AM
I was wondering about all the rs_(insert function here)'s as well, are they just included with SCAR? Or how does that work because it only has things like (iFrom, iTo, Distance, Color: Integer): Integer; and not any actual code. I wanted to fix the Makecompass but I didn't know how rs_ScanMiniMap works.
zenma
08-15-2007, 03:47 AM
yeah same here tim...kind of a nooby way to fix makecompass but better than nothing =). really inaccurate kinda function ZenmaCompass(Side: char): Boolean;
var
Fx, Fy, dx, dy: Integer;
ComMark: Integer;
Left_Right: Boolean;
begin
MarkTime(ComMark);
case LowerCase(Side) of
'n':
begin
Fx := 562;
Fy := 14;
end;
'e':
begin
Fx := 555;
Fy := 19;
end;
's':
begin
Fx := 561;
Fy := 26;
end;
'w':
begin
Fx := 568; //100%
Fy := 20;
end;
else
begin
WriteLn('MakeCompass - Value wasn''t n, e, s, or w!');
Exit;
end;
end;
if FindColor(dx, dy, 723587, Fx - 1, Fy - 1, Fx + 1, Fy + 1) then
begin
writeln('already at angle');
Result := True;
Exit;
end
case random(2) of
1: Left_Right := True
2: Left_Right := False
end;
if Left_Right then KeyDown(VK_RIGHT)
else KeyDown(VK_Left);
repeat
Wait((1) + Random(10));
if (FindColor(dx, dy, 723587, Fx - 1, Fy - 1, Fx + 1, Fy + 1)) then
begin
Result := True;
writeln('made compass to angle');
Break;
end;
until (TimeFromMark(ComMark) > 7000);
if Left_Right then KeyUp(VK_Right)
else KeyUp(VK_Left);
end;
the rs_functions are SCAR not SRL functions. But are in scar for the purpose of runescape. Like runescape specific. the other functions can be used elsewhere. But such thigns as minimap angles and what not obviously wont be used anywhere else other then rs.
Markus
08-15-2007, 06:32 AM
RS_ScanMinimap counts the number of a color on the minimap within an angle from iFrom and iTo, at distance Distance.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.