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
thanotos
Newbie


Joined: 12 Oct 2002
Posts: 6
Location: USA

PostPosted: Sun Oct 13, 2002 3:28 am   

please help with this
 
Hi i posted a question earlier about a problem. In my MUD whenever someone logs in the game it says: * TITLE Firstname Lastname joins the adventure.
such as: Savage Thanotos Furyblade joins the adventure.

Whenever they disconnect it says: * Firstname has disconnected.
such as: Thanotos has disconnected.

whenever they logoff it says: * Firstname returns home from a hard day of adventuring.
such as: Thanotos returns home after a hard day of adventuring.

I want to gag all of this EXCEPT when my FRIENDS Logoff, Disconnect or Login into the game. Here is what we came up with so far:
#trigger {(%w) ({(%w) joins the adventure|has disconnected|returns home from a hard day of adventuring}.)} {#if (%ismember("%1",@Friends)) {} {#gag}}

It works fine EXCEPT it is still showing NON-FRIENDS **LOGIN** to the game still. Could anyone help me with this please? thanks.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Oct 13, 2002 5:05 am   
 
Technically, you should've added this post to your other topic, but oh well.

Anyways, we can fix this easily enough by shunting the login message into its own trigger:

#trigger {~* * (%w) %w joins the adventure.} {#if (%ismember("%1",@Friends)) {} {#gag}}

quote:

#trigger {(%w) ({(%w) joins the adventure|has disconnected|returns home from a hard day of adventuring}.)} {#if (%ismember("%1",@Friends)) {} {#gag}}



If that's what I gave you, then I need to be smacked hard. Stringlists are NOT able to include wildcards, so {(%w) joins the adventure|...} won't ever match anything but "(%w) joins the adventure."

The correct trigger (after we apply everything talked about in your post) should be:

#trigger {~* (%w) {has disconnected|returns home from a hard day of adventuring}.} {#if (%ismember("%1",@Friends)) {} {#gag}}

li'l shmoe of Dragon's Gate MUD
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