(New message)
Subject review (reverse sequence)
Posted by
Nick Gammon
Australia (18,772 posts) bio
Forum Administrator
Date
Tue 13 Jun 2006 02:23 AM (UTC) [ quote
]
Message
I'm not sure what you mean by "check busy" - is that a client or server thing?
Anyway, this alias will match things in {}:
<aliases>
<alias
match="*{*}"
enabled="y"
send_to="2"
sequence="100"
>
<send>%%1 = %1
%%2 = %2</send>
</alias>
</aliases>
Assuming you do not have ";" set up as a command stack character, if I enter:
b {get flower;b {tear cloth;b {jump river}}}
It echoes:
%1 = b
%2 = get flower;b {tear cloth;b {jump river}}
Re-entering the second part (if it isn't busy, however you test that) I get:
%1 = get flower;b
%2 = tear cloth;b {jump river}
Then re-entering the second part again:
%1 = tear cloth;b
%2 = jump river
I think you would need to split up the first part at the semicolon (eg. using utils.split) so you could send each command separately.
I hope this answers your question.
- Nick Gammon
www.gammon.com.au, www.mushclient.com top
Posted by
Vls87
(3 posts) bio
Date
Sat 10 Jun 2006 01:12 PM (UTC) [ quote
]
Message
for example:"b {}" is a command
this command is used to check busy.After confirm I'm not busy(this will cost some seconds),it will execute commands in "{}"
eg2:b {get flower;b {tear cloth;b {jump river}}}
"get flower" & "tear cloth" will cause busy.
firstly ,I check busy,
if not,then execute "get flower;b {tear cloth;b {jump river}}"
after "get flower",I will be busy.
Secondly , I check busy again,
if not,then execute "tear cloth;b {jump river}"
and so on... top
Posted by
Ked
Russia (524 posts) bio
Date
Fri 02 Jun 2006 10:17 AM (UTC) [ quote
]
Message
You'll need to provide more details. It would be best to just describe what it is you are trying to do in the end.
From the looks of it, I get an impression that you are trying to chain two commands, but are just taking a long way around to doing it. For example, if {} symbols can change, then are you sure you need them at all? top
Posted by
Vls87
(3 posts) bio
Date
Fri 02 Jun 2006 10:00 AM (UTC) [ quote
] Amended on Fri 02 Jun 2006 10:02 AM (UTC) by Vls87
Message
example:wipe {123;wipe {456}}
how can i execute command "wipe" using "123;wipe {456}" as a parameter.
and then,execute command "wipe" again using "456" as a parameter
ps:"{}" can be replaced by other symbols
i'm a chinese.please forgive my poor english.^_^ top
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
1,167 views.
Reply to this subject
Start a new subject
  Refresh page
Go to topic:
(Choose topic)
Area Editor: Bug reports
Area Editor: General
Area Editor: News and updates
Area Editor: Suggestions
Area Editor: Tips and tricks
Dawn of Time: Administration
Dawn of Time: Configuration
Dawn of Time: Installing/compiling the server
Dawn of Time: New Dawn Muds Announcements
Dawn of Time: Playing
Dawn of Time: What is Dawn of Time (Dawn)?
Electronics: Microprocessors
Electronics: Operational Amplifiers
Forum: About
Forum: Announcements
Forum: Mailing other users
Forum: Problems
Forum: Registering
Forum: Searching
Forum: Subscribing
Forum: Suggestions
Forum: Test
Forum: Time zones / time display
Forum software: Administration
Forum software: Installation
MUDs: Announcements
MUDs: General
MUDs: MUD Design Concepts
MUSHclient: Announcements
MUSHclient: Beta testing
MUSHclient: Bug reports
MUSHclient: Development
MUSHclient: General
MUSHclient: Getting Started
MUSHclient: International
MUSHclient: Jscript
MUSHclient: Lua
MUSHclient: Miniwindows
MUSHclient: MXP and Pueblo
MUSHclient: Perlscript
MUSHclient: Plugins
MUSHclient: Python
MUSHclient: Suggestions
MUSHclient: Tips and tricks
MUSHclient: VBscript
MUSHclient: Wine
PennMUSH: Compiling the server
PennMUSH: Running the server
Programming: General
Programming: STL
Quilting: General
ROM: Compiling the server
ROM: Running the server
SMAUG: Commands
SMAUG: Compiling the server
SMAUG: Lua
SMAUG: Running the server
SMAUG: SMAUG coding
Search the forum
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )