Repeating a previous command

by Arundel

Back to Mechanic's Corner.

Arundel2005-04-18 00:24:37
How do you do this in zMUD? I have a trigger to stand when it says that I have to stand to do this, but I want it to automatically repeat the action I just tried.
Drathys2005-04-18 00:37:11
A quick look through the help, and I came up with:

QUOTE
%lastcom        the last command executed
%lastcom2      the command before the last command executed
%lastcom3      the command before %lastcom2

Gwylifar2005-04-18 00:50:12
Don't need to do this in the client. Just send "!" to the MUD, it's built in.
Shiri2005-04-18 00:51:39
No good, Gwylifar. If you do that after a stand, it will just make you do a stand again. It happens to me all the time. >_<
Gwylifar2005-04-18 00:56:09
Ah, so he doesn't want to repeat the last command, but some other previous one. Well, it's good to know about ! anyway.
Unknown2005-04-20 12:21:15
so that would be
CODE

stand;%lastcom2

Wheee