Jump to content
Sign in to follow this  
oualid159

looking for [Account creator] code source

Recommended Posts

Hello @oualid159!

 

I have written my account creator tool, but source code is lost a long time ago:

http://s019.radikal.ru/i638/1609/26/95904e79eac7.png

 

I did not see any source code for this kind of programs. But what is the problem? It is easy to write such program. All that you need are MSSQL library for your programming language to make SQL queries and some hash library which implements MD5 algorithm to encrypt passwords.

 

1) You need get login and password from user (maybe GM level too);

2) Check if login is correct and not in use;

3) Check if password is correct;

4) Hash password using MD5 and make it uppercase;

5) Make query to AccountServer.dbo.account_login;

INSERT INTO AccountServer.dbo.account_login (name, password) VALUES (login, password)

6) Make one more SQL query to GameDB.dbo.account if you want to set GM level.

INSERT INTO GameDB.dbo.account (act_id, act_name, gm) VALUES ((SELECT MAX(act_id) + 1 FROM GameDB.dbo.account), login, gm_level);

 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...