您当前的位置:首页 > 其他技术 > 天龙技术

真正中燕子坞进入黑屏的解决办法

本文出处:网游动力作者:本站发布时间:2008-11-06阅读次数:
sceneinfo.ini 文件内容.(独家放出,有盐湖等)
[scene298];这个根据你自己的调整
threadindex=50
clientres=236
name=燕子坞
active=1
file=yanziwu.scn
serverid=0
type=1
PvpRuler=6

[scene299]
threadindex=80
clientres=235
name=盐湖
active=1
file=yanhu.scn
serverid=3
type=0
PvpRuler=2

[scene300]
threadindex=80
clientres=234
name=竞技场
active=1
file=jingjichang.scn
serverid=3
type=0
PvpRuler=82 

[scene301]
threadindex=80
clientres=238
name=洛阳第一休息室
active=1
file=qijvxiuxi_1.scn
serverid=3
type=0
PvpRuler=0

[scene302]
threadindex=80
clientres=239
name=洛阳第二休息室
active=1
file=qijvxiuxi_2.scn
serverid=34
type=0:
PvpRuler=0

[scene304]
threadindex=21
clientres=233
name=牡丹碗
active=1
file=cuju.scn
serverid=0
type=1
PvpRuler=0

[scene305]_
threadindex=21
clientres=241
name=苏州休息室
active=1
file=qijvxiuxi_4.scn
serverid=0
type=0
PvpRuler=0

[scene306]
threadindex=50
clientres=240
name=大理休息室
active=1
file=qijvxiuxi_3.scn
serverid=1
type=0
PvpRuler=0

2其实用了上一步,基本上那些黑屏的问题就可以解决了.但为了防止有人乱改脚本,可能会进不去...我再详细些
taihu_monster.ini文件中的李纲部分,其它的太大了.
[monster0]
guid=1627148
type=105
name=李纲        
title=太湖水军监军        
pos_x=70.3923
pos_z=118.9604
dir=27
script_id=4002
respawn_time=15000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1

下面的这个是水牢的
[monster13]
guid=1636566
type=103
name=呼延庆
title=太湖水军大都督
pos_x=66.5252
pos_z=76.7254
dir=18
script_id=4001
respawn_time=15000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1

我的是汉化并通过的.
3李纲脚本
otaihu_ligang.lua
--太湖 李纲
--脚本号
x004002_g_scriptId = 004002
--所拥有的事件ID列表
x004002_g_eventList={401040}       --210400, 210401, 210402, 210403, 210404
--**********************************
--事件列表
--**********************************
function x004002_UpdateEventList( sceneId, selfId,targetId )
BeginEvent(sceneId)
              local  PlayerName=GetName(sceneId,selfId)
              local IsDone471 = IsMissionHaveDone(sceneId,selfId,471)
                AddText(sceneId, "#{OBJ_taihu_0002}")
                for i, eventId in x004002_g_eventList do
                        CallScriptFunction( eventId, "OnEnumerate",sceneId, selfId, targetId )
end
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end

--**********************************
--事件交互入口
--**********************************

function x004002_OnDefaultEvent( sceneId, selfId,targetId )
          x004002_UpdateEventList( sceneId, selfId, targetId )
end

--**********************************
--事件列表选中一项
--**********************************
function x004002_OnEventRequest( sceneId, selfId, targetId, eventId )
        for i, findId in x004002_g_eventList do
           if eventId == findId then
            CallScriptFunction( eventId, "OnDefaultEvent",sceneId, selfId, targetId )
         return
    end
  end
end

--**********************************
--接受此NPC的任务
--**********************************

function x004002_OnMissionAccept( sceneId, selfId, targetId, missionScriptId )
           for i, findId in x004002_g_eventList do
                if missionScriptId == findId then
                        ret = CallScriptFunction( missionScriptId, "CheckAccept", sceneId, selfId )
                        if ret > 0 then
                             CallScriptFunction( missionScriptId, "OnAccept", sceneId, selfId, targetId )
                    end
              return
          end
      end
end

--**********************************
--拒绝此NPC的任务
--**********************************

function x004002_OnMissionRefuse( sceneId, selfId, targetId, missionScriptId )
             --拒绝之后,要返回NPC的事件列表
              for i, findId in x004002_g_eventList do
                if missionScriptId == findId then
                   x004002_UpdateEventList( sceneId, selfId, targetId )
                       return
                end
        end
end

--**********************************
--继续(已经接了任务)
--**********************************

function x004002_OnMissionContinue( sceneId, selfId, targetId, missionScriptId )
               for i, findId in x004002_g_eventList do
                             if missionScriptId ==findId then
                               CallScriptFunction( missionScriptId, "OnContinue", sceneId, selfId, targetId )
                        return
                end
        end
end

--**********************************
--提交已做完的任务
--**********************************

function x004002_OnMissionSubmit( sceneId, selfId, targetId, missionScriptId, selectRadioId )
        for i, findId in x004002_g_eventList do
                if missionScriptId == findId then
                        CallScriptFunction( missionScriptId, "OnSubmit", sceneId, selfId, targetId, selectRadioId )
                        return
               end 
        end
end

--**********************************
--死亡事件
--**********************************
function x004002_OnDie( sceneId, selfId, killerId )
end

以上部分,其实大家的都没什么问题,参考下吧
再来看401040这个脚本代号内容
eventyanziwuyanziwu_1.lua
看了一下,好大的文件.其实大家手中的文件都没什么问题的,我就测试时需改的地方说下
--副本名称
x401040_g_CopySceneName = "燕子坞"
x401040_g_CopySceneType = FUBEN_DAZHAN_YZW        --副本类型,定义在ScriptGlobal.lua里面
--x401040_g_CopySceneMap = "yanziwu.nav"
x401040_g_CopySceneMap = "yanziwu.nav"
x401040_g_LimitMembers = 2                        --可以进副本的最小队伍人数;这样一改,可以两人就进了
01040_g_TickTime = 1                                                --回调脚本的时钟时间(单位:秒/次)
x401040_g_LimitTotalHoldTime = 360--副本可以存活的时间(单位:次数),如果此时间到了,则任务将会失败
x401040_g_LimitTimeSuccess = 500        --副本时间限制(单位:次数),如果此时间到了,任务完成
x401040_g_CloseTick = 3                                                --副本关闭前倒计时(单位:次数)
x401040_g_NoUserTime = 300                                --副本中没有人后可以继续保存的时间(单位:秒)
x401040_g_DeadTrans = 0                                                --死亡转移模式,0:死亡后还可以继续在副本,1:死亡后被强制移出副本
x401040_g_Fuben_X = 177                                                --进入副本的位置X
x401040_g_Fuben_Z = 234                                                --进入副本的位置Z
x401040_g_Back_X = 70                                                  --源场景位置X
x401040_g_Back_Z = 120                                                --源场景位置Z
x401040_g_Back_SceneId = 4                                --源场景Id