Flag ==== The Flag include contains all Flag related functions FlagColor ~~~~~~~~~ .. code-block:: pascal const FlagColor: Integer; Stores minimap flag color. .. note:: by The SRL Devs. Example: .. code-block:: pascal FlagPresent ~~~~~~~~~~~ .. code-block:: pascal function FlagPresent: Boolean; T/F depending on flag exist. .. note:: by Mutant Squirrle Example: .. code-block:: pascal FlagDistance ~~~~~~~~~~~~ .. code-block:: pascal function FlagDistance: Integer; Returns distance in pixels your char dot is from flag on mini-map .. note:: by PPLSUQBAWLZ/Odie533 Example: .. code-block:: pascal WalkingToFlag ~~~~~~~~~~~~~ .. code-block:: pascal 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: .. code-block:: pascal FlagEx ~~~~~~ .. code-block:: pascal function FlagEx(Dist: Integer; RoadColorCheck: Boolean): Boolean; Waits until Flag is within "Distance" distance. .. note:: by Wizzup? / WT-Fakawi / ZephyrsFury modified by N1ke! Example: .. code-block:: pascal MouseFlagEx ~~~~~~~~~~~ .. code-block:: pascal 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: .. code-block:: pascal MFF ~~~ .. code-block:: pascal 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: .. code-block:: pascal MFNF ~~~~ .. code-block:: pascal 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: .. code-block:: pascal FFlag ~~~~~ .. code-block:: pascal function FFlag(Dist: Integer): Boolean; Waits until Flag is within "Distance" distance. .. note:: by Wizzup? / WT-Fakawi / ZephyrsFury Example: .. code-block:: pascal Flag ~~~~ .. code-block:: pascal function Flag: Boolean; Waits while flag exists. .. note:: by Nava2 Example: .. code-block:: pascal MouseFlag ~~~~~~~~~ .. code-block:: pascal procedure MouseFlag(X, Y, rX, rY, FlagDist: Integer); Mouse and Flag combined into one easy procedure. .. note:: by EvilChicken! Example: .. code-block:: pascal