LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
12
返回列表 发新帖
楼主: 丁丁

[求助] 毁灭术士文字版-结合SIMC与实战经验

 关闭 [复制链接]
发表于 2013-10-16 20:30:21 | 显示全部楼层
本帖最后由 提款机 于 2013-10-17 08:48 编辑
  1. --单目标模块:
  2. local sp1buff="乌苏雷之闪电"; --饰品1的BUFF名称
  3. local sp2buff="电击"; --饰品2的BUFF名称

  4. --1 施放[元素诅咒]
  5. --        1 如果 目标没有法术易伤(元素诅咒 或 元素光环) 那么施放 元素诅咒
  6. if BeeUnitBuff("元素诅咒","target",2,2)<1 and BeeIsRun("元素诅咒","target") then BeeRun("元素诅咒","target");return;end
  7. --2 使用工程手套(10s)/种族DPS天赋技能(狂暴/血性狂怒)
  8. --        1 如果 技能BUFF持续时间>黑魂Buff持续期间 那么使用 工程手套/种族DPS天赋技能(狂暴/血性狂怒)
  9. if BeePlayerBuffTime("黑暗灵魂:易爆")>10 and GetItemSpell(GetItemInfo(GetInventoryItemLink('player',10))) and BeeSpellCD(GetItemInfo(GetInventoryItemLink('player',10)))==0 then BeeRun("/use 10") return;end
  10. --3 使用[青龙药水]
  11. --        1 如果 嗜血/英勇/时间扭曲/远古狂乱/暴怒之鼓 急速BUFF存在 那么使用 青龙药水
  12. if (BeePlayerBuffTime("嗜血")>0 or BeePlayerBuffTime("英勇")>0 or BeePlayerBuffTime("时间扭曲")>0 or BeePlayerBuffTime("远古狂乱")>0 or BeePlayerBuffTime("暴怒之鼓")>0) and GetItemCount(76093,false,true)>0 and BeeItemCoolDown("青龙药水")==0 then BeeRun("/use 青龙药水");return;end
  13. --        2 如果 目标是副本BOSS/首领 而且 目标血量≤20% 那么使用 青龙药水
  14. if IsInInstance() and (UnitName("target")==UnitName("boss1") or UnitName("target")==UnitName("boss2") or UnitName("target")==UnitName("boss3")) and BeeUnitHealth("target","%")<20 and GetItemCount(76093,false,true)>0 and BeeItemCoolDown("青龙药水")==0 then BeeRun("/use 青龙药水");return;end
  15. --4 施放[黑暗灵魂]
  16. --        1  如果自己启用单层黑魂天赋 并且 自己 燃烬≥1
  17. if not select(5,GetTalentInfo(16)) and UnitPower("player", 14)>=1 and BeeIsRun("黑暗灵魂","nogoal") then BeeRun("黑暗灵魂","nogoal");return;end
  18. --        2 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 有两层黑魂充能完毕
  19. if select(5,GetTalentInfo(16)) and UnitPower("player", 14)>=1 and GetSpellCharges(113858)==2 and BeeIsRun("黑暗灵魂","nogoal") then BeeRun("黑暗灵魂","nogoal");return;end
  20. --        3 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 (饰品1)/(饰品2>6层)        
  21. if select(5,GetTalentInfo(16)) and UnitPower("player", 14)>=1 and (BeePlayerBuffTime(sp1buff)>1 or BeePlayerBuffTime(sp2buff)>1) and BeeIsRun("黑暗灵魂","nogoal") then BeeRun("黑暗灵魂","nogoal");return;end
  22. --        4 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 目标是副本BOSS 而且 生命≤10%
  23. if select(5,GetTalentInfo(16)) and UnitPower("player", 14)>=1 and  IsInInstance() and (UnitName("target")==UnitName("boss1") or UnitName("target")==UnitName("boss2") or UnitName("target")==UnitName("boss3"))  and BeeUnitHealth("target","%")<=10 and BeeIsRun("黑暗灵魂","nogoal") then BeeRun("黑暗灵魂","nogoal");return;end
  24. --5 施放[召唤末日守卫]
  25. --        1 如果 没有启用天赋 [魔典:邪恶统御]  并且嗜血/英勇/时间扭曲/远古狂乱/暴怒之鼓 急速BUFF存在 那么施放召唤末日守卫
  26. if not select(5,GetTalentInfo(13)) and (BeePlayerBuffTime("嗜血")>0 or BeePlayerBuffTime("英勇")>0 or BeePlayerBuffTime("时间扭曲")>0 or BeePlayerBuffTime("远古狂乱")>0 or BeePlayerBuffTime("暴怒之鼓")>0) and BeeUnitAffectingCombat() and BeeIsRun("召唤末日守卫","nogoal") then BeeRun("召唤末日守卫","nogoal");return;end
  27. if     select(5,GetTalentInfo(13)) and (BeePlayerBuffTime("嗜血")>0 or BeePlayerBuffTime("英勇")>0 or BeePlayerBuffTime("时间扭曲")>0 or BeePlayerBuffTime("远古狂乱")>0 or BeePlayerBuffTime("暴怒之鼓")>0) and BeeUnitAffectingCombat() and BeeIsRun("召唤恐惧卫士","nogoal") then BeeRun("召唤恐惧卫士","nogoal");return;end
  28. --        2 如果 没有启用天赋 [魔典:邪恶统御]  并且当副本BOSS目标血量≤20%
  29. if not select(5,GetTalentInfo(13)) and IsInInstance() and (UnitName("target")==UnitName("boss1") or UnitName("target")==UnitName("boss2") or UnitName("target")==UnitName("boss3")) and BeeUnitHealth("target","%")<20 and BeeIsRun("召唤末日守卫","nogoal") then BeeRun("召唤末日守卫","nogoal");return;end
  30. if     select(5,GetTalentInfo(13)) and IsInInstance() and (UnitName("target")==UnitName("boss1") or UnitName("target")==UnitName("boss2") or UnitName("target")==UnitName("boss3")) and BeeUnitHealth("target","%")<20 and BeeIsRun("召唤恐惧卫士","nogoal") then BeeRun("召唤恐惧卫士","nogoal");return;end
  31. --7 施放[火焰之雨]
  32. --        1 如果 火雨可覆盖的 敌对目标数量 ≥ 2
  33. --无法判断周围敌人数量

  34. --8 施放[浩劫] (推荐施放给焦点)
  35. --        1 如果 燃烬≥1 并且 敌对目标 > 2
  36. if not UnitIsDead("focus") and BeeUnitCanAttack("focus") and UnitPower("player", 14)>=1 and BeeUnitHealth("focus")>1600000 and BeeIsRun("浩劫,"focus") then BeeRun("浩劫,"focus");return;end
  37. --9 施放[混乱之箭]
  38. --        1 当目标血>20% 并且 自己 浩劫=3层 并且 浩劫持续时间>混乱之箭施法时间
  39. if BeeUnitHealth("target","%")>20 and BeePlayerBuffCount("浩劫")==3 and BeePlayerBuffTime("浩劫")>2 and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
  40. --10 施放[暗影灼烧]
  41. --        1 当目标 血量≤20% 并且 自己 燃烬>3.5 返回值是整数
  42. if BeeUnitHealth("target","%")<=20 and UnitPower("player", 14)>=4 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
  43. --        2 当目标 血量≤20% 并且 自己 蓝<20%
  44. if BeeUnitHealth("target","%")<=20 and BeeUnitMana("player","%")<70 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
  45. --        3 当目标 血量≤20% 并且 自己 黑魂BUFF存在
  46. if BeeUnitHealth("target","%")<=20 and BeePlayerBuffTime("黑暗灵魂:易爆")>0 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
  47. --        4 当目标 血量≤20% 并且 目标 将在少于20秒内死亡
  48. if BeeUnitHealth("target","%")<=7 and IsInInstance() and (UnitName("target")==UnitName("boss1") or UnitName("target")==UnitName("boss2") or UnitName("target")==UnitName("boss3")) and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
  49. --        5 当目标 血量≤20% 并且 自己 浩劫层数≥1
  50. if BeeUnitHealth("target","%")<=20 and BeePlayerBuffCount("浩劫")>=1 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
  51. --        6 当目标 血量≤20% 并且 自己 (饰品1)/(饰品2BUFF出现)
  52. if BeeUnitHealth("target","%")<=20 and (BeePlayerBuffTime(sp1buff)>0 or BeePlayerBuffTime(sp2buff)>0) and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
  53. --11 施放[献祭]
  54. --        1 如果 目标/焦点 献祭持续时间<5.5s 并且可保持时间>≈12s
  55. if BeeTargetDeBuffTime("献祭")<5.5 then BeeRun("献祭","target");BeeUnitCastSpellDelay("献祭",0.9);return;end
  56. if BeeTargetDeBuffTime("献祭")>12  and BeeUnitCastSpellName("player")=="献祭" then BeeRun("/stopcasting");return;end
  57. --12 施放[燃烧]
  58. --        1 如果 燃烧 充能=2层 并且 浩劫层数=0
  59. if BeeIsRun("燃烧","target") and GetSpellCharges("燃烧")==2 and BeePlayerBuffCount("浩劫")==-1 then BeeRun("燃烧","target");return;end
  60. --13 施放[火焰之雨]
  61. --        1 如果自己 移动时
  62. if GetUnitSpeed("player")>0 and BeeIsRun("火焰之雨","nogoal") and BeePlayerBuffTime("火焰之雨")==-1 then
  63.     CastSpellByName(tostring(GetSpellInfo(104232),nil)) --火焰之雨
  64.     if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end  --点击执行
  65. return;end

  66. --        2 如果黑魂CD<2s(准备使用黑魂+多发混乱之箭前的泄蓝)
  67. if (BeeSpellCoolDown("黑暗灵魂")<2 and GetSpellCharges(113858)==0) and BeeIsRun("火焰之雨","nogoal") then
  68.     CastSpellByName(tostring(GetSpellInfo(104232),nil)) --火焰之雨
  69.     if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end  --点击执行
  70. return;end

  71. --14 施放[混乱之箭]
  72. --        1 当 目标血≥20% 并且 黑魂BUFF存在 并且 混乱箭施法时间<黑魂BUFF的存在剩余时间
  73. if BeeUnitHealth("target","%")>=20 and select(7,GetSpellInfo(116858))<BeePlayerBuffTime("黑暗灵魂:易爆") and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
  74. --        2 当 目标血≥20% 并且 (饰品1)/(饰品2>6层) 并且 混乱箭施法时间<(饰品1)/(饰品2>6层)的存在剩余时间
  75. if BeeUnitHealth("target","%")>=20 and (BeePlayerBuffTime(sp1buff)>1 or BeePlayerBuffTime(sp2buff)>1) and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
  76. --        3 当 目标血≥20% 并且 燃烬>3.5 并且 (离下一次黑魂可用)黑魂CD>≈15秒
  77. if BeeUnitHealth("target","%")>=20 and UnitPower("player", 14)>=4 and (BeeSpellCoolDown("黑暗灵魂")>15 and GetSpellCharges(113858)==0) and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
  78. --15 施放[燃烧]
  79. if BeeIsRun("燃烧","target")  then BeeRun("/cast 燃烧");return;end
  80. --16 施放[烧尽]
  81. if  BeeSpellCoolDown("烧尽")==0 then BeeRun("/cast 烧尽");return;end
  82. --17 施放[邪焰]
  83. --        17-1 当自己移动时 并且 没有移动施法天赋 [基尔加丹的狡诈]
  84. if GetUnitSpeed("player")>0 and not select(5,GetTalentInfo(17)) and BeeIsRun("邪焰","target") then BeeRun("邪焰","target");return;end
