|
楼主 |
发表于 2018-11-3 14:34:58
|
显示全部楼层
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 end
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
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 |
|