I haven't been able to test anything, as I wrote this while the client is currently down. It works based on a weight system. Each action has a specific weight. The higher the weight, the more likely that action is to be performed. I only made 3 actions, but it's very simple to implement your own. Feedback is welcome.
Adding your own action:
Say you want to add an action to...check your woodcutting exp. You would add to the Action enum constants the name of the action and the default w