AutoColor ========= Auto color finding routines. .. code-block:: pascal { Description: Constants representing the different types of AutoColors } const srl_AutoColorCount = 13; srl_VarrockRoadColor = 0; srl_LumbridgeRoadColor = 1; srl_FaladorRoadColor = 2; srl_AlKharidRoadColor = 3; srl_DarkDirtRoadColor = 4; srl_LightDirtRoadColor = 5; srl_SandColor = 6; srl_WaterColor = 7; srl_SwampWaterColor = 8; srl_LadderColor = 9; srl_RockColor = 10; srl_MineRockColor = 11; srl_TreeColor = 12; SetupAutoColors ~~~~~~~~~~~~~~~ .. code-block:: pascal procedure SetupAutoColors; Need to initialize the global vars Which store information .. note:: by Nava2 Example: .. code-block:: pascal LoadColorArray ~~~~~~~~~~~~~~ .. code-block:: pascal function LoadColorArray(Which: Integer): TIntegerArray; Returns a color array depending on the parameter Which. .. note:: by Coh3n Example: .. code-block:: pascal LoadAutoColor ~~~~~~~~~~~~~ .. code-block:: pascal function LoadAutoColor(which: Integer; var theAC: TAutoColorInfo): Boolean; Finds the color on the minimap depending on the parameter *which*. .. note:: by Nava2 & Coh3n Example: .. code-block:: pascal AutoColorEx ~~~~~~~~~~~ .. code-block:: pascal function AutoColorEx(i: Integer): TAutoColorInfo; Check the isACLoaded boolean for the asked AC, if true, we know the AutoColorInfo has been loaded, and we will not do it again. Otherwise, load the initial TAutoColorInfo from the stored array of colours. .. note:: by Nava2 & Coh3n Example: .. code-block:: pascal AutoColor ~~~~~~~~~ .. code-block:: pascal function AutoColor(which: Integer): Integer; Returns the correct color based on the autocolor constant .. note:: by Coh3n Example: .. code-block:: pascal