7 Classes Level 70 Cap Server Files + Database + Client + Tutorial

Status
Not open for further replies.
n00bs its your firewall either add new rule DN ports (from C:\Server\config) to your firewall or turn firewall off (not recommended unless its testing purposes or just playing with friends).
fhansiwadon link is working fine.. just keep trying or use jdownloader

NO luck about this, i even change the village ip address to public

this was the list of port i've collected

Servicemanager
8500
8510
8600
8650

Master
8000
9000

Cash
12600

Village
14400

Game
14500

DB
26000

Login
7000
14300

still no clue and can't play on LAN. any suggestion how to play it on LAN ?
always after choosing character.



Anyone know what IPs you have to edit to get the Game Service to give you a public IP your friends could access?

stillsearching to it
LOL same problem

still figuring out alone >.<



not work windows server 2008 r2
work windows xp 64 bit / windows 7 64 bit



not work GameServer_TW/Vilage_TW

shortages files etc.

wrong i'm using the win server 2008 r2 64 bit to play it.
and i have no issue about it

all files are work except the log server. try to read the tutorial from the beginning again.



d3dx9_43.dll file not work DNGameServerH64_TW

download direct x first and try find dxwebinstall
it'll fixed those



how to change exp drop?

have you try channel info ??
search the server for those
 
I might as well mention this now i upgraded and updated from SSMS 2008 to 2008 R2 but yet the server's database stays as 10.00.5500 is there a guide on how to make a new database? every tutorial i've found so far has the server version actually be the latest version like it should any idea how to make a database with the latest version? sorry for the hassle
 
can someone explain this,, DNVillage & DNGame not run and display an error
protocolbeta - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums


problem solved
solution: check dxdiag and install direct x
thanks all :D
----------------------------------
error to 2 :
when creating a character and write the name of the character happens disconnect from the server
protocolbeta - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums
 
Last edited:
I'm running server but meet this issue. When submit account to server I can't login user. however i can logged in game before

Help me pls, thanks !

protocolbeta - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums
 
game port = login and world port = game from what I portforwarded I used my local IP in the config files since I already portforward my local IP to make it public. I can't explain more than this.

You can check this post.
http://forum.ragezone.com/f855/help-ports-unclock-1014296/

solved, turn the domain firewall off,

and some small port which below 7000 which linked into the village + gam and master server, still tapping for those trigger port.
finally fiigure it out >.<

trying to build webfiles for registration and patching the client into english T_T
long way down
 
When I try to login to game, Window give me a "Login Error" and give error in Login Service
Log of Login Service:

ID:test, Password:test
SQLError: #SQLExecute # (42000) 50000, [Microsoft][ODBC SQL Server Driver][SQL Server]Error 242, Level 16, State 3, Procedure P_Login, Line 329, Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value
Query:{?=CALL dbo.P_Login(N'test',N'192.168.56.1',-376741368,0,7,24,0,'2014',N'test',?,?,?,?,?,?,?,0,?,2,?,0,?,?,?,?,?,?)}

I did all the guide but I changed to n00bs DB pack( ) because before I had this error:
i785FnE - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums

How i can fix it?
I Never had this error o.o
 
When I try to login to game, Window give me a "Login Error" and give error in Login Service
Log of Login Service:

ID:test, Password:test
SQLError: #SQLExecute # (42000) 50000, [Microsoft][ODBC SQL Server Driver][SQL Server]Error 242, Level 16, State 3, Procedure P_Login, Line 329, Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value
Query:{?=CALL dbo.P_Login(N'test',N'192.168.56.1',-376741368,0,7,24,0,'2014',N'test',?,?,?,?,?,?,?,0,?,2,?,0,?,?,?,?,?,?)}

I did all the guide but I changed to n00bs DB pack( ) because before I had this error:
i785FnE - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums

How i can fix it?
I Never had this error o.o

use the database i've posted on past post.
use search function mate.

