Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 16.10.2005, 10:20   #1
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default help needed PLEASE!!

can someone please post the sql query command to ban a char account, check char id to see which account it links to.
nitromaxboi is offline  
Old 16.10.2005, 10:34   #2
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

Drop database lin2world;
Drop database lin2db;
GO

then u can install l2j
demon is offline  
Old 16.10.2005, 10:52   #3
blaher
Архивный участник
 
Join Date: Sep 2005
Posts: 23
Default

shutdown -r now
blaher is offline  
Old 16.10.2005, 13:19   #4
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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
Digital is offline  
Old 16.10.2005, 17:30   #5
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

Quote:
Originally Posted by demon
Drop database lin2world;
Drop database lin2db;
GO

then u can install l2j
Rooooofl :lol:
Truffe is offline  
Old 17.10.2005, 21:15   #6
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default

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
nitromaxboi is offline  
Old 17.10.2005, 22:19   #7
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default Re: help needed PLEASE!!

Quote:
Originally Posted by nitromaxboi
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'
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
This is to check char info:
for instance: SET @charname = 'nitromaxboi'
Code:
DECLARE @charname varchar(30)
SET @charname = ''

Use Lin2World
Select * From User_Data WHERE char_name = @charname
Go
BiGBoY is offline  
 


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 18:40.