View Single Post
Old 03.06.2006, 08:32   #9
xarper
Архивный участник
 
Join Date: Apr 2006
Posts: 14
Default Re: [HowTo] For all those that can't set up L2ASP - Acc Crea

Quote:
Originally Posted by Megatronpt
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!


I wish hami to put this on l2x ... I have lost 2 accounts (80lvl chars with good items) and i can't change my pass :/
xarper is offline