Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
EMG
Beginner


Joined: 25 Aug 2001
Posts: 13

PostPosted: 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.
Reply with quote
Aennor
Apprentice


Joined: 06 Dec 2001
Posts: 131
Location: USA

PostPosted: 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
Reply with quote
EMG
Beginner


Joined: 25 Aug 2001
Posts: 13

PostPosted: 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 :)
Reply with quote
EMG
Beginner


Joined: 25 Aug 2001
Posts: 13

PostPosted: 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*
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net