Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 27.01.2006, 23:06   #1
Megatronpt
Архивный участник
 
Join Date: Jan 2006
Posts: 584
Default [HowTo] For all those that can't set up L2ASP - Acc Creation

I don't know if this can come here, if it doesn't, please move it.

Here's somehing that I made with my noobish knowledge of MSSQL.

Needed:
l2pass.exe


Steps to create an account:

1 - Open SQL Server Management Studio
2 - Click on "New Query"
3 - Paste the code below, inside the query window:

Code:
insert into user_auth (account, password, quiz1, quiz2, answer1, answer2)
values ('<nick>',<value outputed by l2pass.exe>,'quiz1' ,'quiz2',<value outputed by l2pass.exe>,<value outputed by l2pass.exe>)

insert into user_account (account, pay_stat)
values ('<nick>',1)
a) Replace <nick> by the nick you want to insert.

b) Replace <value outputed by l2pass.exe> by value.
DON'T USE THE ' ', or else it'll output an error.

4 - Click on Execute.

There.. account created! Easy, right?



And a password changer:

1 - Open SQL Server Management Studio
2 - Click on "New Query"
3 - Paste the code below, inside the query window:

Code:
update lin2db.dbo.user_auth 
set password = <value outputed by l2pass.exe> 
where account like '<nick>';

/*Checking if the value is correct*/

select * from lin2db.dbo.user_auth
where account like '<nick>';
4 - Click on Execute.

You changed the password!

Hope this helps!

Have fun!
Megatronpt 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 16:24.