PDA

View Full Version : Auditorium Broadcast


complexity
12-27-2004, 12:09 PM
This is similar to the PCG's (pcg.ksv.com) broadcast script for events It will broadcast whatever the person says while in chat mode with a wizard. Say global on or global off to toggle broadcasting


ON INCHAT { canbroadcast GLOBAL
{
WHOCHAT WHONAME " in " + ROOMNAME + ": " + CHATSTR + GLOBALMSG
} WHOTARGET 0 != ISWIZARD AND WHOCHAT WHOME != WHOTARGET WHOME == OR AND canbroadcast 1 == AND IF
}
ON OUTCHAT { canbroadcast GLOBAL
{
{ 1 canbroadcast = } "$1" GREPSUB "n" == IF
{ 0 canbroadcast = } "$1" GREPSUB "f" == IF
"" CHATSTR =
} CHATSTR LOWERCASE "^global o([nf])" GREPSTR IF
}
ON ENTER {
{
"Say global on/off to turn broadcasting on or off. Default is off." LOCALMSG
} ISWIZARD IF
}