I've made this script especially for you. I hope you take the time to read over it and read the notes, as it will provide you with a great little start to understand how things work,
edit: added SetUpSRL;
SCAR Code:
program New;
{.include SRL/SRL.scar}
var
x, y, item, Loads: Integer;
const
TimeToWaitAfterClickingFishingSpot = 5000; // self explanatory, ;)
Color1 = 12345; // color of the fishing spot
LoadsToDo = 5; // Amount of loads to do before logging out.
label
BackToStart;
begin
SetUpSRL;
MakeCompass('n');
wait(500);
BackToStart: // this is where the script will go to when you call "goto BackToStart;"
repeat
wait(250 +random(750)); //waits anywhere between 0.25 and 1.0 seconds.
if FindColorTolerance(x, y, Color1, 0, 0, 514, 336, 3) then //<if it finds Color1, it will store the position as x, y, and will search for Color1
begin //^between the screen coords of 0, 0, 514, 336 which is the RS screen excluding the inventory + chat box.
MMouse(x, y, 2, 2); //<Moves the mouse to the location of x, y which is the location stored by FindColorTolerance,
if IsUpText('Cage') then //^so basically it moves the mouse to where it found the color.
begin //^use MMouse instead of MoveMouse and MoveMouseSmooth, etc..
WriteLn('Found a fishing spot. Clicking it.');
Mouse(x, y, 0, 0, true); //Clicks at the place the mouse is at, is undetectable, Clickmouse is detectable.
wait(TimeToWaitAfterClickingFishingSpot); //using a constant for some things makes the script more user-friendly.
end;
wait(250 +random(750));
FindNormalRandoms; // Finds and attempts to solve all the solvable randoms in your AntiRandoms folder.
end;
until InvFull; //repeats the above until the Inventory is full.
if InvFull then
begin
GameTab(4); // Opens Inventory. The tabs are numbered 1-14. eg 1 is the weapon tab, 2 is skills tab, 3 quest tab, etc..
wait(250 +random(750)); // waits a little bit because SCAR is faster than RS.
for item:=2 to 28 do
DropItem(item);
Inc(Loads); //Increases the variant "Loads"
end;
if Loads < LoadsToDo then goto BackToStart; // If "Loads" is less than "LoadsToDo" it will go back to the label "BackToStart"
LogOut;
TerminateScript;
end.