Sweet script man! Like others have said it does get stuck walking back and forth after talking to an npc. Maybe just adding a stop follow command after talking with the npc to make it 100% afk-able.