Well its very poor logic considering the script will loop thise 3 commands every single cycle:
script.walking.webWalk(new Position(3277, 3373, 0));
script.objects.closest("Cadava bush").interact("Pick-from");
script.walking.webWalk(new Position(3192, 3406, 0));
so it walks to bush, fails to interact maybe
walk back to somewhere even when it doesn't even interacted.
Add some conditions to improve your script logic ^^
Khaleesi