Gz on posting your first script.
I would recommend adding failsafes and improving standards.
for failsafes I usually use atleast a timer
Simba Code:
var
failTimer: TTimeMarker;
failTimer.start will start it (from 0)
and failTimer.getTime will give you how long it's been since starting (in milliseconds).
I updated your mainloop with some better standards (just tabbing differently + removing the extra 'end.') and a timeout for the repeat clickTree until false bit.
Simba Code:
begin
clearDebug();
setupSRL();
changeAngleBoss();
repeat
failTimer.start; //resets failTimer to 0 and starts counting [in milliseconds]
repeat
clickTree();
until (tabBackPack.isFull() or (failTimer.getTime > 600000));
if failTimer.getTime > 600000 then
begin
writeln('backpack isn''t full after 10 minutes? something went wrong, terminating script');
terminateScript;
end;
arrowshaftMake();
until false;
end.
Check out this thread for some examples of code https://villavu.com/forum/showthread.php?t=60288
Originally Posted by
Her0nz
RS3 or OSRS?
Take a quick look at the includes used.