Valhalla Legends Archive

Member Forums => Spht's Forum => Topic started by: Spht on November 22, 2004, 07:51 PM

Title: Script
Post by: Spht on November 22, 2004, 07:51 PM
This script will prevent users with attribute T from chatting in the channel.  Note S flag overrides T, and T can only be set by users with attribute N.

It first warns them with kick, then bans if they come back and chat after that.  This covers both normal chat and emoted chat.

Quote&5&&BT&&&
&5&&IT&&&
&5&&ST&&&
&5&&TZ&&&
&5&&T&23 != $1&&+/kick %1 No chatting.  This is a warning
&5&&T&23 == $1&&+/ban %1 You've been warned
&5&&T&&&:set 4 $1

&23&&BT&&&
&23&&IT&&&
&23&&ST&&&
&23&&TZ&&&
&23&&T&23 != $1&&+/kick %1 No chatting.  This is a warning
&23&&T&23 == $1&&+/ban %1 You've been warned
&23&&T&&&:set 4 $1

Note it uses user variable #4 (23) in this example because in the configuration I took this from, 1 - 3 were already in use for something else.  You can adjust the user variable numbers accordingly based on your own usage.
Title: Re: Script
Post by: Eibro on November 22, 2004, 08:09 PM
Curious; is your scriping system a dialect of brainfuck?