I'm playing an old MUD. It's fun, but it requires a lot of repetitive typing for combat. To kill a zombie, you type "hit z" [enter], "hit z", [enter], "hit z" [enter] ... until it's dead.
I'm trying to set up an alias for this. "att *" which then does:
hit %1
hit %1
hit %1
hit %1
This works, but the game doesn't allow commands to be entered too fast. So the first hit lands, but the other 3 are ignored because the game says I'm inputting too fast.
How can I make the alias wait a moment between hits? Something like:
hit %1
wait
hit %1
wait
hit %1
wait
hit %1
Of course that wouldn't work because it would send the word wait to the game, and that would be an invalid command.
Ideally, the command would do some checking ... such as hit until zombie is dead and then stop hitting. But for now, I'd be content to just have my attack command hit 4 times with a small pause in between each hit.
I'm trying to set up an alias for this. "att *" which then does:
hit %1
hit %1
hit %1
hit %1
This works, but the game doesn't allow commands to be entered too fast. So the first hit lands, but the other 3 are ignored because the game says I'm inputting too fast.
How can I make the alias wait a moment between hits? Something like:
hit %1
wait
hit %1
wait
hit %1
wait
hit %1
Of course that wouldn't work because it would send the word wait to the game, and that would be an invalid command.
Ideally, the command would do some checking ... such as hit until zombie is dead and then stop hitting. But for now, I'd be content to just have my attack command hit 4 times with a small pause in between each hit.