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


Joined: 19 Apr 2006
Posts: 2

PostPosted: Wed Apr 19, 2006 3:14 pm   

Gagon/off not working
 
I have a trigger, which is invoked when another player in my party whispers to me "rate". It checks party status, calculates his/hers exprate and share %, and then "tells" it. I've put #gagon and #gagoff, because I don't want to see any of the spam during my exping.

Code:
#if (%ismember("%1",@pmembers)) {
#gagon
temp = "Rate: "%item(@rates,%ismember("%1",@pmembers)) k/min", share "%item(@shares,%ismember("%1",@pmembers))%
t %1 @temp
#gagoff
}


The trigger works fine. The problem is, I see all of the spam regardless of the gags.

Zmud 7.04
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Wed Apr 19, 2006 7:19 pm   
 
I would suggest just using #GAG no need to switch it off an on.. Make a trigger for your screen display (WHAT YOU TELL THEM) and set it to #GAG
i.e.

t %1 @temp i assume = tell USER RATE

make a trigger like

#TRIGGER {^You tell * Rate:} {#GAG}

that might work just fine for what you need and you wont have to have so much going on in your #IF STRINGS just remove the gag sections and add this trigger i think will do you fine
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
Endy
Newbie


Joined: 19 Apr 2006
Posts: 2

PostPosted: Thu Apr 20, 2006 11:20 am   
 
Yes that worked. I gagged the whisper, the tell, and the spam that came from the party status command.
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