• Welcome to Valhalla Legends Archive.
 
Main Menu

Script

Started by Spht, November 22, 2004, 07:51 PM

Previous topic - Next topic

Spht

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.

Eibro

Curious; is your scriping system a dialect of brainfuck?
Eibro of Yeti Lovers.