|
楼主 |
发表于 2016-10-25 09:09:48
|
显示全部楼层
smydie这个变量,还有smyall这个变量
- function check_jobx()
- 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()
- elseif 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
复制代码
shujian.lua中有关于判断死亡多少次之后不做smy任务的判断。
- function fightDie()
- scrLog()
- dis_all()
- nobusy=0
- messageShow('挂了!')
- if job.name=="songmoya" then
- smydie=smydie+1
- CloseLog() --关闭日志
- end
- job.name=nil
- create_triggerex('die',"^(> )*城隍庙 -",'','main')
- end
复制代码
job.lua中,在死亡函数中,有判断死亡次数自动增加。 |
|