WHO trigger...

Posted by Farawaymandy on Mon 08 Aug 2005 10:02 AM — 5 posts, 23,661 views.

#0
Ok.
I have absolutely no idea what I'm doing... basically, I want to write a trigger so that when I type 'who' to get a connected players list for my MUSH, it won't write the list to my logs.

My who list, for clarification, looks as follows:

Player Name On For Idle Doing
Sofika 01:42 0s
1 Player logged in, 22 record, no maximum.

Any help would be greatly appreciated!
Greece #1
You can create a multiline trigger and set it to "omit from log file", but I haven't messed with multiline much and I can't help you more there.
Australia #2
Can you post a sample of the output WHO gives you on your particular mu*?
Australia #3
Heh - that'll teach me to read forums when I'm half asleep.

I don't line multiline triggers over more than a couple of lines, so I go with this kind of approach:

To me the logical approach SEEMS to be that you would have a trigger which fires on the first line:

Player Name On For Idle Doing

get THAT trigger to enable another trigger which matches any line: ie *

and then have a 3rd trigger which matches

* Player logged in, * record, no maximum.

which disables the 2nd trigger. Have all set to omit from logfile and it's covered.

eg:

The first trigger:

<triggers>
<trigger
enabled="y"
match="^Player Name On For Idle Doing$"
omit_from_log="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>world.EnableTriggerGroup "whogag", 1</send>
</trigger>
</triggers>

The second trigger:

<triggers>
<trigger
enabled="y"
match="^(.*)$"
name="whogag"
omit_from_log="y"
regexp="y"
sequence="100"
>
</trigger>
</triggers>


The third trigger:
<triggers>
<trigger
enabled="y"
match="^(.*?) Players logged in\, (.*?) record\, no maximum\.$"
omit_from_log="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>world.EnableTriggerGroup "whogag", 0</send>
</trigger>
</triggers>


A quick test worked for me
Greece #4
Yeah, that's the alternative, and I prefer it to multiline too.