PDA

View Full Version : Big problem with caracter creation!!!Please help me ;)


Tchongy
28.04.2006, 15:38
Hi and sorry for my bad english...

I have a new problem with my server... when a player create a new caracter the caracter is a GM... When i will go look the DB in user_data the builder is 1. I don't know why but before it work correctly. Where I can modify that probleme please?

Thinks per advance for your reply ;)

Tchongy
28.04.2006, 15:38
Hi and sorry for my bad english...

I have a new problem with my server... when a player create a new caracter the caracter is a GM... When i will go look the DB in user_data the builder is 1. I don't know why but before it work correctly. Where I can modify that probleme please?

Thinks per advance for your reply ;)

ANRDaemon
28.04.2006, 18:44
Check server config.

ANRDaemon
28.04.2006, 18:44
Check server config.

Silentz0r
28.04.2006, 19:42
If i remenber, check the date in the server and change it to a newer day... like today xD.

Silentz0r
28.04.2006, 19:42
If i remenber, check the date in the server and change it to a newer day... like today xD.

torune
28.04.2006, 19:50
check your procedure lin_CreateChar

torune
28.04.2006, 19:50
check your procedure lin_CreateChar

Tchongy
29.04.2006, 03:00
Thinks for your reply but I'm a noob in DB and I don't know where I can find lin_createchar or the server config. My server is open since 3 month and before the creation was correctly but now the account isn't Gm but all char create are GM....

Thinks per advance!!!! ;)

Tchongy
29.04.2006, 03:00
Thinks for your reply but I'm a noob in DB and I don't know where I can find lin_createchar or the server config. My server is open since 3 month and before the creation was correctly but now the account isn't Gm but all char create are GM....

Thinks per advance!!!! ;)

gurkanhu
29.04.2006, 03:48
open lin2world.sql with notepad press ctrl+f and type lin_CreateChar thats all :P

gurkanhu
29.04.2006, 03:48
open lin2world.sql with notepad press ctrl+f and type lin_CreateChar thats all :P

Tchongy
29.04.2006, 14:52
Very thx!!!!! I have find but "builder" is write 3 times and I don't know which modify...

Thinks ;)

Tchongy
29.04.2006, 15:11
1: lin_CreateChar
create character sp
INPUT
@char_name NCHAR(12),
@account_name NCHAR(13),
@account_id INT,
@pledge_id INT,
@builder TINYINT,
Is builder or not. BOOL

2:
CREATE PROCEDURE [DBO].[lin_CreateChar]
(
@char_name NVARCHAR(24),
@account_name NVARCHAR(24),
@account_id INT,
@pledge_id INT,
@builder TINYINT,
@gender TINYINT,

3:
SET @char_name = RTRIM(@char_name)
DECLARE @char_id int
SET @char_id = 0

-- debug code delete in commercial
IF (GETDATE() < '2004-1-1')
SET @builder = 1

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

When I have modify something in DB lin2world.sql are necessary that reboot the server?