1. you dont need a begin if you are only going to perform 1 action, but if u want to, then u have to always end it after the action (and not after the untils!)
2. every until is accompanied by repeat just like begin is accompanied by end.
the code should look something like this (notice how i use spaces to make it easier to see what im doing?–search standards on scripting tutorials for info):
Procedure Woodcutting;
begin
repeat //repeating till log appears in last spot in inv
repeat
if FindColorSpiralTolerance(x, y, TreeColour, TreeCoordsX1, TreeCoordsY1, TreeCoordsX2, TreeCoordsY2, 2) then // detecting tree and clicking
Mouse(x, y, 1, 1, True);
until(FindColorSpiralTolerance(x, y, TreeStump, TreeCoordsX1, TreeCoordsY1, TreeCoordsX2, TreeCoordsY2, 2) //detecting tree stump
until (FindColorSpiralTolerance (x, y, LogColour, 653, 438, 674, 456, 2) // detecting log in last inv spot
end;
From what i see, the script will spam click the tree (like crazy) until it gets chop down, so u need to learn about methods such as averagepixelshift etc so that it only clicks once to chop a tree.
Also ultilise the srl includes well, u can replace InvFull or ExistsItem(28) to replace ur findcolor for detecting log;)
Edit: just realise u already have the function to detect tree finished chopping, try this instead:
Procedure Woodcutting;
begin
repeat //repeating till log appears in last spot in inv
if FindColorSpiralTolerance(x, y, TreeColour, TreeCoordsX1, TreeCoordsY1, TreeCoordsX2, TreeCoordsY2, 2) then // detecting tree and clicking
begin
Mouse(x, y, 1, 1, True);
while not (FindColorSpiralTolerance(x, y, TreeStump, TreeCoordsX1, TreeCoordsY1, TreeCoordsX2, TreeCoordsY2, 2) do wait(100); //detecting tree stump
end;
until InvFull // detecting log in last inv spot
end;
It will find (or repeatedly tries to) the tree,click chop once, wait until stump appear, then repeat until ur InvFull. You did not create any failsafe though but that can be improved on later.
EDIT 2: pertaining to ur qns, "Go Advanced" when u are replying, then click on simba tag and insert ur code in between.
Also i believe most functions works on rsps (especially the InvFull, unless their inv coordinates are different)