delete all previous DB and restore it again using the DB i post.
i've no idea if u using the DB i backed up and you still having those issue.
 
Last edited:
use the database i've posted on past post.
use search function mate.

delete all previous DB and restore it again using the DB i post.
i've no idea if u using the DB i backed up and you still having those issue.
I don't know if you understand bro..
I deleted all dbs and I restore, then I get that error when i login.

This isn't my problem.
i785FnE - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums


My problem is this:
ID:test, Password:test
SQLError: #SQLExecute # (42000) 50000, [Microsoft][ODBC SQL Server Driver][SQL Server]Error 242, Level 16, State 3, Procedure P_Login, Line 329, Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value
Query:{?=CALL dbo.P_Login(N'test',N'192.168.56.1',-376741368,0,7,24,0,'2014',N'test',?,?,?,?,?,?,?,0,?,2,?,0,?,?,?,?,?,?)}
 
@n00bs ah ok good to see you got it to work and website are easy. if you going to make a registration I recommend using
Code:
mssql_query("insert into dbo.Accounts (AccountName,Passphrase,AccountLevelCode,SecondAuthFailCount,SecondAuthCode,SecondAuthLockFlag,CharacterCreateLimit,CharacterMaxCount,RegisterDate,PublisherCode) values ('$user',CONVERT(BINARY(20),HashBytes('MD5', '$pass'),2),0,0,1,'false',4,8,GETDATE(),0)");
by Alin1337 so your passphrase is not NULL = any pass
guay5615
Your error is telling you that your trying to convert varchar into a date which is out of range.

Are you really using n00bs database file it shouldn't cause errors

This is my dbo.Account design see if it match your (except email becuz I made that myself)
8EiIDdU - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums


And this is the store procedure should look like.
Code:
USE [DNMembership]
GO
/****** Object:  StoredProcedure [dbo].[P_AddAccount]    Script Date: 08/22/2014 13:24:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/**
version : 12
author : 김도열
e-mail : [email protected]
created date : 2010-01-04
description : 계정을 추가합니다.
return value :
0 = 에러가 없습니다.
1 = 트랜잭션을 Commit할 수 없는 상태입니다. 트랜잭션을 Rollback합니다.
100 = 시스템 에러가 발생하였습니다. dbo.ErrorLogs 테이블을 조회하세요.
101101 = 이미 등록된 로그인 계정입니다.
101109 = 접속이 차단된 IP입니다.
history :
9 = input param. @inyNationalityCode 추가 at 2010-09-14
10 = input param. @inyChannelPartnerCode 추가 at 2010-11-25
11 = (48559) IP 차단 모드 추가 by 김도열 at 2011-12-23
12 = 신규 계정 보상 관련 플래그 기본 셋팅 추가 by 김원상 at 2013-01-07
**/

ALTER PROCEDURE [dbo].[P_AddAccount]
	  @nvcAccountName nvarchar(50) --// 로그인 계정 이름
	, @inyAccountLevelCode tinyint --// 0=일반 유저, 10=신입(넥슨), 20=모니터링(넥슨), 30=마스터(넥슨), 99=QA, 100=개발자
	, @inyCharacterCreateLimit tinyint --// 하루 생성 가능한 캐릭터 수
	, @inyCharacterMaxCount tinyint --// 최대 보유할 수 있는 캐릭터 수
	, @dt2LastLoginDate datetime2(0) --// 최근 로그인 일자
	, @vchLastLoginIP varchar(15) = NULL --// (optional) 최근 로그인한 IP 주소
	,   [USER=874269]Int[/USER]LastSessionID int = NULL --// (optional) 최근 로그인의 세션 ID
	, @vchJoinIP varchar(15) = NULL --// (optional) 최초 Join 시 IP 주소
	, @inyPublisherCode tinyint --// 0=스튜디오, 1=넥슨, 2=샨다, 3=NHN Japan
	, @inyGenderCode tinyint = NULL --// (optional) 1=남성, 2=여성
	,   [USER=1333446700]DaT[/USER]BirthDate date = NULL --// (optional) 생년 월일 (생년만 유효할 수 있습니다.)
	,   [USER=1333464713]PAS[/USER]sphrase binary(20) = NULL --// (optional) 사내 테스트용 계정의 비밀 번호
	, @inyNationalityCode tinyint = NULL --// 국가 코드. 95	Hong Kong, 207=Taiwan
	, @inyChannelPartnerCode tinyint = NULL --// 1=MSN(Japan). 퍼블리셔 자체 계정이면 NULL값을 입력합니다.
	, @nvcEmail nvarchar(320) = NULL --// Emails
	,   [USER=874269]Int[/USER]AccountID int = NULL OUTPUT --// 로그인 계정 ID
