It worked the first time, on the 2nd run it tried to pick more than 28 flax and ran to the yews behind the flax field, not the ones nearest to the bank, and it kept going that way as if to a bank.
Looks like this script is really buggy as I was just picking it again, I walked away and came back to find it just sitting outside the flax area, long enough for it to log me out. Maybe spinning is better.
Spinning doesn't find the spinning wheel.
Good job on this, if I could code scar I would help you but really the only thing I can do to help is just report errors.