regexp for character name tfs 1.2 like official tibia.com

legadoss

New Member
Joined
Jun 1, 2014
Messages
140
Best answers
0
Reaction score
3
hello, someone can give me a regexp like as official tibia.com have for character name?
thanks
 

Slavi Dodo

#define SLAVI32 _WIN32
Staff member
Board Moderator
Content Editor
Joined
Sep 9, 2015
Messages
681
Best answers
11
Reaction score
509
Tibia uses a series of expressions to format the name and check its validity..

1. Check if the name is using allowed chars a-z, A-Z, ', _ & space.

2. Split the name into words, the word must be at least 2 characters

3. Check if the name contains specific words
a)Offensive Name
Names that are insulting, racist, sexually related, drug-related, harassing or generally objectionable. more...
b)Name Containing Forbidden Advertising
Names that advertise brands, products or services of third parties, content which is not related to the game or trades for real money. more...
c)Unsuitable Name
Names that express religious or political views. more...
d)Name Supporting Rule Violation
Names that support, incite, announce or imply a violation of the Tibia Rules. more...

4.
and names can't have more than 3 words
Sincerely,

Slavi
 
Last edited:

Evil Puncker

I'd rather kiss a rattlesnake
Joined
May 30, 2009
Messages
5,906
Best answers
33
Reaction score
1,862
Location
160,54,7
and names can't have more than 3 words

( ' and _ aren't allowed)
 
Top