最简单粗暴的方式就是把判断 活动时间的函数改造一下。
直接把bActive= x401001_IsActivityOpen(sceneId)判断是是否活动时间,0 不是活动时间,1为活动时间,我们找到efuben_1_zhenlong_huodong.lua文件,修改如下内容。
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; --by雪舞,只要返回值永远能为1即可。顾只要将0改为1 即可将副本无视时间参加。
end