复制代码
有些疑问,混乱箭是以3层浩劫为条件,浩劫只有1条,吧敌人设置了焦点,单体BOSS的话,混乱箭根本不放,你这条件咋设置的?你YJWOW也这么写的吗?

点评

21-22行是不是有问题?没判断饰品开黑魂 单层黑魂开启的条件是 双SP的其中一个触发 并身上有≥1格燃烬 才开  详情 回复 发表于 2013-10-17 06:30 AM

评分

参与人数 1威望 +50 伸手费 +100 声望 +50 收起 理由
老血 + 50 + 100 + 50 NICE

查看全部评分

回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-17 06:30:02 | 显示全部楼层
提款机 发表于 2013-10-16 20:30
有些疑问,混乱箭是以3层浩劫为条件,浩劫只有1条,吧敌人设置了焦点,单体BOSS的话,混乱箭根本不放,你这 ...

21-22行是不是有问题?没判断饰品开黑魂

单层黑魂开启的条件是 双SP的其中一个触发 并身上有≥1格燃烬 才开
回复 支持 反对

使用道具 举报

发表于 2013-10-17 08:47:01 | 显示全部楼层
--        3 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 (饰品1)/(饰品2>6层)        

--   这样描述更清楚点:启用“阿克蒙德黑暗”天赋,燃尽>=1,两个饰品触发其中一个后,释放黑暗灵魂
if select(5,GetTalentInfo(16)) and UnitPower("player", 14)>=1 and (BeePlayerBuffTime(sp1buff)>1 or BeePlayerBuffTime(sp2buff)>1) and BeeIsRun("黑暗灵魂","nogoal") then BeeRun("黑暗灵魂","nogoal");return;end

