Actually, I had something I was brain storming myself on this mount issue. Since the bot tells the game to "goto" a spot on the landscape such as mouse click moving, you can have it add to a variable like:
goto x, y, z
if x, y, z = the goto variable, then node_count = node_count +1.
If Node_Count < A then send chat command /use <mount_name>
Of-course there will be a ton more then just that but that is simplified version.