本帖最后由 提款机 于 2013-10-17 08:48 编辑
- --单目标模块:
- local sp1buff="乌苏雷之闪电"; --饰品1的BUFF名称
- local sp2buff="电击"; --饰品2的BUFF名称
- --1 施放[元素诅咒]
- -- 1 如果 目标没有法术易伤(元素诅咒 或 元素光环) 那么施放 元素诅咒
- if BeeUnitBuff("元素诅咒","target",2,2)<1 and BeeIsRun("元素诅咒","target") then BeeRun("元素诅咒","target");return;end
- --2 使用工程手套(10s)/种族DPS天赋技能(狂暴/血性狂怒)
- -- 1 如果 技能BUFF持续时间>黑魂Buff持续期间 那么使用 工程手套/种族DPS天赋技能(狂暴/血性狂怒)
- if BeePlayerBuffTime("黑暗灵魂:易爆")>10 and GetItemSpell(GetItemInfo(GetInventoryItemLink('player',10))) and BeeSpellCD(GetItemInfo(GetInventoryItemLink('player',10)))==0 then BeeRun("/use 10") return;end
- --3 使用[青龙药水]
- -- 1 如果 嗜血/英勇/时间扭曲/远古狂乱/暴怒之鼓 急速BUFF存在 那么使用 青龙药水
- 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
- -- 2 如果 目标是副本BOSS/首领 而且 目标血量≤20% 那么使用 青龙药水
- 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
- --4 施放[黑暗灵魂]
- -- 1 如果自己启用单层黑魂天赋 并且 自己 燃烬≥1
- if not select(5,GetTalentInfo(16)) and UnitPower("player", 14)>=1 and BeeIsRun("黑暗灵魂","nogoal") then BeeRun("黑暗灵魂","nogoal");return;end
- -- 2 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 有两层黑魂充能完毕
- if select(5,GetTalentInfo(16)) and UnitPower("player", 14)>=1 and GetSpellCharges(113858)==2 and BeeIsRun("黑暗灵魂","nogoal") then BeeRun("黑暗灵魂","nogoal");return;end
- -- 3 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 (饰品1)/(饰品2>6层)
- 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
- -- 4 如果自己启用双层黑魂天赋 并且 燃烬≥1 并且 目标是副本BOSS 而且 生命≤10%
- 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
- --5 施放[召唤末日守卫]
- -- 1 如果 没有启用天赋 [魔典:邪恶统御] 并且嗜血/英勇/时间扭曲/远古狂乱/暴怒之鼓 急速BUFF存在 那么施放召唤末日守卫
- 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
- 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
- -- 2 如果 没有启用天赋 [魔典:邪恶统御] 并且当副本BOSS目标血量≤20%
- 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
- 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
- --7 施放[火焰之雨]
- -- 1 如果 火雨可覆盖的 敌对目标数量 ≥ 2
- --无法判断周围敌人数量
- --8 施放[浩劫] (推荐施放给焦点)
- -- 1 如果 燃烬≥1 并且 敌对目标 > 2
- if not UnitIsDead("focus") and BeeUnitCanAttack("focus") and UnitPower("player", 14)>=1 and BeeUnitHealth("focus")>1600000 and BeeIsRun("浩劫,"focus") then BeeRun("浩劫,"focus");return;end
- --9 施放[混乱之箭]
- -- 1 当目标血>20% 并且 自己 浩劫=3层 并且 浩劫持续时间>混乱之箭施法时间
- if BeeUnitHealth("target","%")>20 and BeePlayerBuffCount("浩劫")==3 and BeePlayerBuffTime("浩劫")>2 and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
- --10 施放[暗影灼烧]
- -- 1 当目标 血量≤20% 并且 自己 燃烬>3.5 返回值是整数
- if BeeUnitHealth("target","%")<=20 and UnitPower("player", 14)>=4 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
- -- 2 当目标 血量≤20% 并且 自己 蓝<20%
- if BeeUnitHealth("target","%")<=20 and BeeUnitMana("player","%")<70 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
- -- 3 当目标 血量≤20% 并且 自己 黑魂BUFF存在
- if BeeUnitHealth("target","%")<=20 and BeePlayerBuffTime("黑暗灵魂:易爆")>0 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
- -- 4 当目标 血量≤20% 并且 目标 将在少于20秒内死亡
- 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
- -- 5 当目标 血量≤20% 并且 自己 浩劫层数≥1
- if BeeUnitHealth("target","%")<=20 and BeePlayerBuffCount("浩劫")>=1 and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
- -- 6 当目标 血量≤20% 并且 自己 (饰品1)/(饰品2BUFF出现)
- if BeeUnitHealth("target","%")<=20 and (BeePlayerBuffTime(sp1buff)>0 or BeePlayerBuffTime(sp2buff)>0) and BeeIsRun("暗影灼烧","target") then BeeRun("暗影灼烧","target");return;end
- --11 施放[献祭]
- -- 1 如果 目标/焦点 献祭持续时间<5.5s 并且可保持时间>≈12s
- if BeeTargetDeBuffTime("献祭")<5.5 then BeeRun("献祭","target");BeeUnitCastSpellDelay("献祭",0.9);return;end
- if BeeTargetDeBuffTime("献祭")>12 and BeeUnitCastSpellName("player")=="献祭" then BeeRun("/stopcasting");return;end
- --12 施放[燃烧]
- -- 1 如果 燃烧 充能=2层 并且 浩劫层数=0
- if BeeIsRun("燃烧","target") and GetSpellCharges("燃烧")==2 and BeePlayerBuffCount("浩劫")==-1 then BeeRun("燃烧","target");return;end
- --13 施放[火焰之雨]
- -- 1 如果自己 移动时
- if GetUnitSpeed("player")>0 and BeeIsRun("火焰之雨","nogoal") and BeePlayerBuffTime("火焰之雨")==-1 then
- CastSpellByName(tostring(GetSpellInfo(104232),nil)) --火焰之雨
- if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end --点击执行
- return;end
- -- 2 如果黑魂CD<2s(准备使用黑魂+多发混乱之箭前的泄蓝)
- if (BeeSpellCoolDown("黑暗灵魂")<2 and GetSpellCharges(113858)==0) and BeeIsRun("火焰之雨","nogoal") then
- CastSpellByName(tostring(GetSpellInfo(104232),nil)) --火焰之雨
- if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end --点击执行
- return;end
- --14 施放[混乱之箭]
- -- 1 当 目标血≥20% 并且 黑魂BUFF存在 并且 混乱箭施法时间<黑魂BUFF的存在剩余时间
- if BeeUnitHealth("target","%")>=20 and select(7,GetSpellInfo(116858))<BeePlayerBuffTime("黑暗灵魂:易爆") and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
- -- 2 当 目标血≥20% 并且 (饰品1)/(饰品2>6层) 并且 混乱箭施法时间<(饰品1)/(饰品2>6层)的存在剩余时间
- if BeeUnitHealth("target","%")>=20 and (BeePlayerBuffTime(sp1buff)>1 or BeePlayerBuffTime(sp2buff)>1) and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
- -- 3 当 目标血≥20% 并且 燃烬>3.5 并且 (离下一次黑魂可用)黑魂CD>≈15秒
- if BeeUnitHealth("target","%")>=20 and UnitPower("player", 14)>=4 and (BeeSpellCoolDown("黑暗灵魂")>15 and GetSpellCharges(113858)==0) and BeeIsRun("混乱箭","target") then BeeRun("混乱箭","target");return;end
- --15 施放[燃烧]
- if BeeIsRun("燃烧","target") then BeeRun("/cast 燃烧");return;end
- --16 施放[烧尽]
- if BeeSpellCoolDown("烧尽")==0 then BeeRun("/cast 烧尽");return;end
- --17 施放[邪焰]
- -- 17-1 当自己移动时 并且 没有移动施法天赋 [基尔加丹的狡诈]
- if GetUnitSpeed("player")>0 and not select(5,GetTalentInfo(17)) and BeeIsRun("邪焰","target") then BeeRun("邪焰","target");return;end
复制代码 有些疑问,混乱箭是以3层浩劫为条件,浩劫只有1条,吧敌人设置了焦点,单体BOSS的话,混乱箭根本不放,你这条件咋设置的?你YJWOW也这么写的吗?
|