|
楼主 |
发表于 2022-12-17 14:05:57
|
显示全部楼层
shujian.lua
function check_job()
if not dml_cnt then dml_cnt = 0 end
if dml_cnt < 5 and (not condition.busy or condition.busy == 0) and vippoison==0 then
local fn = 'logs\\diemenglou_mark_'..score.id..'.log'
local f = io.open(fn,"r")
if not f then
ColourNote('orange','black','未检测到蝶梦楼记录,准备进行蝶梦楼竞技!')
return dml_check()
else
local s = f:read()
f:close()
if s ~= os.date("%Y%m%d%H") then
if os.date("%Y%m%d%H") - s >= 100 then
local x=tostring(os.date("%Y%m%d%H"))
local y1=tonumber(string.sub(x,-4,-3))
if y1==1 then
local y=tonumber(string.sub(x,-2,-1))
s=tostring(s)
local z=tonumber(string.sub(s,-2,-1))
if y>=z then
ColourNote('lime','black','找到'..s..'蝶梦楼记录,日期为昨天。准备进行蝶梦楼竞技!')
return dml_check()
else
ColourNote('white','red','找到'..s..'蝶梦楼记录,时间间隔不足【','yellow','black','24','white','red','】小时不开启蝶梦楼竞技!')
end
else
ColourNote('lime','black','找到'..s..'蝶梦楼记录,日期为昨天。准备进行蝶梦楼竞技!')
return dml_check()
end
else
ColourNote('white','red','找到'..s..'蝶梦楼记录,时间间隔不足【','yellow','black','24','white','red','】小时不开启蝶梦楼竞技!')
end
end
end
end
这一大段统统不要了。 |
|