Minimap¶
The Minimap include contains all igeneral Minimap related functions
Contents
rs_GetCompassAngleRadians¶
function rs_GetCompassAngleRadians: Extended;
Returns the compass angle in radians.
Note
by Narcle & Flight
Example:
rs_GetCompassAngleDegrees¶
function rs_GetCompassAngleDegrees: Extended;
Returns the compass angle in degrees.
Note
by Wizzup?
Example:
rs_OnMinimap¶
function rs_OnMinimap(x, y: Integer): Boolean;
Checks wether the specified point is on the minimap.
Note
by Raymond
Example:
FindFlag¶
function FindFlag(var X, Y: Integer): Boolean;
Returns true if the flag is found on the minimap.
Note
by Narcle
Example:
if (FindFlag(x, y)) then
begin
writeln('Flag found');
mouse(x, y, 3, 3, true);
end;
FindFlag2¶
function FindFlag2(var X, Y: Integer): Boolean;
Returns true if the flag is found on the minimap.
Note
by Home
Example:
if (FindFlag2(x, y)) then
begin
writeln('Flag found');
mouse(x, y, 3, 3, true);
end;
FlagDistance¶
function FlagDistance: Integer;
Returns distance in pixels your char dot is from flag on mini-map
Note
by weequ
Example:
WalkingToFlag¶
function WalkingToFlag(WaitTime: Integer): Boolean;
Checks if your charachter is moving; stores current FlagDistance to a variable, waits “WaitTime” ms and then checks the FlagDistance again. If it differs from the Distance stored in the variable, function returns true.
Note
by EvilChicken!
Example:
FlagEx¶
function FlagEx(Dist: Integer; RoadColorCheck: Boolean): Boolean;
Waits until Flag is within “Distance” distance.
Note
by Wizzup? / WT-Fakawi / ZephyrsFury / N1ke! / weequ
Example:
MouseFlagEx¶
function MouseFlagEx(X, Y, rX, rY, Xmod, Ymod, FlagDist: Integer; CheckForFlag, CheckForRoadColor: Boolean): Boolean;
MouseFlag, MFF & MFNF combined into one procedure. X, Y is the point you want to click, rX, rY are randomness modifiers. Xmod and Ymod is the adjustment for each click without finding a flag. FlagDist is how close you want to be (in pixels) to the flag before exiting. CheckForFlag = True if you want to exit the function if a flag is present. (MFF) CheckForRoadColor = True if you want to call RoadColorChecked while FlagPresent.
Note
by EvilChicken!
Example:
MFF¶
function MFF(X, Y, Xmod, Ymod: Integer): Boolean;
If the flag is not present it will click at (ax, ay) increasing by (xmod, ymod) 5 times or until the flag appears.
Note
by EvilChicken! from an original idea by WT-Fakawi
Example:
MFNF¶
Function MFNF(ax, ay, xmod, ymod: Integer):Boolean;
Like MFF except it will click even if the flag is present when the
Note
by EvilChicken! from an original idea by WT-Fakawi
Example: