|
EMG Beginner
Joined: 25 Aug 2001 Posts: 13
|
Posted: Sun Dec 30, 2001 2:24 pm
Automatic Command Scrollback... |
Hi all,
Simple problem, but I can't work out how to do it...
In the MUD I play, it is possible for your nose to get broken. Whilst this is the case, your commands will randomly be replaced by the message: "Your nose hurts too much,causing your eyes to water and you to grimace in pain. You cannot concentrate on anything at present."...Meaning your last command wasn't carried out.
Therefore, when the above text is received, I need to have a trigger which will repeat the last command sent to the MUD. If there's a simple way of doing this...or, indeed, any way at all...I'd love to know it.
Thanks in hopeful advance. |
|
|
|
Aennor Apprentice
Joined: 06 Dec 2001 Posts: 131 Location: USA
|
Posted: Sun Dec 30, 2001 2:48 pm |
%lastcom holds the last command you sent to the mud. You could use:
#tr {Your nose hurts too much,causing your eyes to water and you to grimace in pain. You cannot concentrate on anything at present.} {%lastcom}
Hope that helps.
--
Aennor the Paragon of Gratuitous Agony
Staff on WoTMUD
wotmud.org 2222 |
|
|
|
EMG Beginner
Joined: 25 Aug 2001 Posts: 13
|
Posted: Sun Dec 30, 2001 3:20 pm |
Thanks - works like a charm on single commands!
The problem is with triggers - mutiple commands sent simulataneously...no way to check which command needs to be repeated...still, better than nothing, thanks very much :) |
|
|
|
EMG Beginner
Joined: 25 Aug 2001 Posts: 13
|
Posted: Sun Dec 30, 2001 3:25 pm |
Erk, new problem.
If the last command was part of a script, eg: #IF (@Combat_Bot="ON" AND @Fighting="TRUE") {cast flamedart @target} {}
(the one that I've just the problem with) Then the script will be sent to the MUD, instead of the last command *actually* sent to the MUD...if I'm making sense.
Is there a way of excluding scripts from this? Or solving the above problem as well?
*apologises for being a pain* |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Dec 30, 2001 3:54 pm |
I'd imagine you could check whether the first character is a #.
#TR {Your nose hurts too much} {#IF (%begins(%lastcom,"~#"} {} {%lastcom}}
If you are using this strictly for botting, you might find the %action variable more useful.
#TR {Your nose hurts too much} {%action}
LightBulb |
|
|
|
|
|