Skip to content

Feature: Expand the usability of reserve and profanity name tables #25417

@TheSCREWEDSoftware

Description

@TheSCREWEDSoftware

Describe your feature request or suggestion in detail

Currently reserved_name and profanity_name only work as the whole word.

If i put either of those "Ryan" and "Potato" (for respective and the worldserver settings to have it restriced) it only will search for the exact "Ryan" and "Potato" for the name.

  1. Add an extra column for flags/options for the name.
    0 - Only the name (Ryan)
    1 - Before and the name (%Ryan)
    2 - After and the name (Ryan%)
    3 - Before and after the name (%Ryan%)

(find better words for, not my strong), the following allows for having a more control of what names can be restriced or not, similiar how blizzard's DBC are handled.

  1. Locale
    -1 - ALL
    0 - English
    etc... (the other locales)

This would allow as the comment above, specially for spefically words let's say "%Rojo%" or "%Roja%" for esES and esMX locales (banning the word "red" (male and female word of it).

Based on v16 with NamesProfanity and NamesReserved DBCs

The document above:
If no brackets are present its the only the "Ryan"
If it has \< its equivalent to "%Ryan"
If it has /> it'«s equivalent to "Ryan%"
And if it has both \< and /> its equivalent to "%Ryan%"

  1. Optional but i think is good for readiablity, last column "Comment"

Description of why this name is banned? why is "Ryan" banned/restirced? "President of Non-existing Marluasia Planet"

The above maybe or not required to have an ID a primary key and incrementor.

  1. Expand on the currecnt rename commands.

We currently have character rename

Syntax: .character rename [$name] [reserveName] [$newName]

Mark selected in game or by $name in command character for rename at next login.

If [reserveName] is 1 then the player's current name is added to the list of reserved names.
If [newName] then the player will be forced rename.

New command for:

  1. Listing current profanity and reserved names

.character name profanity list // Shows ID, name, options, locale and comment
.character name reserved list
.character name lookup list $list $name [$flags] [$localeNumber] [$comment] (search for "Ryan" and what results and flags, $list it's 0 or 1 for profanity ore reserved table

Probably parametres to filter out what to appear not

.character name restrict add $list $name $flags [$locale] [$comment]

$list it's 0 or 1 for profanity ore reserved table, locale is optional and should laways be -1 i guess

And same for .character name restrict remove $name $flags (-1 maybe all?), prompt the user / gm that this only take affect on the next restart of the server as it's kept in memory.

On startup it should check name vs the table and their flags, if a character has it, they are flaged for a rename if the flag is already not set

Describe a possible solution to your feature or suggestion in detail

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions