Start off by creating a dance script. The easiest way that I've found to do this is by using AOScripter. But realistically, you could use any plain text editor.
- Anyway, once you have your script written you can keep it going permanently by adding the line /scriptname as the last line. For example, if your script is called "dance" you would add the line /dance to the end of your script. It will permanently loop until you either log out or stop it.
- Another option is to just create scripts of variable lengths and you can run the one that is appropriate. For example if you plan to be afk for approximately 5 minutes, you could create a /afk5 script.
- Finally, you could simply create macro buttons for individual dance moves and just keep on clicking.
Personally, I use a combination of the last two options. I hope that answers your question!