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
shadowsurfer
Novice


Joined: 17 Dec 2004
Posts: 34

PostPosted: Thu Jul 26, 2007 5:56 pm   

Side Window
 
Hello All,

I play a MUD that when you type bboard info you get something like this:

OOC fighter board [0 out of 30 unread]
OOC rid board [0 out of 4 unread]
OOC announcement board [0 out of 120 unread]
OOC comment board [0 out of 44 unread]
OOC main (SG information) board [0 out of 42 unread]
To access these OOC virtual boards, use <bboard next>, 'bboard <boardname>
<command> [title | #]>' or type 'help bboard' for more information and
examples.

What I would like is to have a seperate window off to the side in the upper right (or wherever) that has this in it all the time and reloads every minute or so. However I want it to look like this:

fighter board [0 unread]
rid board [0 unread]
announcement board [0 unread]
comment board [0 unread]
main (SG information) board [0 unread]

I only want the amount of unread messages in the brackets and the class board without the OOC before it.

Can anyone help me with this?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jul 26, 2007 6:40 pm   
 
Well, first you need a trigger to capture them and gag them.

#trig {OOC [%a ()] board ~[%d ou of %d unread~]} {#cap news;#gag}

NB: You may need to change the () part to ~(~), but probably not.

Then in the news window you can create a trigger to change the format:

#trig {OOC ([%a ()] board) ~[(%d) out of %d unread~]} {#sub {%1 ~[%2 unread]}

You could also combine these two by removing the #cap command in the first trigger and replacing it with a #win command that sends the formatted text to the window.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
shadowsurfer
Novice


Joined: 17 Dec 2004
Posts: 34

PostPosted: Tue Jul 31, 2007 7:27 pm   
 
I got it working, thanks for the code. Now the second part of my question is can I get it to reload on it's own every few minutes or so?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jul 31, 2007 7:34 pm   
 
Just add an #alarm that sends the command every x seconds.

#alarm {60} {bboard info}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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