put this in your mainloop
Simba Code:
begin
SetUpSRL;
Smart_ForceNew := true;
ActivateClient;
DeclarePlayers;
LoginPlayer;
repeat // goes into a cycle
if not Loggedin then LoginPlayer; // Making sure we're logged in
ChopTree;
until(false) // Until(false) means it will repeat infinite, until you stop the script.
end.
if u wanna repeat it an amount of times u can use this:
Simba Code:
begin
SetUpSRL;
Smart_ForceNew := true;
ActivateClient;
DeclarePlayers;
LoginPlayer;
repeat
if not Loggedin then LoginPlayer;
ChopTree;
Inc(Loads) // Inc adds 1 to loads done
until(LoadsDoing =< Loads) //If Loads is equal or more than LoadsDoing it will break out of the loop and continue with the mainloop.
TerminateScript; // Terminates the script after the loop.
end.
and put this above after {$i srl/srl.simba} and before procedure DeclarePlayers;:
Simba Code:
const
LoadsDoing = 459; // does 459 Loads
var
Loads: Integer; // Need to declare the variable , variable is 0 by standard