View Full Version : help needed PLEASE!!
nitromaxboi
16.10.2005, 10:20
can someone please post the sql query command to ban a char account, check char id to see which account it links to.
Drop database lin2world;
Drop database lin2db;
GO
then u can install l2j
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
Drop database lin2world;
Drop database lin2db;
GO
then u can install l2j
Rooooofl :lol:
nitromaxboi
17.10.2005, 21:15
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
can someone please post the sql query command to ban a char account, check char id to see which account it links to.
Just add accountname in line: SET @accountname = 'nitromaxboi'
and set action in: SET @action = 'ban' or SET @action = 'unban'
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
This is to check char info:
for instance: SET @charname = 'nitromaxboi'
DECLARE @charname varchar(30)
SET @charname = ''
Use Lin2World
Select * From User_Data WHERE char_name = @charname
Go