|
shadowsurfer Novice
Joined: 17 Dec 2004 Posts: 34
|
Posted: 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? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
shadowsurfer Novice
Joined: 17 Dec 2004 Posts: 34
|
Posted: 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?
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Jul 31, 2007 7:34 pm |
Just add an #alarm that sends the command every x seconds.
#alarm {60} {bboard info} |
|
|
|
|
|