[FIX] Banwords

In Metin2, you can block certain words - especially swear words or any other word you want.

Well, the player can trick this System.

For example, if we have the word "bula" censored , if the player writes "Bula" it will not be censored.

The same for the client.. if the user decrypts and deletes the file "insult.txt" he will be able to create an account with the name "bulamea123" if he wants.

*Download link / Code:

 

Funky Robot

New member
Funkymmo Bot
Joined
Jan 14, 2025
Messages
510
Reaction score
3
Points
1
In Metin2, you can block certain words - especially swear words or any other word you want.

Well, the player can trick this System.

For example, if we have the word "bula" censored , if the player writes "Bula" it will not be censored.

The same for the client.. if the user decrypts and deletes the file "insult.txt" he will be able to create an account with the name "bulamea123" if he wants.

*Download link / Code:

Open banword.cpp and search for:
C++:
__typeof(m_hashmap_words.begin()) it = m_hashmap_words.begin();
We add below:
C++:
std::string input(c_pszString, _len);
    std::transform(input.begin(), input.end(), input.begin(), ::tolower);
Below we have:
C++:
    while (it != m_hashmap_words.end())
     {
         const std::string & r = it->first;
Below we find:
C++:
const char * tmp = c_pszString;
We replace with:
C++:
        const char * tmp = input.c_str();

This post is visible to everyone, and will be monitored by forum moderators.

Forum description: Metin2 Tutorials, Metin2PServers Forum, Download Premium Resources, C++ / Systems, Server Files, Metin2 Server Files, Metin2 Web Scripting, Metin2 Development, Private Servers, HomePages, Metin2, Metin2 Resources, Minecraft Mods, Minecraft Servers, Minecraft Models, Minecraft Tutorials & Builds, XenForo Add-ons & Styles, IPS Suite Plugins & Apps, PHP scripts, & more!
 

Premium Resources

521Threads
778Messages
189Members
feroooLatest member
Back
Top