Just as a heads up, jagex can detect when you're not using the official client, just not which client you're using. i.e. OSBuddy, Konduit, RL, etc are all 3rd party clients as well.
Welcome to OSBot, thank you for contributing your first script, looks great!
~Muffins