Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 16.06.2005, 12:32   #5
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

1) Dont change anything manually editing tables when server is running
2) Maybe u should use "MS-SQL Server's SQL Query Anaylyzer" and run this SQL script:

NB: Replace 666 by your char_id and noob by any new name you want, u cannot have 2 chars with same name !

Code:
USE lin2world
DECLARE @NewCharName as varchar(50);
DECLARE @OldCharID as int;
SET @NewCharName = 'noob';
SET @OldCharID = 666;
IF NOT EXISTS (SELECT char_name FROM user_data WHERE char_name = @NewCharName)
	BEGIN
		UPDATE user_data
			SET user_data.char_name = @NewCharName
			WHERE user_data.char_id = @OldCharID;
		PRINT 'char_id ' + CAST(@OldCharID AS varchar(5)) + ' updated successfully !';
	END
ELSE
	BEGIN
		PRINT 'CHARNAME "' + @NewCharName + '" IS IN USE BY ANOTHER CHAR!';
	END
Regards :wink:
krapno is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:07.