|
Alabaster Beginner
Joined: 25 Jun 2002 Posts: 11
|
Posted: Thu Nov 06, 2003 3:05 am
Repeating last sent command |
Hello,
What I am looking for is a trigger to resend the last command I types and sent to the mud. I want this to trigger when I see "You fail."
#tr {^You fail.} {%lastcom}
The problem is I have two other trigger one to calculate exp per mob and another to insert comma's into all numbers larger than 3 digits that are set off my my prompt. So I get the other commands resent to the mud instead of the one I types. Is there someting obviuos I'm missing or am I just out of luck?
Any help would be appreciated,
Alabaster |
|
|
|
jurz Novice
Joined: 22 Feb 2002 Posts: 48 Location: Latvia
|
Posted: Fri Nov 07, 2003 2:23 pm |
Try using one of these if numer is always the same
%lastcom the last command executed
%lastcom2 the command before the last command executed
%lastcom3 the command before %lastcom2 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Nov 07, 2003 6:26 pm |
If your MUD has a "repeat last command" symbol (many use ! for this), you can use that. This applies to all commands sent to the MUD, whether you typed them or not, but won't repeat zMUD commands that you typed.
#TR {^You fail.} {~!}
If you are only trying to repeat commands that you typed (not commands that triggers sent to the MUD), zMUD uses !! for the last command typed. This applies to all commands that you typed, whether they are sent to the MUD or are zMUD commands, but won't repeat commands sent by triggers, macros, buttons, etc.
#TR {^You fail.} {!!} |
|
|
|
Andromeda Beginner
Joined: 29 Aug 2003 Posts: 25 Location: USA
|
Posted: Fri Nov 07, 2003 9:57 pm |
Is there a way to get the last command sent to the mud regardless of where it originated from as opposed to commands that operate on zMUD itself.
For instance I have a trigger that resends %lastcom after the appropriate delay if the command failed due to round time. Sometimes this works but sometimes it repeats a command like #add rt 1.
I do have triggers that run tracking round time. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Nov 07, 2003 11:50 pm |
NO.
|
|
|
|
Alabaster Beginner
Joined: 25 Jun 2002 Posts: 11
|
Posted: Fri Nov 07, 2003 11:55 pm |
Thanks Lightbulb, both of your solutions worked!
|
|
|
|
|
|