![]() |
|
|
#1 |
|
Архивный участник
Join Date: May 2005
Posts: 315
|
I got this error when i try to change the name of a char.
![]() that i need to do for solve it? |
|
|
|
|
#2 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 76
|
Try this
Open your query analyzer Paste this as a query for DB lin2world Quote:
Best of luck ! |
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Apr 2005
Posts: 10
|
run Query Analyzer and copy this
use lin2world; update user_data set char_name = 'new_char_name' where char_name = 'old_char_name'; then press F5 |
|
|
|
|
#4 | |
|
Архивный участник
Join Date: May 2005
Posts: 315
|
and for change a character to another account?
because i need to change account and userid Quote:
Thanks
|
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 368
|
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 |
|
|
|
|
#6 | |
|
Архивный участник
Join Date: May 2005
Posts: 216
|
Quote:
Anyhow, u can do it manualy thou. To bypass firehose mode all u need to do is select another row and hit the run button.Take a look at icon in the beginning of the row u r editing. U will notice it change depending on mode. |
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 315
|
and for ban a account i dunno that i can do, i get the same error. are any way to solve it?
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: May 2005
Posts: 368
|
yet posted, use search !!!
Code:
/* BAN ACCOUNT */ USE lin2db /* BAN 1 ACCOUNT */ UPDATE user_account SET pay_stat = 0 WHERE uid = 666; /* UNBAN 1 ACCOUNT */ UPDATE user_account SET pay_stat = 1 WHERE uid = 666; /* BAN 3 ACCOUNTS */ UPDATE user_account SET pay_stat = 0 WHERE uid IN (666,777,888); /* UNBAN 2 ACCOUNTS */ UPDATE user_account SET pay_stat = 1 WHERE uid IN (666,777,888); This way ban all chars on 666,777,888 accounts and a message will appear on their client like they have to pay to continue to play
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|