SRL Archive - Outdated Tutorials

[#39] Timing.scar


Sir R. M8gic1an

2009-09-16 17:19:28


// * function WaitInvMinCount(Count, MaxTime: integer): boolean; // By Rasta Magician
// * function WaitColorGone(Color, x, y, Tol, MaxTime: integer): Boolean; // By TRiLeZ
// * function WaitColorGoneIn(Colour, x1, y1, x2, y2, Tol, MaxTime: integer): Boolean; // By TRiLeZ

These were added.

This was removed:

// * function WaitFindColorSpiral(var x, y: integer; x1, y1, x2, y2, Color, Tol, MaxTime: integer): boolean; // By R1ch
It is useless to wait in spirals, as you will do nothing with the point you find nor the spiral and it is slower than searching with the usual algorithm.

Finally, MsToTime now uses these constants:

const
Time_Formal = 0;
Time_Short = 1;
Time_Abbrev = 2;
Time_Bare = 3;
Time_FStop = 4;

Be sure to use them!

Lots o' Love
The Dev Team