Author Topic: Various chat effects. (bug tested and fixed and submitting to RTB)  (Read 7603 times)

I just hope this add-on hasn't been made before, but I searched, and I don't believe it has.
Anyway, this add-on can do a bunch of things...

Allow you to add and remove word filters, they don't block words from being said, but change them.
For example, someone who is allowed to can type:
/newwordfilter cat dog
To filter "cat" to "dog" whenever it is said.
Word filters can also be removed, by the "old" word argument...
/removewordfilter cat
Would remove the "cat" to "dog" filter, and any others that looked for the phrase "cat".
And anyone can type
/listwordfilters
to see a list of all the word filters.

Users who are allowed to can prefix chat with a exclamation point for rainbow chat, and can prefix it with a question mark to use color codes (e.g. \c0 \c1 \c2), if they are allowed to, or reference signs, if they are allowed to. By reference sign, I mean for example, "%1" would change into the receivers name, as if individually addressing everyone.

Allowed people can also use "@" or "$" prefixed to their chat to bypass all filters, and chat normally, this is mostly for add-ons which might package chat for commands like the disguise kit mod (which is actually a broken mod itself), but you could still use it, by typing $1 where it asks for a team number, for example.
*the difference between the @ and $ chat is that the $ chat removes the $ from the string before submitting, so it'd work with disguise kit, for example, while @ dosn't remove the @ and can be used for say, eval, without needing a second @

Also, the default colors for chat can be changed, the message, name, and clan tag colors.

The picture included shows all the prefs, all features can be set to allow:
anyone
admins or above only
super admins or the host only
host only

All prefs can only be changed by the host. This add-on does not break any of the client side add-ons in RTB that have anything to do with chat, and many of the server side add-ons, like admin chat that use slash commands are fine, and others like disguise kit, can still be used with the "$" or "@" bypassing abilities. As for some of the advanced RP chat mods, I wouldn't know, but they really shouldn't be used together anyhow, and the RP mods probably would break each other the same way cityrp and infinite mining can't be used together.

Download:
<go get it on RTB when it's approved>

(Also, if you don't want people to be able to use the various text tags in chat, such as <font:arial:60> to talk real big, for example, just add a word filter that filters "<" to "</" or something like that, I didn't do this by default in case the host wanted to leave it enabled.)

edit: as of yet if you have the chat times mod, you see the players name in the color the host choose on one side of the time, and the defualt yellow on the other, then the rest of the message, not a big deal, but I'm working to get it fixed real soon
« Last Edit: January 09, 2011, 11:50:55 AM by DrenDran »

already made brotrolololololololocomeatmebro

already made brotrolololololololocomeatmebro
I searched "chat" on RTB, and nothing there did any of thi-
Oh.

Looks pretty cool, seems pretty useful, nice job.

Looks pretty cool, seems pretty useful, nice job.
Thanks.
I'm gonna keep this add-on here for a while before posting to RTB so I can be sure to find any bugs, if there are any that I missed, seeing how this effects an important part of the game. So just be sure to report any bugs if you find any and I'll fix them immediately.

Isn't this already a feature with Rtb?


I searched "chat" on RTB, and nothing there did any of thi-
Oh.
Again? Really?


Didn't you make a mod for Nethog that was already made and on RTB?

Didn't you make a mod for Nethog that was already made and on RTB?
this:
I searched "chat" on RTB, and nothing there did any of thi-
Oh.
Was me noticing the whited out "trololololol" in the post I replied to.
This hasn't been made yet.

Since when were you a complete genius for scripting?

Since when were you a complete genius for scripting?
Since always.

Looks pretty cool, seems pretty useful, nice job.

@avatar
I like trains.

May I suggest replacing "Internet" for "Intercourse"

:cookieMonster:

Anyway, epic. I like it. Submit to RTB, and I'll DL. (Yes, I'm a lazy forget)