Thread: Name Ristrict
View Single Post
Old 14.03.2006, 01:39   #4
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

Well, there is a table that puts restricted names, but you can modify the stored procedure yourself to add your own validation checks. I have done this to block people from prefixing their name with Gm or Dev.

Just modify the lin_CreateChar stored procedure in the lin2world database. Add your checks before the insert character statements, and then use RAISEERROR to push an error message to L2Server, and RETURN -1 to stop the stored procedure from continuing.

IF @char_name LIKE N'_'
BEGIN
RAISERROR ('Character name has _ : name = [%s]', 16, 1, @char_name)
RETURN -1
END

This should do what you need.
Sire is offline