|
发表于 2018-11-2 17:01:59
|
显示全部楼层
function check_job()
if xcexp==0 and hp.exp<1000000 then
print('巡城到1M')
kdummy=0
return xunCheng()
end
if xcexp==1 and hp.exp<2000000 then
print('巡城到2M')
kdummy=0
return xunCheng()
end
create_triggerex_lvl('dmlflag1','^(> )*【江湖传闻】玩家竞技活动开始了!','','dml_on',95)
SetTriggerOption('dmlflag1','group','hp')
if not dmlFightCnt then dmlFightCnt = 0
if dmlFightCnt < 5 and (not condition.busy or condition.busy == 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
ColourNote('lime','black','找到'..s..'蝶梦楼记录,已经过24小时。准备进行蝶梦楼竞技!')
return dml_check()
end
end
end
end
end
if score.party=="桃花岛" and (hp.shen>150000 or hp.shen<-150000) then
return thdJiaohui()
end
--if score.gold and score.gold>150 and weaponUsave and countTab(weaponUsave)>0 and math.random(1,5)==1 then
--return weaponUcheck()
--end
return check_halt(weaponUcheck)
end
function check_jobx()
if fqyytmp.goArmorD==1 then
return fqyyArmorGoCheck()
end
if job.zuhe==nil then job.zuhe={} end
if job.zuhe["zhuoshe"] and score.party~="丐帮" then job.zuhe["zhuoshe"]=nil end
if job.zuhe["sldsm"] and score.party~="神龙教" then job.zuhe["sldsm"]=nil end
if job.zuhe["songmoya"] and hp.exp<5000000 then job.zuhe["songmoya"]=nil end
if smydie*1>=smyall*1 then job.zuhe["songmoya"]=nil end
if job.zuhe["husong"] and (score.party~="少林派" or hp.exp<2000000) then job.zuhe["husong"]=nil end
if job.zuhe["songmoya"] and job.last~="songmoya" and mytime<=os.time() then return songmoya() end
if job.zuhe["hubiao"] and job.last~="hubiao" and job.teamname and ((not condition.hubiao) or (condition.hubiao and condition.hubiao<=0)) then
return hubiao()
elseif job.zuhe["husong"] then
return husong()
else
return checkJob()
end
end
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 |
|