leonjaykai 发表于 2009-12-8 08:15:35

請教各位有關數據庫NPC對應一事

我個人是單機仿2.0版遊戲正常 但部份npc 像轉職大商人大商人女兒   欲望島龍洞區60區的傳送員寶箱交換員等都沒有任何反應 之前爬版看到有關 EVent與NPC bytype對應的問題 我看了一下我的數據庫發現以下請各位看看是否可提供意見進行修正....謝謝
.
以下兩張圖第一張圖在k_NPC裡可以看到npc所對應的bytype數值
isimg=true]http://pic.qiannao.com:83/r.jsp?fn=//ctgwglzc/share/2009/12/8/sshot-002d11260231266258.jpg
第2張在數據庫event裡看到的type卻都是1 ? 想請教各位這正常嗎??或是我找尋的方向是錯的還請請教謝謝

isimg=true]http://pic.qiannao.com:83/r.jsp?fn=//ctgwglzc/share/2009/12/8/sshot-002d2.jpg
http://pic.qiannao.com:83/r.jsp?fn=//ctgwglzc/share/2009/12/8/sshot-002d11260231266258.jpg
http://pic.qiannao.com:83/r.jsp?fn=//ctgwglzc/share/2009/12/8/sshot-002d2.jpg

evaydd 发表于 2009-12-11 20:05:49

CREATE PROCEDURE ACCOUNT_LOGIN
@AccountID varchar(21),
@Password varchar(13),
@nRet smallint OUTPUT

AS
select @nRet = count(straccountid) from tb_user where straccountid = @AccountID
if @nRet = 0
begin
   RETURN
end


select @nRet = strAuthority from tb_user where straccountid = @AccountID
if @nRet = 255
begin
set @nRet=4
return
end


DECLARE @Nation tinyint, @CharNum smallint
SET @Nation = 0
SET @CharNum = 0

DECLARE @pwd varchar(13)
set @pwd=null
SELECT @pwd = strPasswd FROM . WHERE strAccountID = @AccountIDandidays>0
IF @pwd IS null
BEGIN
--SET @nRet = 0
      SET @nRet = 4
RETURN
END
ELSE IF @pwd <> @Password
BEGIN
--SET @nRet = 0
      SET @nRet = 3
RETURN
END


SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
IF @@ROWCOUNT = 0
BEGIN
SET @nRet = 1
RETURN
END
IF @CharNum = 0
BEGIN
SET @nRet = 1
RETURN
END
ELSE
BEGIN
SET @nRet = @Nation+1
      END
DECLARE @premiumExpire datetime,@nDays int
DELETE FROM PREMIUM_SERVICE WHERE strAccountID = @AccountID
SELECT @premiumExpire=premiumExpire FROM TB_USER WHERE strAccountID = @AccountID
IF @premiumExpire IS NOT NULL
BEGIN
      SET @nDays = DateDiff(d, getDate(), @premiumExpire)
      IF @nDays>0
                INSERT INTO PREMIUM_SERVICE(strAccountID,strType,nDays) VALUES(@AccountID,4,@nDays)
END
GO

leonjaykai 发表于 2009-12-11 20:26:50

請問這是什麼意思??不懂   請指教~~

talkweb 发表于 2010-1-5 08:54:01

evt有问题,才点不开NPC

leonjaykai 发表于 2010-1-6 08:56:04

謝謝請教~~~另請教一事 如果現在npc點開了點了任務但沒反應的話也是evt編寫問題嗎?

zzy51521 发表于 2010-1-26 19:30:07

我的也有这个毛病...那些代码怎么用啊??
页: [1]
查看完整版本: 請教各位有關數據庫NPC對應一事