![]() |
Language Filter
This is a bad word filter on I worked just for the sake of keeping up my scripting skills (no current jobs).
HTML Code:
-FeaturesPHP Code:
PHP Code:
You can find this.words in the onCreated function. Here is the code. Code for Weapon/GUI-Script -Filter: PHP Code:
|
Or... Use Graal's internal swear filter? It's been out for a long time. I forgot how it was set up, but it was files in a folder that could even block swearing in PMs.
|
Quote:
|
@Novo: lawl! u got pwnt!
@cbkbud: Good job, man. ;p |
http://forums.graalonline.com/forums...ad.php?t=48781
I never mentioned anything about how one can script. I merely said that there is better solutions for people whom are interested. Personally, I feel that you're being a hypocrite. |
Graal has one internally? o_O
|
Quote:
|
:oo: i remember it blocking th words chair and trashcan
|
Quote:
|
Quote:
cat and cAT don't make that much of a difference ... Personally, Novo, I think you're being a hypocrite. Please look at the date on that post, 2003. I am almost positive it has been removed. |
Only problem I have with filters that detect words even with spaces is when you stay things like, "I was watching them and he was hit", the last two words gets censored out. But really no way to get around that.
|
Quote:
|
A suggestion.
Perhaps you can kind of give your script a little AI. It might be a little burdening on the script, but maybe an idea for you, or anyone else who wants to try, is to document every character that is used as a substitute for every letter of the alphabet. Such as.... s={"s","$"}; h={"h","|-|"}; m={"m","/\/\","|\/|"}; t={"t","+","7"}; and have the check use it as a reference for letters, and if any of those letters match one of the letters above, and end up translating into a curse word, censor it. If that makes sense. |
nice idea! (you ppl takin' notes?)
|
I know N-Pulse uses the inbuilt filter.
By the way, i would have used function ChatBar.onAction() then check ChatBar.text rather than onPlayerChats() |
Quote:
I'd use the thing Novo suggested. |
using onPlayerChats() shows the players chat for a second then its blocked I use this split second by saying the message over and over showing the message before the words are blocked eachtime (i do this on Zone)
|
It doesn't do that actually ...
Also, I made a major correction with the spacing. (edited my original post). If you are using this code you must update it for it to work! |
Quote:
|
Quote:
|
Quote:
PHP Code:
|
You can easily check which one receives faster by script.
Example: PHP Code:
|
I understand that it is faster, I'm not worried about that. It works fine on my server, deal with it.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Anyway, good job Chris. :) |
Quote:
If you do, PHP Code:
Quote:
|
Quote:
|
Quote:
why dont u just tell me how to use it instead of just picking me off. i put it in the wepons thing and called it -filter or what ever but it wont work :( |
Quote:
|
Quote:
Step number one: copy and past the script into the weapon named "-filter" Step number two: test it Step number three: go on forums and tell the world that it wont work :( |
Quote:
|
Awsome. Like it on my playerworld. per+ :D
|
| All times are GMT +2. The time now is 10:06 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.