View Single Post
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