![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
can someone please post the sql query command to ban a char account, check char id to see which account it links to.
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: May 2005
Posts: 367
|
Drop database lin2world;
Drop database lin2db; GO then u can install l2j |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2005
Posts: 23
|
shutdown -r now
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
lol...
firstly... posted in wrong section dude 2nd... you do have enterprise manager dont you? 3rd... do u really know how to use mssql? O_o |
|
|
|
|
#5 | |
|
Архивный участник
Join Date: May 2005
Posts: 944
|
Quote:
|
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
yes i have mssql and enterprise manager but i need some sql query code to check char id to where it belongs and ban user char etc
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: May 2005
Posts: 216
|
Quote:
and set action in: SET @action = 'ban' or SET @action = 'unban' Code:
DECLARE @accountname varchar(30) SET @accountname = '' DECLARE @action varchar(30) SET @action = 'ban' Use Lin2DB IF @action = 'ban' BEGIN UPDATE User_Account SET block_flag = 1 WHERE account = @accountname UPDATE User_Account SET block_flag2 = 1 WHERE account = @accountname PRINT 'Selected account has been banned' END ELSE IF @action = 'unban' BEGIN UPDATE User_Account SET block_flag = 0 WHERE account = @accountname UPDATE User_Account SET block_flag2 = 0 WHERE account = @accountname PRINT 'Selected account has been unbanned' END for instance: SET @charname = 'nitromaxboi' Code:
DECLARE @charname varchar(30) SET @charname = '' Use Lin2World Select * From User_Data WHERE char_name = @charname Go |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|