- Joined
- Jan 23, 2009
- Messages
- 344
- Reaction score
- 56
This is how you create an account, the CORRECT way.
Use the dbo.CREATEACCOUNT procedure it is posted by Reimniess.
Execute the SQL and make sure it is executed in the ACCOUNT_DBF databases.
Then go to the procedure and EXECUTE it.
You should see two fields you need to fill. Put in your USERNAME in the first one. MAKE SURE IT IS ALL LOWERCASE.
Then go to here
Then click the md5 button at the bottom and you should get
copy and paste that and put it into the password field under your username.
Now press EXECUTE and execute the script, now you should have an account with the password "admin" with no "" around it.
NOTES: serus is the SALT, you need to use this SALT everytime you create an account.
If you want your password to, for example "test" (without "") then encrypt serustest and you get
To create an account an admin, run this query.
Make sure servers are down, and change the Character name and Account name.
You need to make the character befor you can be a GM.
Credits to:
Dell Honne (Alot from his guide)
Reimniess (Posting the dbo.CREATEACCOUNT)
---------- Post added at 12:18 PM ---------- Previous post was at 12:11 PM ----------
I havent worked with databases much at all, so I asking for someone who knows if you can make it easier, by in the dbo.CREATEACCOUNT type
and then be able to run the query from start without go to ACCUNT_DBF, am I right?
And it still shows up in
Databases -> ACCOUNT_DBF -> Programmability -> Stored Procedures -> dbo.createaccount
(as it does for me)
Use the dbo.CREATEACCOUNT procedure it is posted by Reimniess.
Code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[createaccount]
@account VARCHAR(15),
@password VARCHAR(32)
AS
SET NOCOUNT ON
DECLARE @DateActivated AS CHAR(8)
IF NOT EXISTS (SELECT account FROM ACCOUNT_TBL WHERE account = @account) BEGIN
INSERT INTO ACCOUNT_TBL (account, [password], id_no2, isuse, member, realname)
VALUES (@account, @password, @password, 'T', 'A', 'F')
SET @DateActivated = CONVERT(CHAR(8), GETDATE()-1, 112 ) --Is the date today - 1
--UPDATE ACCOUNT_TBL_DETAIL SET BlockTime = @DateYesterday WHERE account = @userid
--INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse)
-- VALUES (@account, 'A000', '2', 'F', GETDATE(), '20990101', '20990101', '20050101', 'O')
INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse)
VALUES (@account, 'A000', '2', 'F', GETDATE(), @DateActivated, '20990101', '20050101', 'O')
END
Execute the SQL and make sure it is executed in the ACCOUNT_DBF databases.
Then go to the procedure and EXECUTE it.
You should see two fields you need to fill. Put in your USERNAME in the first one. MAKE SURE IT IS ALL LOWERCASE.
Then go to here
To view the content, you need to sign in or register
and in the field put in serusadmin.Then click the md5 button at the bottom and you should get
Code:
ef9e8ddbf4e00ffef8991065a3fdef8c
copy and paste that and put it into the password field under your username.
Now press EXECUTE and execute the script, now you should have an account with the password "admin" with no "" around it.
NOTES: serus is the SALT, you need to use this SALT everytime you create an account.
If you want your password to, for example "test" (without "") then encrypt serustest and you get
Code:
05ee860e46697c872db9a3dd9c664383
To create an account an admin, run this query.
Make sure servers are down, and change the Character name and Account name.
You need to make the character befor you can be a GM.
Code:
/*******Server Needs to be Down for this*******/
USE [CHARACTER_01_DBF]
UPDATE CHARACTER_TBL SET m_chAuthority='Z'
WHERE m_szName='YourCharaNameHere' and serverindex='01'
USE [ACCOUNT_DBF]
UPDATE ACCOUNT_TBL_DETAIL SET m_chLoginAuthority='Z'
WHERE account='YourAccount ID here' and gamecode='A000'
/*******Server Needs to be Down for this*******/
/******* Just Enter the Details inside the quotes account='' and mszName=''*******/
Credits to:
Dell Honne (Alot from his guide)
Reimniess (Posting the dbo.CREATEACCOUNT)
---------- Post added at 12:18 PM ---------- Previous post was at 12:11 PM ----------
I havent worked with databases much at all, so I asking for someone who knows if you can make it easier, by in the dbo.CREATEACCOUNT type
Code:
USE [ACCOUNT_DBF]
GO
And it still shows up in
Databases -> ACCOUNT_DBF -> Programmability -> Stored Procedures -> dbo.createaccount
(as it does for me)