--WITH EXECUTE AS 'SPExecutor'
AS
SET NOCOUNT ON;
SET XACT_ABORT ON;

DECLARE   [USER=874269]Int[/USER]ReturnValue int;

/**_# Rollback and return if inside an uncommittable transaction.*/
IF XACT_STATE() = -1
BEGIN
	SET   [USER=874269]Int[/USER]ReturnValue = 1;
	GOTO ErrorHandler;
END

BEGIN TRY
	/**_# 계정 생성이 차단된 IP이면 101109를 리턴합니다.*/
	IF EXISTS (
		SELECT * 
		FROM dbo.BlockedIPs WITH (NOLOCK) 
		WHERE dbo.FN_IP2IPNumber(@vchJoinIP) BETWEEN StartIP AND EndIP 
			AND (StartDate IS NULL OR GETDATE() BETWEEN StartDate AND EndDate)
			AND IPBlockMethodCode = 2
	)
	BEGIN
		SET   [USER=874269]Int[/USER]ReturnValue = 101109;
		GOTO ErrorHandler;
	END

	/**_# [Accounts] 테이블에 INSERT합니다.*/
	INSERT dbo.Accounts (AccountName, AccountLevelCode, GameOption, CharacterCreateLimit, LastCharacterCreateDate, CharacterMaxCount, LastLoginDate, LastLogoutDate, LastLoginIP, LastSessionID, JoinIP, RegisterDate, PublisherCode, GenderCode, BirthDate, Passphrase, Email, NationalityCode, ChannelPartnerCode, NewbieRewardFlag)
	VALUES (@nvcAccountName, @inyAccountLevelCode, NULL, @inyCharacterCreateLimit, NULL, @inyCharacterMaxCount, @dt2LastLoginDate, NULL, dbo.FN_IP2IPNumber(@vchLastLoginIP),   [USER=874269]Int[/USER]LastSessionID, dbo.FN_IP2IPNumber(@vchJoinIP), GETDATE(), @inyPublisherCode, @inyGenderCode,   [USER=1333446700]DaT[/USER]BirthDate,   [USER=1333464713]PAS[/USER]sphrase, @inyNationalityCode, @inyChannelPartnerCode, CAST(0 AS bit), @nvcEmail);

	SET   [USER=874269]Int[/USER]AccountID = SCOPE_IDENTITY();

	/**_# 스튜디오용 계정인 경우, 패스워드를 해쉬하여 저장합니다.*/
	IF @inyPublisherCode = 0 AND   [USER=1333464713]PAS[/USER]sphrase IS NOT NULL
		UPDATE dbo.Accounts
		SET Passphrase = dbo.FN_HashPassphrase2   [USER=1333464713]PAS[/USER]sphrase,   [USER=874269]Int[/USER]AccountID)
		WHERE AccountID =   [USER=874269]Int[/USER]AccountID;
END TRY
BEGIN CATCH
	IF ERROR_NUMBER() = 2601 AND ERROR_MESSAGE() LIKE N'%IX_UN_Accounts_AccountName%'
		SET   [USER=874269]Int[/USER]ReturnValue = 101101;

	GOTO ErrorHandler;
END CATCH;

RETURN 0;