点评

当没启用“阿克蒙德黑暗”天赋,燃尽>=1,两个饰品触发其中一个后,释放黑暗灵魂  详情 回复 发表于 2013-10-17 11:37 AM
回复 支持 反对

使用道具 举报

发表于 2013-10-17 09:41:06 | 显示全部楼层
看见ATM的码,顿时觉得,仰视啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-17 11:37:41 | 显示全部楼层
提款机 发表于 2013-10-17 08:47
--        3 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 (饰品1)/(饰品2>6层)        

--   这样描述更 ...

启用“阿克蒙德黑暗”天赋,燃尽>=1,两个饰品触发其中一个后,释放黑暗灵魂
回复 支持 反对

使用道具 举报

发表于 2013-10-18 08:30:04 | 显示全部楼层
已经按你这个修改了。但总觉得你这个方案怪怪的
回复 支持 反对

使用道具 举报

发表于 2014-7-29 02:28:13 | 显示全部楼层
哇,高手高手···改天试试···
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-7-29 05:04:52 | 显示全部楼层
沧月 发表于 2014-7-29 02:28
哇,高手高手···改天试试···

你冒泡啦 别看这个了 我已经做出终极版咧
回复 支持 反对

使用道具 举报

发表于 2014-7-29 16:13:30 | 显示全部楼层
楼上的 终极版在哪啊

点评

[5.4-PVE] 术士 - 毁灭【终极版 -_-#】 http://www.luacn.net/thread-2455-1-1.html (出处: 游戏LUA脚本交流论坛)  详情 回复 发表于 2014-7-30 02:11 AM
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-7-30 02:11:42 | 显示全部楼层
老血 发表于 2014-7-29 16:13
楼上的 终极版在哪啊

[5.4-PVE] 术士 - 毁灭【终极版 -_-#】
http://www.luacn.net/thread-2455-1-1.html
(出处: 游戏LUA脚本交流论坛)



回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-5-3 10:54 PM , Processed in 0.082759 second(s), 33 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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