One of the things on my to-do list for my client was adding an event notifier like @
IziLife's. As I was looking over what he did, I was considering ways of making it better. After some thought, I figured I would generalize what he did and making something much more powerful. Basically this new mod would look at all incoming chat and look for matches via a regex string that the user specifies. There will be options to limit the scope of the command to various types of chats. Here's an outline of the new command:
Chat Notifier
Code:
/cn -m (sound|command|tts) -f gwlms -p "playerNames" "regex" "modeString"
Options:
m - mode
sound - play sound
command - execute console command
tts - play text-to-speech sound
f - from
guild (g)
whisper (w)
local (l)
mob (m)
spam (s)
p - player names
Immediately followed by a string specifying player name(s). Uses regex for matching.
This -m -f -p options are optional and will have defaults. Basically you specify the mode (default would be sound) and where to look for matches (guild, whisper local, etc..). One can specify a player or set of players to find matches from also. The command would also have an associated list with it so that multiple notifications can function at the same time.
One can do a whole lot with this command. For instance if one wanted to play a sound on all guild chat, they can. If one wanted to make an event notifier like Izilife's, they can. If one wanted to make a spammer, it would be a simple matter with this command.
I wanted to get everyone's thought on this and give the idea some time before I code it up.