ErrorHandler:
IF XACT_STATE() <> 0
	ROLLBACK TRANSACTION;

IF   [USER=874269]Int[/USER]ReturnValue IS NULL OR   [USER=874269]Int[/USER]ReturnValue = 0
	EXEC   [USER=874269]Int[/USER]ReturnValue = dbo.P_AddErrorLog;

RETURN   [USER=874269]Int[/USER]ReturnValue;
 
I don't know if you understand bro..
I deleted all dbs and I restore, then I get that error when i login.

This isn't my problem.
i785FnE - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums


My problem is this:
ID:test, Password:test
SQLError: #SQLExecute # (42000) 50000, [Microsoft][ODBC SQL Server Driver][SQL Server]Error 242, Level 16, State 3, Procedure P_Login, Line 329, Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value
Query:{?=CALL dbo.P_Login(N'test',N'192.168.56.1',-376741368,0,7,24,0,'2014',N'test',?,?,?,?,?,?,?,0,?,2,?,0,?,?,?,?,?,?)}

Use the database n00bs posted earlier in this thread. That's what he's saying.
Use this database and delete that other one.
 
@n00bs ah ok good to see you got it to work and website are easy. if you going to make a registration I recommend using
Code:
mssql_query("insert into dbo.Accounts (AccountName,Passphrase,AccountLevelCode,SecondAuthFailCount,SecondAuthCode,SecondAuthLockFlag,CharacterCreateLimit,CharacterMaxCount,RegisterDate,PublisherCode) values ('$user',CONVERT(BINARY(20),HashBytes('MD5', '$pass'),2),0,0,1,'false',4,8,GETDATE(),0)");
by Alin1337 so your passphrase is not NULL = any pass
@guay5615
Your error is telling you that your trying to convert varchar into a date which is out of range.

Are you really using n00bs database file it shouldn't cause errors

This is my dbo.Account design see if it match your (except email becuz I made that myself)
8EiIDdU - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums


And this is the store procedure should look like.
Code:
USE [DNMembership]
GO
/****** Object:  StoredProcedure [dbo].[P_AddAccount]    Script Date: 08/22/2014 13:24:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/**
version : 12
author : 김도열
e-mail : [email protected]
created date : 2010-01-04
description : 계정을 추가합니다.
return value :
0 = 에러가 없습니다.
1 = 트랜잭션을 Commit할 수 없는 상태입니다. 트랜잭션을 Rollback합니다.
100 = 시스템 에러가 발생하였습니다. dbo.ErrorLogs 테이블을 조회하세요.
101101 = 이미 등록된 로그인 계정입니다.
101109 = 접속이 차단된 IP입니다.
history :
9 = input param. @inyNationalityCode 추가 at 2010-09-14
10 = input param. @inyChannelPartnerCode 추가 at 2010-11-25
11 = (48559) IP 차단 모드 추가 by 김도열 at 2011-12-23
12 = 신규 계정 보상 관련 플래그 기본 셋팅 추가 by 김원상 at 2013-01-07
**/

ALTER PROCEDURE [dbo].[P_AddAccount]
      @nvcAccountName nvarchar(50) --// 로그인 계정 이름
    , @inyAccountLevelCode tinyint --// 0=일반 유저, 10=신입(넥슨), 20=모니터링(넥슨), 30=마스터(넥슨), 99=QA, 100=개발자
    , @inyCharacterCreateLimit tinyint --// 하루 생성 가능한 캐릭터 수
    , @inyCharacterMaxCount tinyint --// 최대 보유할 수 있는 캐릭터 수
    , @dt2LastLoginDate datetime2(0) --// 최근 로그인 일자
    , @vchLastLoginIP varchar(15) = NULL --// (optional) 최근 로그인한 IP 주소
    ,   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]LastSessionID int = NULL --// (optional) 최근 로그인의 세션 ID
    , @vchJoinIP varchar(15) = NULL --// (optional) 최초 Join 시 IP 주소
    , @inyPublisherCode tinyint --// 0=스튜디오, 1=넥슨, 2=샨다, 3=NHN Japan
    , @inyGenderCode tinyint = NULL --// (optional) 1=남성, 2=여성
    ,   @[I][B][URL="http://forum.ragezone.com/members/1333446700.html"]DaT[/URL][/B][/I]BirthDate date = NULL --// (optional) 생년 월일 (생년만 유효할 수 있습니다.)
    ,   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase binary(20) = NULL --// (optional) 사내 테스트용 계정의 비밀 번호
    , @inyNationalityCode tinyint = NULL --// 국가 코드. 95    Hong Kong, 207=Taiwan
    , @inyChannelPartnerCode tinyint = NULL --// 1=MSN(Japan). 퍼블리셔 자체 계정이면 NULL값을 입력합니다.
    , @nvcEmail nvarchar(320) = NULL --// Emails
    ,   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID int = NULL OUTPUT --// 로그인 계정 ID
--WITH EXECUTE AS 'SPExecutor'
AS
SET NOCOUNT ON;
SET XACT_ABORT ON;

DECLARE   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue int;

/**_# Rollback and return if inside an uncommittable transaction.*/
IF XACT_STATE() = -1
BEGIN
    SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 1;
    GOTO ErrorHandler;
END

BEGIN TRY
    /**_# 계정 생성이 차단된 IP이면 101109를 리턴합니다.*/
    IF EXISTS (
        SELECT * 
        FROM dbo.BlockedIPs WITH (NOLOCK) 
        WHERE dbo.FN_IP2IPNumber(@vchJoinIP) BETWEEN StartIP AND EndIP 
            AND (StartDate IS NULL OR GETDATE() BETWEEN StartDate AND EndDate)
            AND IPBlockMethodCode = 2
    )
    BEGIN
        SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 101109;
        GOTO ErrorHandler;
    END

    /**_# [Accounts] 테이블에 INSERT합니다.*/
    INSERT dbo.Accounts (AccountName, AccountLevelCode, GameOption, CharacterCreateLimit, LastCharacterCreateDate, CharacterMaxCount, LastLoginDate, LastLogoutDate, LastLoginIP, LastSessionID, JoinIP, RegisterDate, PublisherCode, GenderCode, BirthDate, Passphrase, Email, NationalityCode, ChannelPartnerCode, NewbieRewardFlag)
    VALUES (@nvcAccountName, @inyAccountLevelCode, NULL, @inyCharacterCreateLimit, NULL, @inyCharacterMaxCount, @dt2LastLoginDate, NULL, dbo.FN_IP2IPNumber(@vchLastLoginIP),   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]LastSessionID, dbo.FN_IP2IPNumber(@vchJoinIP), GETDATE(), @inyPublisherCode, @inyGenderCode,   @[I][B][URL="http://forum.ragezone.com/members/1333446700.html"]DaT[/URL][/B][/I]BirthDate,   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase, @inyNationalityCode, @inyChannelPartnerCode, CAST(0 AS bit), @nvcEmail);

    SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID = SCOPE_IDENTITY();

    /**_# 스튜디오용 계정인 경우, 패스워드를 해쉬하여 저장합니다.*/
    IF @inyPublisherCode = 0 AND   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase IS NOT NULL
        UPDATE dbo.Accounts
        SET Passphrase = dbo.FN_HashPassphrase2   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase,   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID)
        WHERE AccountID =   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID;
END TRY
BEGIN CATCH
    IF ERROR_NUMBER() = 2601 AND ERROR_MESSAGE() LIKE N'%IX_UN_Accounts_AccountName%'
        SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 101101;

    GOTO ErrorHandler;
END CATCH;

RETURN 0;

ErrorHandler:
IF XACT_STATE() <> 0
    ROLLBACK TRANSACTION;

IF   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue IS NULL OR   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 0
    EXEC   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = dbo.P_AddErrorLog;

RETURN   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue;
Use the database @n00bs posted earlier in this thread. That's what he's saying.
Use this database and delete that other one.
Im using @n00bs databases and having that problem ._. (but in italian)
I will download again thanks for that information :lul:
Dragon Nest don't love me D:
 
@n00bs ah ok good to see you got it to work and website are easy. if you going to make a registration I recommend using
Code:
mssql_query("insert into dbo.Accounts (AccountName,Passphrase,AccountLevelCode,SecondAuthFailCount,SecondAuthCode,SecondAuthLockFlag,CharacterCreateLimit,CharacterMaxCount,RegisterDate,PublisherCode) values ('$user',CONVERT(BINARY(20),HashBytes('MD5', '$pass'),2),0,0,1,'false',4,8,GETDATE(),0)");
by Alin1337 so your passphrase is not NULL = any pass
@guay5615
Your error is telling you that your trying to convert varchar into a date which is out of range.

Are you really using n00bs database file it shouldn't cause errors

This is my dbo.Account design see if it match your (except email becuz I made that myself)
8EiIDdU - 7 Classes Level 70 Cap Server Files + Database + Client + Tutorial - RaGEZONE Forums


And this is the store procedure should look like.
Code:
USE [DNMembership]
GO
/****** Object:  StoredProcedure [dbo].[P_AddAccount]    Script Date: 08/22/2014 13:24:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/**
version : 12
author : 김도열
e-mail : [email protected]
created date : 2010-01-04
description : 계정을 추가합니다.
return value :
0 = 에러가 없습니다.
1 = 트랜잭션을 Commit할 수 없는 상태입니다. 트랜잭션을 Rollback합니다.
100 = 시스템 에러가 발생하였습니다. dbo.ErrorLogs 테이블을 조회하세요.
101101 = 이미 등록된 로그인 계정입니다.
101109 = 접속이 차단된 IP입니다.
history :
9 = input param. @inyNationalityCode 추가 at 2010-09-14
10 = input param. @inyChannelPartnerCode 추가 at 2010-11-25
11 = (48559) IP 차단 모드 추가 by 김도열 at 2011-12-23
12 = 신규 계정 보상 관련 플래그 기본 셋팅 추가 by 김원상 at 2013-01-07
**/

ALTER PROCEDURE [dbo].[P_AddAccount]
      @nvcAccountName nvarchar(50) --// 로그인 계정 이름
    , @inyAccountLevelCode tinyint --// 0=일반 유저, 10=신입(넥슨), 20=모니터링(넥슨), 30=마스터(넥슨), 99=QA, 100=개발자
    , @inyCharacterCreateLimit tinyint --// 하루 생성 가능한 캐릭터 수
    , @inyCharacterMaxCount tinyint --// 최대 보유할 수 있는 캐릭터 수
    , @dt2LastLoginDate datetime2(0) --// 최근 로그인 일자
    , @vchLastLoginIP varchar(15) = NULL --// (optional) 최근 로그인한 IP 주소
    ,   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]LastSessionID int = NULL --// (optional) 최근 로그인의 세션 ID
    , @vchJoinIP varchar(15) = NULL --// (optional) 최초 Join 시 IP 주소
    , @inyPublisherCode tinyint --// 0=스튜디오, 1=넥슨, 2=샨다, 3=NHN Japan
    , @inyGenderCode tinyint = NULL --// (optional) 1=남성, 2=여성
    ,   @[I][B][URL="http://forum.ragezone.com/members/1333446700.html"]DaT[/URL][/B][/I]BirthDate date = NULL --// (optional) 생년 월일 (생년만 유효할 수 있습니다.)
    ,   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase binary(20) = NULL --// (optional) 사내 테스트용 계정의 비밀 번호
    , @inyNationalityCode tinyint = NULL --// 국가 코드. 95    Hong Kong, 207=Taiwan
    , @inyChannelPartnerCode tinyint = NULL --// 1=MSN(Japan). 퍼블리셔 자체 계정이면 NULL값을 입력합니다.
    , @nvcEmail nvarchar(320) = NULL --// Emails
    ,   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID int = NULL OUTPUT --// 로그인 계정 ID
--WITH EXECUTE AS 'SPExecutor'
AS
SET NOCOUNT ON;
SET XACT_ABORT ON;

DECLARE   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue int;

/**_# Rollback and return if inside an uncommittable transaction.*/
IF XACT_STATE() = -1
BEGIN
    SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 1;
    GOTO ErrorHandler;
END

BEGIN TRY
    /**_# 계정 생성이 차단된 IP이면 101109를 리턴합니다.*/
    IF EXISTS (
        SELECT * 
        FROM dbo.BlockedIPs WITH (NOLOCK) 
        WHERE dbo.FN_IP2IPNumber(@vchJoinIP) BETWEEN StartIP AND EndIP 
            AND (StartDate IS NULL OR GETDATE() BETWEEN StartDate AND EndDate)
            AND IPBlockMethodCode = 2
    )
    BEGIN
        SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 101109;
        GOTO ErrorHandler;
    END

    /**_# [Accounts] 테이블에 INSERT합니다.*/
    INSERT dbo.Accounts (AccountName, AccountLevelCode, GameOption, CharacterCreateLimit, LastCharacterCreateDate, CharacterMaxCount, LastLoginDate, LastLogoutDate, LastLoginIP, LastSessionID, JoinIP, RegisterDate, PublisherCode, GenderCode, BirthDate, Passphrase, Email, NationalityCode, ChannelPartnerCode, NewbieRewardFlag)
    VALUES (@nvcAccountName, @inyAccountLevelCode, NULL, @inyCharacterCreateLimit, NULL, @inyCharacterMaxCount, @dt2LastLoginDate, NULL, dbo.FN_IP2IPNumber(@vchLastLoginIP),   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]LastSessionID, dbo.FN_IP2IPNumber(@vchJoinIP), GETDATE(), @inyPublisherCode, @inyGenderCode,   @[I][B][URL="http://forum.ragezone.com/members/1333446700.html"]DaT[/URL][/B][/I]BirthDate,   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase, @inyNationalityCode, @inyChannelPartnerCode, CAST(0 AS bit), @nvcEmail);

    SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID = SCOPE_IDENTITY();

    /**_# 스튜디오용 계정인 경우, 패스워드를 해쉬하여 저장합니다.*/
    IF @inyPublisherCode = 0 AND   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase IS NOT NULL
        UPDATE dbo.Accounts
        SET Passphrase = dbo.FN_HashPassphrase2   @[I][B][URL="http://forum.ragezone.com/members/1333464713.html"]PAS[/URL][/B][/I]sphrase,   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID)
        WHERE AccountID =   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]AccountID;
END TRY
BEGIN CATCH
    IF ERROR_NUMBER() = 2601 AND ERROR_MESSAGE() LIKE N'%IX_UN_Accounts_AccountName%'
        SET   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 101101;

    GOTO ErrorHandler;
END CATCH;

RETURN 0;

ErrorHandler:
IF XACT_STATE() <> 0
    ROLLBACK TRANSACTION;

IF   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue IS NULL OR   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = 0
    EXEC   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue = dbo.P_AddErrorLog;

RETURN   @[I][B][URL="http://forum.ragezone.com/members/874269.html"]Int[/URL][/B][/I]ReturnValue;
You said dbo.Account, it is Account or Accounts? xD
The same Design in my table dbo.Accounts
 
@guay5615 If the error still continue I suggest just deleting all the db and restore it again or re-install mssql since I dont really know about that error myself.
Code:
The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value
Maybe you should re-check your account information.

Still trying to fix the cash bag issue since its not working properly.
 
Whenever I equip Assassin costume main weapon, it doesn't show. His main lvl 1 weapon will show(Have not tried any higher level main weapon because I have to craft them). Also his right hand secondary weapon disappears.
 
Status
Not open for further replies.
Back