Also i forgot to mention that sometimes he runs out of chicken pen and it stuck there near the river in the corner with the house and chicken pen fence ant it keeps trying to attack chickens over the fence but its not able to attack them and it keeps standing just like that
P.S. Also i forgot to mention that it doesn't start for me, so i run other script first, when other script loads up smart client, then i stop this script and just then i can run your script successfully. This is the error that i get when i try to run your script the normal way:
[10:42:38:907] [Reflection] [Status] Using world 35.
[10:42:39:021] [Reflection] [Fatal] Failed to spawn SMART client.
[10:42:39:030] [Reflection] [Status] All cached references free'd from memory
Successfully executed.
Also few times got this error and script quits:
Error: Access violation at line 144
Execution failed.
The following bitmaps were not freed: [0]
And yes, i think you forgot to add that function that it opens doors if cant reach chickens