天龙八部取消活动副本的时间限制:整天都能进入副本

2022年8月22日12:41:20 发表评论 363 views

首先我们用棋局副本做演示,其他的原理类似

 

修改棋局副本最简单粗暴的方式就是把判断 活动时间的函数改造一下。

直接把bActive= x401001_IsActivityOpen(sceneId)判断是是否活动时间,0 不是活动时间,1为活动时间,我们找到efuben_1_zhenlong_huodong.lua文件,修改如下内容。

大概在此文件的900多行处。

天龙八部取消活动副本的时间限制:整天都能进入副本

 

function x401001_IsActivityOpen(sceneId)
        local nHour = GetHour();
        local nMinute = GetMinute();
        local nCurTempTime = nHour * 60 + nMinute;
        if nCurTempTime >= x401001_g_beginTime1 and nCurTempTime < x401001_g_endTime1 then
                return 1;
        end
        if nCurTempTime >= x401001_g_beginTime2 and nCurTempTime < x401001_g_endTime2 then
                return 1;
        end
        --return 0;
        return 1;  只要返回值永远能为1即可。顾只要将0改为1 即可将副本无视时间参加。
end

 

 

历史上的今天:


欢迎来到菜鸟头头的个人博客
本文章百度已收录,若发现本站有任何侵犯您利益的内容,请及时邮件或留言联系,我会第一时间删除所有相关内容。

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: