Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 13.03.2006, 17:25   #1
xjazz
Архивный участник
 
Join Date: Feb 2006
Posts: 131
Default Name Ristrict

If it possible to make a name ristrict (so player cant create chars with an _ )
or nummbers in there names ??
xjazz is offline  
Old 13.03.2006, 17:27   #2
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

Look at stored procedures.
drzoom is offline  
Old 13.03.2006, 18:14   #3
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

It's a table in Lin2World actually.
Shawnmb is offline  
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  
Old 14.03.2006, 08:07   #5
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

I thought l2server already blooked _ unless my server build has something in there already to block
GMan is offline  
Old 14.03.2006, 09:45   #6
xjazz
Архивный участник
 
Join Date: Feb 2006
Posts: 131
Default

Sire thx man i tryed and it work
xjazz is offline  
Old 15.03.2006, 02:21   #7
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

Glad I could finally help someone
Sire is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:00.