|
pheroah Beginner
Joined: 13 Mar 2003 Posts: 10 Location: United Arab Emirates
|
Posted: Mon Mar 17, 2003 10:35 am
Capturing certain parts of the MUD in a window |
Ok I know maybe this question has been asked before but i need a clear and informative answer if possible since i am a novice at zMUD and i need to understand what i am doing.
I have several things which spam my mud while i am playing and need to remove them. They come on several lines and only the first line has the part that i can put in the trigger; the number of lines is not constant and the information in it is also not constant.
How do i #gag everything until the next prompt for instance.
Also I would like to take output of certain commands periodically and put them in a differnt window so i can keep an eye on them.
Finally since i am at it... how do i make a window or somewher where i can converse with someone without having to keep typing tell xyz this
tell xyz that
Thanks all for your help
Zee Egyptian Pheroah |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Mar 17, 2003 7:55 pm |
You can't get clear and informative answers when you ask vague questions.
#TR {first line} {#GAGON}
#TR {next prompt} {#GAGOFF} {} {nocr|prompt}
#TR {certain commands} {#CAP different}
In the desired window:
#ONINPUT {(*)} {tell xyz %1}
LightBulb
Advanced Member |
|
|
|
pheroah Beginner
Joined: 13 Mar 2003 Posts: 10 Location: United Arab Emirates
|
Posted: Tue Mar 18, 2003 5:38 am |
Well,
I didn't think i was being vague; but anyway. Here is part of my output say when I issue the "status" command which is part of my ticker since i need to log quite a few variables from there. I need this output every minute...
- status
You are a citizen of Mercinae.
You are not bleeding at all, breathing perfectly well, feeling rather hungry,
and feeling wide awake.
Your alignment is Good.
You are fully clothed. The weather is fairly warm.
You can absorb 17 more lessons before becoming saturated with learning.
You are old enough to procure a speedy advancement of 550 lessons.
You will sleep-learn up to 0 lesson credit(s) when not in Avalon.
You are blessed with ten safe encounters with Death.
Your pacifist experience quest ranking is: Twenty-seven.
You have taken on the mantle of pacifist. It has around six months left.
You have not bestowed guild favour or disfavour today.
You have not gained any blood-lust.
-
This is comming up every minute. The lines are different somtimes and they are for sure not the same number of lines so I can gag n lines.
I get similar responses also which I need to gag but the only constant thing is the first line and the prompt. Is there someway of telling zMUD to gag until the next occurance of xyz or the prompt.
the example you sent is great but that means it will send a gagoff with every occurance of the prompt which is not a very good idea :)
As for the window issue. I wanted to know how I wanted to open tell windows for fellows of my guild so I can chat with them directly.
I got to the stage of tagging there xyz says blah blah
but then how do i take it and put it in another window. And setup this window to be a tell xyz blah blah when i type blah blah in its command line ( btw i don't know how to create a new window with a command line)
Thanks for all your help
Zee Egyptian Pheroah |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Mar 18, 2003 6:10 pm |
I don't think I was being vague either. You didn't provide any samples of the text that the actual trigger phrases would be based on, so I used the vague phrases you did provide (first line, next prompt, etc.). You didn't say what you'd like the window named, so once again I used your vague phrase (different). My answers were as precise as your questions allowed.
The only new questions are how to limit the #GAGOFF trigger and how to open a new window.
#TR {^You are a citizen of Mercinae.} {#GAG;#GAGON}
#COND {^-} {#GAGOFF} {within|Param=99|nocr|prompt}
You can open a new window with the #CAPTURE or #WINDOW command. I prefer the #CAPTURE command, since it leaves the focus unchanged. However, you'll probably want to use the #WINDOW command since you'll need to be in the new window to attach a command line to it.
#WINDOW different
right-click in window
Window Options/Attached Command line
if the command line doesn't show up:
right-click in window
Window Options/Show Status Bar (you can turn it back off after you have the command line)
Paste the #ONINPUT trigger into the command line, modify it as necessary, then press ENTER
Save the window settings using Save As... from the Settings menu
I'd recommend using a global variable (#GVAR) in place of xyz. That will allow you to change who you're talking to (by changing the variable from the main window) without having to make a new window for each person.
#ONINPUT {(*)} {tell @xyz %1}
LightBulb
Advanced Member |
|
|
|
pheroah Beginner
Joined: 13 Mar 2003 Posts: 10 Location: United Arab Emirates
|
Posted: Thu Mar 20, 2003 10:48 pm |
Thanks this worked fine
But the window is still having problems...
It now works perfectly with getting the last person's name and setting it properly; and when i type in its command line it gives the correct command.
But it doesn't send it to the MUD
I tried a lot but with no use...
What I want is to make the full conversation in that window so I can keep the main MUD window clean for the other MUD output
The window shows the command that is suppose to be sent but it doesn't actually send it !!
Zee Egyptian Pheroah |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Thu Mar 20, 2003 11:24 pm |
Since your oninput command is in a subwindow, you need to tell zmud to send this command back to the main window or to send it directly to the mud.
There are two ways, but i have not tested these.
#ONINPUT {(*)} {#send tell @xyz %1}
or
#ONINPUT {(*)} {:window:tell @xyz %1}
where window is the name of your main window. its usually your character name or the name of your mud.
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.55a
Zmapper Version 1.14
http://www.dartmud.com |
|
|
|
pheroah Beginner
Joined: 13 Mar 2003 Posts: 10 Location: United Arab Emirates
|
Posted: Fri Mar 21, 2003 3:13 am |
The second one worked fine for me; the first one i got to work after that because it was missing the window name after #window
Anyway thanks for your help; I have one more query; I can now gag the lines i don't need pretty well
But what if I want these lines instead of being gaged just sent to that other window
The thing is i need zMUD to repeat the #cap until it finds the prompt
Any Ideas
Zee Egyptian Pheroah |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri Mar 21, 2003 7:39 am |
quote:
C+
Syntax: #C+ [name]
Related: #C-
Starts capturing lines and sending them to the specified window. If ‘name’ is omitted, lines are sent to the command editor (assuming capturing is enabled within the editor). Otherwise, the lines are sent to the named window. The window is created if it doesn’t exist. If the Capture Commands option is on in the preferences, then commands entered into the command line will also be captured to the window.
#TR {^You are a citizen of Mercinae.} {#C+ Send_To_This_Window}
#COND {^-} {#C-} {within|Param=99|nocr|prompt}
Ton Diening |
|
|
|
pheroah Beginner
Joined: 13 Mar 2003 Posts: 10 Location: United Arab Emirates
|
Posted: Fri Mar 21, 2003 8:09 am |
that was cool
I got it working
thanks all for your help
Zee Egyptian Pheroah |
|
|
|
|
|