# XPDrop Methods to interact with the XP Drops. - - - ## const XP_COLORS XP_COLORS is the constant holding all possible XPDrop colors. ```pascal XP_COLORS: TIntegerArray = [$FFFFFF, $FFC8C8, $FF00FF, $C8FFC8, $64FF64, $40FFFF, $1F98FF, $C8C8FF]; ``` - - - ## XPDrop.Setup ```pascal procedure TRSXPDrop.Setup; ``` Setups the XPDrop. ```{note} This is automatically called on the **XPDrop** variable. ``` - - - ## XPDrop.IsOpen ```pascal function TRSXPDrop.IsOpen: Boolean; ``` Returns true if the XP Drops are on. - - - ## XPDrop.Open ```pascal function TRSXPDrop.Open: Boolean; ``` Attempts to open the XP Drops if they are closed. - - - ## XPDrop._Find ```pascal function TRSXPDrop._Find: Boolean; ``` Internal function to find XPDrops. Searches for all colors in XP_COLORS within the current XPDrops location. - - - ## XPDrop.UpdateLocation ```pascal function TRSXPDrop.UpdateLocation: Boolean; ``` Internal function to update XPDrops location. - - - ## XPDrop.FindDrop ```pascal function TRSXPDrop.FindDrop: Boolean; ``` Returns true if a XPDrop is found. Example: ```pascal WriteLn XPDrop.FindDrop; ``` - - - ## XPDrop.WaitDrop ```pascal function TRSXPDrop.WaitDrop: Boolean; ``` Waits **WaitTime** until an XPDrop is found. Example: ```pascal WriteLn XPDrop.WaitDrop(1000); ``` - - - ## var XPDrop Global XPDrop variable.