Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Death
Apprentice


Joined: 25 Jun 2002
Posts: 109
Location: USA

PostPosted: Sat Apr 12, 2003 8:03 am   

Block Script
 
Originally for Realms of the Forgotten.
It covers notes, tells, says, all channels, and socials/emotes over public channels.

#CLASS {Block}
#ALIAS block {#if ("%1"=%null) {#sh Here is a list of the people your blocking:;#if (@blocklist=%null) {#say None} {#forall @blocklist {#echo %i}};#sh "";#sh Syntax: block ~<name~>;#sh Syntax: block clear;#sh Syntax: block list;#sh ""};#if ("%1"="clear") {#var blocklist %null;#sh "";#sh Block list cleared!;#sh ""};#if ("%1"="list") {#sh Here is a list of the people your blocking:;#if (@blocklist=%null) {#say None} {#forall @blocklist {#echo %i}};#sh ""};#if (("%1"!="list") AND ("%1"!="clear") AND ("%1"!=%null)) {#additem blocklist {%proper( %1)};#sh Members of your Block List:;#forall @blocklist {#echo %i};#sh ""}}
#VAR blocklist {}
#VAR chanlist {flame|~-Gossips~-|~-Converses~-|~-Whispers~-|questions|answers|quEsTs|pray|sings|~[Gossip~]|RolePlays|~[RP~]|~-Debates~-|~[Debates~]|says}
#VAR charName {Sarix}
#TRIGGER {^(%w) tells you '} {#if (%ismember( %1, @blocklist)) {#gag;tell %1 Sorry, but somehow you managed to get yourself on Deathrow's Block List...Better find a way to get off of it.}}
#TRIGGER {^(%w) ({@chanlist}) '(*)'} {#if (%ismember( %1, @blocklist)) {#gag}}
#TRIGGER {^({@chanlist}) (*)} {#if (%1 =~ @blocklist %w) {#gag}}
#TRIGGER "NoteBlock" {^~[%s(%n)~] (%w)~:} {#var charName {%2};#if (%ismember( @charName, @blocklist)) {#gag;#sh Note posted by @charName skipped.};#TEMP {^===========================================================================$} {#var boardName %null;#STATE NoteBlock 0}}
#COND "NoteBlock" {} {#if (%ismember( @charName, @blocklist)) {#gag}} {looplines|param=99}
#CLASS 0

-=Realms of the Forgotten=-
site: www.rotf.net
connect: rotf.net:5000
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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