Searched and found that wait cannot be hooked.
Also aliases can't be detected.
Is it possible to detect a set of commands.
Example:
alias at1 "+attack; -attack;" alias at2 "+attack2; -attack2;" alias lst "lastinv; lastinv;"
If commands are called really fast, that does not seem manual commands, so detect that as scripts?