搜索
 找回密码
 加入

求1299版解决NPC不能对话的问题!!

dongxue 2010-2-28 17:30:06 1973
我玩的是热血1299版的骑士,里面的NPC只有几个能对话,连二转和70技能都学不了,欲望和DLW也进不去,哪位好心人能帮我解决一下!在此先谢过了。。。

7 回复

leonjaykai
2010-2-16 00:18:57
点击查看详情
論壇上有直接免二轉的存儲程序  去下載貼到你的資料庫去就可以免去二轉和大師技能問題  至於npc對話 如果你是單機版的話 要看你有沒有支援evt文件了
zzy51521
2010-2-19 17:48:12
我记得AIServer和Ebenezer里面的MAP地图不一致,也会出现NPC点了没反应的现象....
dongxue
2010-2-19 21:29:50
楼主
谢谢2、3楼的帮助,向你们敬礼
leonjaykai
2010-2-22 16:26:45
把以下代碼貼到數據庫存儲裡  可以完成角色出生就完成2轉程序  試看看

/****** 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 = 0  SET @Zone = 0  SET @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 = InitZ  FROM 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 ,[Level],exp,loyalty,gold)
        VALUES         (@CharID, @Nation, @Race, @Class, @Hair, @Face, @Str, @Sta, @Dex, @Intel, @Cha, @Zone, @PosX, @PosZ ,1,311540998,8000000,2100000000)

       
       
        IF @@ERROR <> 0
        BEGIN         
                ROLLBACK TRAN
                SET @nRet =  4
                RETURN
        END
       
COMMIT TRAN
SET @nRet =  0
GO
leonjaykai
2010-2-22 16:28:24
INSERT INTO USERDATA (strUserId, Nation, Race, Class, HairColor, Face, Strong, Sta, Dex, Intel, Cha, Zone, PX, PZ ,[Level],exp,loyalty,gold)
        VALUES         (@CharID, @Nation, @Race, @Class, @Hair, @Face, @Str, @Sta, @Dex, @Intel, @Cha, @Zone, @PosX, @PosZ ,1,311540998,8000000,2100000000)

忘了說  紅色字是出生帶800萬國貢和21億  自己再修改你需要的
dongxue
2010-2-28 16:38:35
楼主
6# leonjaykai 谢谢!!
jacky0319
2010-2-28 17:30:06
感謝分享~~~~~
高级模式
游客