I lol'd
Regardless, slapped this up in a few minuets:
program SimpleMacro;
{.include srl/srl.scar}
{________________________________________________
// SIMPLE SETUP INSTRUCTIONS \\
//===============================================\\
||*TheColor is the color of the object you want ||
|| to click. Use the color picker to get the ||
|| color. ||
||-----------------------------------------------||
||*TheTolerance is the +/- value of colors you ||
|| want to pick. I suggest ~ 15 ||
||-----------------------------------------------||
||*TheOption is the right-click option you want ||
|| to do. EG: 'Chop Tree'. Note that this is case||
|| sensitive. ||
||-----------------------------------------------||
||*WaitTime is the ammount in Miliseconds that ||
|| you want to wait between Actions. This can ||
|| range alot between tasks. ||
||-----------------------------------------------||
||*Be sure to be logged in when you use this. ||
||-----------------------------------------------||
||*Press F4 to stop the script. This will not be ||
|| Immeadiate. You have to wait until it is done ||
|| waiting. ||
||===============================================||
|| WARNINGS, DISCLAIMERS & TIPS ||
||===============================================||
||This script has no anti-ban, and does NOT check||
||uptext. I did not test this script at all, just||
||made it. If it doesn't work right, read some ||
||tutorials and fix it, or make your own. ||
||This script also has minimal randomness. ||
||NEVER USE THIS SCRIPT IN THE OFFICAL GAME. YOU ||
||WILL BE BANNED. ||
\\===============================================//
}
//Fill this out, use the above instructions if you need to.
Const
TheColor = 1234567;
TheTolerance = 15;
TheOption = 'Chop Down';
WaitTime = 3000;
//No touchy below here, unless you know what you're doing :P
var
Sucess : integer;
Function FindObject: boolean;
var x, y: integer;
begin
if FindColorSpiralTolerance(x,y,TheColor,MSX1,MSY1,MSX2,MSY2,TheTolerance) then
begin
Mouse(x,y,10,10,false)
if ChooseOption(TheOption) then
begin
Inc(Sucess)
result := true;
end else
begin
Writeln('['+TheTime+'] Option not found.')
result := false;
end;
end else
begin
Writeln('['+TheTime+'] Color Not Found. If you keep getting this message, increase TheTolerance, or pick a better color.');
result := false;
end;
end;
begin
SetupSRL;
clearDebug;
Repeat
FindObject;
wait(waittime)
until(false or isfkeydown(4))
end.