Hi, welcome to SRL @jint; ! Before I used to detect experience to if the player was chopping trees, I don't think this works anymore though due to the 'RuneScape layout update'.
You could simply just detect if your getting any logs using DTM's I guess.
Tell me if you want any kind of help with how the code is suppose to look but as you're new and everything I would recommend that if you get stuck you look it up through the SRL-6 documents. Link: http://docs.villavu.com/srl-6/index.html
Another tip is if you are stuck with something you could always look how others did it. Example being @KeepBotting;.
His way of doing it.
Simba Code:
function isStillChopping():boolean;//Credit to Keepbotting
var
pxShift, startCount, i:integer;
begin
case (usePixelShift) of
TRUE:
begin
if (not (isLoggedIn())) then
exit;
if tabBackpack.isFull() then
exit(false);
smartImage.drawBox(mainScreen.playerBox, false, clRed);
pxShift := getPixelShiftAverage(mainScreen.playerBox, 50, 500); //should probably use isPlayerAnimating but whatever
result := (pxShift > 150); //100 returns false-positive, 250 returns false-negative,
//150 and 200 seems good I'm just still deciding which to use
writeDebug('Still chopping? ' + lowercase(toStr(result)) + ', with an average pixel shift of ' + toStr(pxShift));
end;
FALSE:
begin
if (not isLoggedIn()) then
exit;
if tabBackpack.isFull() then
exit(false);
startCount := tabBackpack.count();
for i := 0 to (randomRange(minWait, maxWait)) do
begin
if tabBackpack.isFull() then
exit(false);
wait(randomRange(800, 1200));
end;
if (tabBackpack.count() <> startCount) then
begin
result := true;
end else
result := false;
writeDebug('Still chopping? ' + lowercase(toStr(result)));
end;
end;
end;
Note: This is for SRL-6.