Table Of Contents

Previous topic

Defines

Next topic

Gametab

This Page

Flag

The Flag include contains all Flag related functions

FlagColor

const FlagColor: Integer;

Stores minimap flag color.

Note

by The SRL Devs.

Example:

FlagPresent

function FlagPresent: Boolean;

T/F depending on flag exist.

Note

by Mutant Squirrle

Example:

FlagDistance

function FlagDistance: Integer;

Returns distance in pixels your char dot is from flag on mini-map

Note

by PPLSUQBAWLZ/Odie533

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 modified by N1ke!

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:

FFlag

function FFlag(Dist: Integer): Boolean;

Waits until Flag is within “Distance” distance.

Note

by Wizzup? / WT-Fakawi / ZephyrsFury

Example:

Flag

function Flag: Boolean;

Waits while flag exists.

Note

by Nava2

Example:

MouseFlag

procedure MouseFlag(X, Y, rX, rY, FlagDist: Integer);

Mouse and Flag combined into one easy procedure.

Note

by EvilChicken!

Example: