我下载的EB是一号一角色的,如果改成一号三角色?
如题,我不是开服的,自己玩希望有三个角色,会的人请教教我 你去下1503版本的,研究那个,1503的能建3个角色。 难道1299只能建立1个角色吗?我记得我刚开始研究的时候是可以建立3个角色的啊! 如题,我不是开服的,自己玩希望有三个角色,会的人请教教我214550663 发表于 2009-11-8 17:21 http://www.kofans.cn/bbs/static/image/common/back.gif
把你CREATE_NEW_CHAR存储和
account_char表结构发来 account_char表结构
strAccountID bNation bCharNum strCharID1 strCharID2 strCharID3 strCharID4 strCharID5
char tinyint tinyint char char char char char
CREATE_NEW_CHAR储存过程
-----------------------------------------------------------------
/****** Object:Stored Procedure dbo.CREATE_NEW_CHAR Script Date: 6/6/2006 6:03:33 PM ******/
/****** 개체: 저장 프로시저 dbo.CREATE_NEW_CHAR 스크립트 날짜: 2002-11-14 오전 11:18:03 ******/
-- scripted by samma
-- 2002.01.17
-- 2003.02.06 sungyong
CREATE PROCEDURE CREATE_NEW_CHAR
@nRet smallint OUTPUT,
@AccountID char(21),
@index tinyint,
@CharID char(21),
@Race tinyint,
@Class smallint,
@Hair tinyint,
@Face tinyint,
@Str tinyint,
@Sta tinyint,
@Dex tinyint,
@Intel tinyint,
@Cha tinyint
AS
DECLARE @Row tinyint, @Nation tinyint, @Zone tinyint, @PosX int, @PosZ int
SET @Row = 0 SET @Nation = 0SET @Zone = 0SET @PosX = 0 SET @PosZ = 0
SELECT @Nation = bNation, @Row = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
IF @Row >= 5 SET @nRet =1
IF @Nation = 1 AND @Race > 10 SET @nRet = 2
ELSE IF @Nation = 2 AND @Race < 10 SET @nRet = 2
ELSE IF @Nation <>1 AND @Nation <> 2 SET @nRet = 2
IF @nRet > 0
RETURN
SELECT @Row = COUNT(*) FROM USERDATA WHERE strUserId = @CharID
IF @Row > 0
BEGIN
SET @nRet =3
RETURN
END
--SET @Zone = @Nation
SET @Zone=21
SELECT @PosX = InitX, @PosZ = InitZFROM ZONE_INFO WHERE ZoneNo = @Zone
BEGIN TRAN
IF @index = 0
UPDATE ACCOUNT_CHAR SET strCharID1 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID
ELSE IF @index = 1
UPDATE ACCOUNT_CHAR SET strCharID2 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID
ELSE IF @index = 2
UPDATE ACCOUNT_CHAR SET strCharID3 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID
ELSE IF @index = 3
UPDATE ACCOUNT_CHAR SET strCharID4 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID
ELSE IF @index = 4
UPDATE ACCOUNT_CHAR SET strCharID5 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID
INSERT INTO USERDATA (strUserId, Nation, Race, Class, HairColor, Face, Strong, Sta, Dex, Intel, Cha, Zone, PX, PZ )
VALUES (@CharID, @Nation, @Race, @Class, @Hair, @Face, @Str, @Sta, @Dex, @Intel, @Cha, @Zone, @PosX, @PosZ )
IF @@ERROR <> 0
BEGIN
ROLLBACK TRAN
SET @nRet =4
RETURN
END
COMMIT TRAN
SET @nRet =0
GO
------------------------------------------ 估计是你EB里限制了!换个吧,一般EB默认都是支持3角色! tashin 1298 那个最老的都试了,就是建立第二个人物没反应。唉~完了……
用这个吧!
tashin 1298 那个最老的都试了,就是建立第二个人物没反应。唉~完了……214550663 发表于 2009-11-10 20:26 http://www.kofans.cn/bbs/static/image/common/back.gif
http://www.kofans.cn/bbs/viewthread.php?tid=12862&page=1&extra=#pid96634 昨天搞了个通宵,不是EB的问题,我换了个08年的老库,正常。
就是不知道库里的什么地方…… 昨天搞了个通宵,不是EB的问题,我换了个08年的老库,正常。
就是不知道库里的什么地方……
214550663 发表于 2009-11-11 12:27 http://www.kofans.cn/bbs/static/image/common/back.gif
应该是创建角色相关的存储
页:
[1]
2