|
本帖最后由 faint@tj 于 2017-2-4 10:41 编辑
我这是简单把6大状态分离开,每个状态分成2个阶段,每个阶段定义不同的颂摩崖任务组数。
可以根据实际情况简化或者更细分状态。
- score_check_xy=function(n,l,w)
- score.xiangyun=Trim(w[1]) --六个状态,生、旺、败、平、衰、死
- score.xypot=tonumber(Trim(w[2]))
- if job.name=='songmoya' then
-
- --颂摩崖上不管状态直接打完,下山之后再score触发!
- else
- if score.xiangyun=='衰' then
- if score.xypot>=0 and score.xypot<=14 then
- if job.zuhe["songmoya"] then
- smyteam=12 --根据自己的能力修改对应组数 衰状态 0--14 阶段
- end
- end
- end
- if score.xiangyun=='衰' then
- if score.xypot>=15 and score.xypot<=30 then
- if job.zuhe["songmoya"] then
- smyteam=11 --
- end
- end
- end
- if score.xiangyun=='死' then
- if score.xypot>=0 and score.xypot<=14 then
- if job.zuhe["songmoya"] then
- smyteam=11 --
- end
- end
- end
- if score.xiangyun=='死' then
- if score.xypot>=15 and score.xypot<=30 then
- if job.zuhe["songmoya"] then
- smyteam=10 --
- end
- end
- end
- if score.xiangyun=='生' then
- if score.xypot>=0 and score.xypot<=14 then
- if job.zuhe["songmoya"] then
- smyteam=13 --
- end
- end
- end
- if score.xiangyun=='生' then
- if score.xypot>=15 or score.xypot<=30 then
- if job.zuhe["songmoya"] then
- smyteam=14 --
- end
- end
- end
- if score.xiangyun=='平' then
- if score.xypot>=0 and score.xypot<=14 then
- if job.zuhe["songmoya"] then
- smyteam=13 --
- end
- end
- end
- if score.xiangyun=='平' then
- if score.xypot>=15 and score.xypot<=30 then
- if job.zuhe["songmoya"] then
- smyteam=13 --
- end
- end
- end
- if score.xiangyun=='败' then
- if score.xypot>=0 and score.xypot<=14 then
- if job.zuhe["songmoya"] then
- smyteam=14 --
- end
- end
- end
- if score.xiangyun=='败' then
- if score.xypot>=15 and score.xypot<=30 then
- if job.zuhe["songmoya"] then
- smyteam=13 --
- end
- end
- end
- if score.xiangyun=='旺' then
- if score.xypot>=0 and score.xypot<=14 then
- if job.zuhe["songmoya"] then
- smyteam=14 --
- end
- end
- end
- if score.xiangyun=='旺' then
- if score.xypot>=15 and score.xypot<=30 then
- if job.zuhe["songmoya"] then
- smyteam=15 --
- end
- end
- end
- end
- end
复制代码 |
评分
-
1
查看全部评分
-
|