• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

regexp for character name tfs 1.2 like official tibia.com

legadoss

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

slavi

#define SLAVI32 _WIN32
Staff member
Board Moderator
Content Editor
Joined
Sep 9, 2015
Messages
685
Best answers
11
Reaction score
548
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

its just a flu
TFS Developer
Joined
May 30, 2009
Messages
6,763
Best answers
93
Reaction score
2,410
Location
7x1 land
and names can't have more than 3 words

( ' and _ aren't allowed)
 
Top