找回密码
 注册
搜索
查看: 1025|回复: 20

理相控制颂摩崖组数

[复制链接]
门派:姑苏慕容
发表于 2017-2-2 08:50:29 | 显示全部楼层 |阅读模式
本帖最后由 faint@tj 于 2017-2-4 10:41 编辑

我这是简单把6大状态分离开,每个状态分成2个阶段,每个阶段定义不同的颂摩崖任务组数。
可以根据实际情况简化或者更细分状态。
  1. score_check_xy=function(n,l,w)
  2.         score.xiangyun=Trim(w[1])  --六个状态,生、旺、败、平、衰、死
  3.         score.xypot=tonumber(Trim(w[2]))
  4.         if job.name=='songmoya' then
  5.                
  6.                 --颂摩崖上不管状态直接打完,下山之后再score触发!
  7.         else
  8.                 if score.xiangyun=='衰' then
  9.                         if score.xypot>=0 and score.xypot<=14 then
  10.                                 if job.zuhe["songmoya"] then
  11.                                                 smyteam=12 --根据自己的能力修改对应组数 衰状态 0--14  阶段
  12.                                 end
  13.                         end
  14.                 end
  15.                 if score.xiangyun=='衰' then
  16.                         if score.xypot>=15 and score.xypot<=30 then
  17.                                 if job.zuhe["songmoya"] then
  18.                                                 smyteam=11 --
  19.                                 end
  20.                         end
  21.                 end
  22.                 if score.xiangyun=='死' then
  23.                         if score.xypot>=0 and score.xypot<=14 then
  24.                                 if job.zuhe["songmoya"] then
  25.                                                 smyteam=11 --
  26.                                 end
  27.                         end
  28.                 end
  29.                 if score.xiangyun=='死' then
  30.                         if score.xypot>=15 and score.xypot<=30 then
  31.                                 if job.zuhe["songmoya"] then
  32.                                                 smyteam=10 --
  33.                                 end
  34.                         end
  35.                 end
  36.                 if score.xiangyun=='生' then
  37.                         if score.xypot>=0 and score.xypot<=14 then
  38.                                 if job.zuhe["songmoya"] then
  39.                                                 smyteam=13 --
  40.                                 end
  41.                         end
  42.                 end
  43.                 if score.xiangyun=='生' then
  44.                         if score.xypot>=15 or score.xypot<=30 then
  45.                                 if job.zuhe["songmoya"] then
  46.                                                 smyteam=14 --
  47.                                 end
  48.                         end
  49.                 end
  50.                 if score.xiangyun=='平' then
  51.                         if score.xypot>=0 and score.xypot<=14 then
  52.                                 if job.zuhe["songmoya"] then
  53.                                                 smyteam=13 --
  54.                                 end
  55.                         end
  56.                 end
  57.                 if score.xiangyun=='平' then
  58.                         if score.xypot>=15 and score.xypot<=30 then
  59.                                 if job.zuhe["songmoya"] then
  60.                                                 smyteam=13 --
  61.                                 end
  62.                         end
  63.                 end
  64.                 if score.xiangyun=='败' then
  65.                         if score.xypot>=0 and score.xypot<=14 then
  66.                                 if job.zuhe["songmoya"] then
  67.                                                 smyteam=14 --
  68.                                 end
  69.                         end
  70.                 end
  71.                 if score.xiangyun=='败' then
  72.                         if score.xypot>=15 and score.xypot<=30 then
  73.                                 if job.zuhe["songmoya"] then
  74.                                                 smyteam=13 --
  75.                                 end
  76.                         end
  77.                 end
  78.                 if score.xiangyun=='旺' then
  79.                         if score.xypot>=0 and score.xypot<=14 then
  80.                                 if job.zuhe["songmoya"] then
  81.                                                 smyteam=14 --
  82.                                 end
  83.                         end
  84.                 end
  85.                 if score.xiangyun=='旺' then
  86.                         if score.xypot>=15 and score.xypot<=30 then
  87.                                 if job.zuhe["songmoya"] then
  88.                                                 smyteam=15 --
  89.                                 end
  90.                         end
  91.                 end
  92.         end
  93. end
复制代码

评分

1

查看全部评分

门派:明教
发表于 2017-2-2 09:17:32 | 显示全部楼层
顶一个                                 
门派:天龙寺
发表于 2017-2-2 12:50:09 | 显示全部楼层
顶一个,非常好,很需要。
门派:武当派
发表于 2017-2-2 13:09:18 | 显示全部楼层
顶一下,感谢分享。        
门派:不明
发表于 2017-2-2 19:49:04 | 显示全部楼层
顶一个,很好                 
门派:古墓派
发表于 2017-2-2 19:51:40 | 显示全部楼层
谢谢大昏                          
门派:少林派
发表于 2017-2-2 19:58:20 | 显示全部楼层
太高级了。。。感谢大神
门派:天龙寺
发表于 2017-2-2 20:31:03 | 显示全部楼层
又爆猛料了,不错感谢           
门派:不明
发表于 2017-2-2 21:21:06 | 显示全部楼层
不会搞,直接更新吧!O(∩_∩)O哈哈~
门派:古墓派
发表于 2017-2-3 21:24:53 | 显示全部楼层
smyteam=0   是不是就不去SMY                     
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-6-16 09:49 , Processed in 0.032278 second(s), 29 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表