|
发表于 2018-10-30 22:46:03
|
显示全部楼层
hqgzc.lua
function hqgzcFinishGold(n,l,w)
if not hqgzcCnt then hqgzcCnt = 0 end
job.last = 'hqgzc'
hqgzcCnt = hqgzcCnt + 1
EnableTriggerGroup("hqgzcFinish",false)
job.time.e=os.time()
job.time.over=job.time.e-job.time.b
messageShow('做菜任务:完成!获得【'..w[2]..'】锭黄金!')
messageShowT('做菜任务:任务完成,用时:【'..job.time.over..'】秒。')
if hqgzcCnt >= 10 then
local fn = 'logs\\hqgzc_mark_'..score.id..'.log'
local f = io.open(fn,"w")
local s = os.date("%Y%m%d%H")
f:write(s)
f:close()
hqgzcCnt = 0
end
job.zctime=0
flag.idle = 0
dis_all()
return check_halt(check_food)
end
shujian.lua
function checkJob()
if job.last ~= 'hqgzc' then
local fn = 'logs\\hqgzc_mark_'..score.id..'.log'
local f = io.open(fn,"r")
if not f then
return hqgzc()
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
return hqgzc()
end
end
end
end
--if hp.exp>2000000 then job.zuhe["zhuoshe"]=nil end
--if hp.shen>0 or hp.exp>6000000 then job.zuhe["songshan"]=nil end
if job.zuhe["songxin2"] then
job.zuhe["songxin2"]=nil
job.zuhe["songxin"]=true
flag.sx2=true
end
以下内容省略 |
|