Need a little more info. How are %Flax1 and %Flax2 getting values? I've never done this actual task, no idea what flax is in the game lol. Should this be similar to, say, harvesting cotton where you look for a cotton plant, if found walk to it and pick it, then look for another plant, rinse repeat?
Does flax spawn at the same spot over and over?
Can there be more than one that spawns at each spot?
There are some definite logic issues in your snippet but I would need to know a little more to tell you what they are.
X