李二萌 发表于 2013-10-11 10:24:41

闪电奶文字版(已完成)

本帖最后由 李二萌 于 2013-10-11 23:01 编辑

杂项(第一优先级)
1.判断当前姿态,不是【灵龙式】,则使用【灵龙式】。
2.判断自身BUFF,【王者祝福/野性印记/帝王传承】不存在,使用【帝王传承】。
3.团队/小队,10个以上70%血量以下,使用【还魂术】,左SHIFT使用【还魂术】。
4.自身蓝量<90%,并且自身BUFF【法力茶】>2时,使用【法力茶】。
5.团队有我的【复苏之雾】BUFF 并且血量<95%的数量>5,使用【雷光聚神茶】。
6.自身血量<45%,使用【壮胆酒】。
7.自身血量<45%,使用【散魔功】。
8.自身血量<20%,使用【禅悟冥想】,并且不打断。
9.自身血量<30%,使用物品【治疗石】。
10.团队有一个人血量<40%,对他使用【作茧缚命】。
11.自己在战斗状态,团队有人血量<95%,并且身上没有我的【复苏之雾】BUFF,对他使用【复苏之雾】。
12.自己在战斗状态,对当前目标使用【真气波】。
省蓝循环(第二优先级)
1.自己蓝量<45%,并且真气<1,自身【清澈】BUFF存在,【熟能生巧】不存在,对当前目标使用【贯日击】。
2.自己蓝量<45%,并且真气>1,自身【清澈】BUFF存在 ,【熟能生巧】存在 ,对当前目标使用【猛虎掌】。
3.自己蓝量>70%,自身【清澈】BUFF存在 ,【熟能生巧】不存在 ,对当前目标使用【贯日击】 .
4.自己蓝量>70% ,真气<2,自身【清澈】BUFF存在 ,对当前目标使用 【碎玉闪电】,不要打断施法。
5.自己蓝量<25% ,【熟能生巧】不存在 ,对当前目标使用【贯日击】。
6.自己蓝量<25% , 真气》2,【熟能生巧】存在 ,对当前目标使用【幻灭踢】。
7.自己蓝量<25% , 真气》1,【熟能生巧】存在 ,对当前目标使用【猛虎掌】。
正常循环(第三优先级)
1.自身BUFF【醍醐灌顶】ID146046存在,对当前目标使用【猛虎下凡】。
2.真气》3,自身BUFF【生死簿】存在,对当前目标使用【轮回之触】。
3.团队有一个人血量《80%,自身BUFF【活力之雾】存在且》5层,对这个人使用【升腾之雾】。
4.真气《4,自己战斗状态,使用【移花接木】。
5.自己真气》2,团队有我的【复苏之雾】BUFF并且血量《80%的数量》5,使用【镇魂引】。
6.自己真气》2 ,自己有【雷光聚神茶】BUFF,使用【镇魂引】。
7.自己真气》1,自己【孰能生巧】BUFF不存在,对当前目标使用【贯日击】。
8.自己【青龙之忱】BUFF不存在,真气》2.使用【幻灭踢】。
9自己真气》1 ,自己【猛虎之力】BUFF不存在,【熟能生巧】BUFF存在,使用【猛虎掌】。
10.自己真气《2,战斗状态,使用【碎玉闪电】,不要打断施法。
11.真气》2,【孰能生巧】BUFF存在,使用【幻灭踢】。







提款机 发表于 2013-10-16 23:16:06

本帖最后由 提款机 于 2013-10-16 23:18 编辑

文字写的非常清晰,脚本写起来也轻松多了。
方案还可以,DPS可以有7W,治疗一直第二--杂项(第一优先级)
--0.骑乘判断
--骑乘\游泳\旅行状态不施法
if IsMounted("player")==1 or BeeUnitCastSpellName("player")=="怒雷破" or BeeUnitCastSpellName("player")=="碎玉闪电" or BeeUnitCastSpellName("player")=="禅悟冥想" or BeePlayerBuffTime("喝水")>1 or BeePlayerBuffTime("进食")>1 or BeePlayerBuffTime("急救")>1 then returnend
if IsInRaid() then grouptype = "raid" else grouptype = "party" end
--1.判断当前姿态,不是【灵龙式】,则使用【灵龙式】。
if not BeeGetShapeshiftFormInfo(1) and BeeIsRun("灵龙式","nogoal") then BeeRun("灵龙式","nogoal");return;end
--2.判断自身BUFF,【王者祝福/野性印记/帝王传承】不存在,使用【帝王传承】。
--野性印记
local buff1="野性印记,王者祝福,页岩蛛之拥,帝王传承";
if BeeIsRun("帝王传承","player") and not BeeStringFind(buff1,BeeUnitBuffList("player")) then BeeRun("帝王传承","player");return;end
--3.团队/小队,10个以上70%血量以下,使用【还魂术】,左SHIFT使用【还魂术】。
if grouptype=="raid" then
    local n,HHS = BeeGroupCountScript('BeeUnitAffectingCombat(unit) and BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<70 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
    if n>=10 and HHS and BeeIsRun("还魂术","nogoal") and not BeeUnitCastSpellName("player")=="禅悟冥想" then
      if UnitCastingInfo("player") then SpellStopCasting() end
      BeeRun("还魂术","nogoal")
    return end
end


--按左shift放还魂术
if IsLeftShiftKeyDown() and BeeUnitAffectingCombat() and BeeIsRun("还魂术","nogoal") then BeeRun("还魂术","nogoal");return;end

--4.自身蓝量<90%,并且自身BUFF【法力茶】>2时,使用【法力茶】。
if BeeIsRun("法力茶","nogoal") and BeePlayerBuffTime("法力茶")>2 and BeeUnitMana("player","%",0)<90 and not UnitCastingInfo("player") then BeeRun("法力茶","player");return;end

--5.团队有我的【复苏之雾】BUFF 并且血量<95%的数量>5,使用【雷光聚神茶】。
local n1,lgjsc = BeeGroupCountScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<95 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit) and BeeUnitBuff("复苏之雾",unit,0,1)>0',"BeeUnitHealth(unit)",grouptype)
if BeeUnitAffectingCombat("player") and n1>=5 and UnitPower("player", 12)>=1 and BeeIsRun("雷光聚神茶",lgjsc) then BeeRun("雷光聚神茶",lgjsc);return;end   

--6.自身血量<45%,使用【壮胆酒】。
if BeeUnitHealth("player","%")<=45 and UnitAffectingCombat("player") and BeeIsRun("壮胆酒","nogoal") then BeeRun("壮胆酒","nogoal");return;end

--7.自身血量<45%,使用【散魔功】。
if BeeUnitHealth("player","%")<=45 and UnitAffectingCombat("player") and BeeIsRun("散魔功","nogoal") then BeeRun("散魔功","nogoal");return;end

--8.自身血量<20%,使用【禅悟冥想】,并且不打断。
if BeeUnitHealth("player","%")<=20 and UnitAffectingCombat("player") and BeeIsRun("禅悟冥想","nogoal") then BeeRun("禅悟冥想","nogoal");return;end

--9.自身血量<30%,使用物品【治疗石】。
if BeeUnitHealth("player","%")<=40 and UnitAffectingCombat("player") and GetItemCount(5512,false,true)>0 and BeeItemCoolDown("治疗石")==0 then BeeRun("/use 治疗石");return;end

--10.团队有一个人血量<40%,对他使用【作茧缚命】。
local ZJFM = BeeGroupMinScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<40 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if ZJFM and BeeIsRun("作茧缚命",ZJFM) and IsSpellInRange("作茧缚命",ZJFM)==1 and UnitAffectingCombat("player") then BeeRun("作茧缚命",ZJFM);return;end

--11.自己在战斗状态,团队有人血量<95%,并且身上没有我的【复苏之雾】BUFF,对他使用【复苏之雾】。
local FSZW = BeeGroupMinScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<95 and BeeUnitBuff("复苏之雾",unit,0,1)<=0 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if FSZW and IsSpellInRange("复苏之雾",FSZW) and BeeIsRun("复苏之雾",FSZW) and not UnitCastingInfo("player") then BeeRun("复苏之雾",FSZW);return;end   

--12.自己在战斗状态,对当前目标使用【真气波】。
if select(5,GetTalentInfo(4)) and BeeIsRun("真气波","target") and UnitAffectingCombat("player") then BeeRun("真气波","target");return;end

--省蓝循环(第二优先级)
if IsInRaid() then grouptype = "raid" else grouptype = "party" end
if BeeUnitCastSpellName("player")=="碎玉闪电" or BeeUnitCastSpellName("player")=="禅悟冥想" then returnend
--1.自己蓝量<45%,并且真气<1,自身【清澈】BUFF存在,【熟能生巧】不存在,对当前目标使用【贯日击】。
if BeeUnitCanAttack("target") and BeeUnitMana("player","%",0)<45 and UnitPower("player", 12)<1 and BeePlayerBuffTime("清澈")>0 and BeePlayerBuffTime("熟能生巧")==-1 and BeeIsRun("贯日击","target") then BeeRun("贯日击","target");return;end

--2.自己蓝量<45%,并且真气>1,自身【清澈】BUFF存在 ,【熟能生巧】存在 ,对当前目标使用【猛虎掌】。
if BeeUnitCanAttack("target") and BeeUnitMana("player","%",0)<45 and UnitPower("player", 12)>1 and BeePlayerBuffTime("清澈")>0 and BeePlayerBuffTime("熟能生巧")>0 and BeeIsRun("猛虎掌","target") then BeeRun("猛虎掌","target");return;end

--3.自己蓝量>70%,自身【清澈】BUFF存在 ,【熟能生巧】不存在 ,对当前目标使用【贯日击】 .
if BeeUnitCanAttack("target") and BeeUnitMana("player","%",0)>70 and BeePlayerBuffTime("清澈")>0 and BeePlayerBuffTime("熟能生巧")==-1 and BeeIsRun("贯日击","target") then BeeRun("贯日击","target");return;end

--4.自己蓝量>70% ,真气<2,自身【清澈】BUFF存在 ,对当前目标使用 【碎玉闪电】,不要打断施法。
if BeeUnitCanAttack("target") and BeeUnitMana("player","%",0)>70 and UnitPower("player", 12)<2 and BeePlayerBuffTime("清澈")>0 and BeeIsRun("碎玉闪电","target") then BeeRun("碎玉闪电","target");return;end

--5.自己蓝量<25% ,【熟能生巧】不存在 ,对当前目标使用【贯日击】。
if BeeUnitCanAttack("target") and BeeUnitMana("player","%",0)<25 and BeePlayerBuffTime("熟能生巧")==-1 and BeeIsRun("贯日击","target") then BeeRun("贯日击","target");return;end

--6.自己蓝量<25% , 真气》2,【熟能生巧】存在 ,对当前目标使用【幻灭踢】。
if BeeUnitCanAttack("target") and BeeUnitMana("player","%",0)<25 and UnitPower("player", 12)>2 and BeePlayerBuffTime("熟能生巧")>0 and BeeIsRun("幻灭踢","target") then BeeRun("幻灭踢","target");return;end

--7.自己蓝量<25% , 真气》1,【熟能生巧】存在 ,对当前目标使用【猛虎掌】。
if BeeUnitCanAttack("target") and BeeUnitMana("player","%",0)<25 and UnitPower("player", 12)>1 and BeePlayerBuffTime("熟能生巧")>0 and BeeIsRun("猛虎掌","target") then BeeRun("猛虎掌","target");return;end
--正常循环(第三优先级)
if IsInRaid() then grouptype = "raid" else grouptype = "party" end
if BeeUnitCastSpellName("player")=="碎玉闪电" or BeeUnitCastSpellName("player")=="禅悟冥想" then returnend
--1.自身BUFF【醍醐灌顶】ID146046存在,对当前目标使用【猛虎下凡】。
if select(5,GetTalentInfo(17)) and BeePlayerBuffTime("醍醐灌顶")>0 and BeeIsRun("猛虎下凡","nogoal") then BeeRun("猛虎下凡","nogoal");return;end

--2.真气》3,自身BUFF【生死簿】存在,对当前目标使用【轮回之触】。
if UnitPower("player", 12)>3 and BeePlayerBuffTime("生死簿")>0 and IsSpellInRange("轮回之触","target")==1 and UnitHealthMax("player")>UnitHealth("target") and BeeIsRun("轮回之触","target") then BeeRun("轮回之触","target");return;end

--3.团队有一个人血量《80%,自身BUFF【活力之雾】存在且》5层,对这个人使用【升腾之雾】。
local STZW = BeeGroupMinScript('BeeUnitAffectingCombat(unit) and BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<80 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if STZW and IsSpellInRange("升腾之雾",STZW)==1 and BeeUnitBuffCount("活力之雾","player",0)==5 and BeeIsRun("升腾之雾",STZW) then BeeRun("升腾之雾",STZW);return;end

--4.真气《4,自己战斗状态,使用【移花接木】。
if UnitPower("player", 12)<4 and BeeUnitAffectingCombat() and BeeIsRun("移花接木") then BeeRun("移花接木","nogoal");return;end

--5.自己真气》2,团队有我的【复苏之雾】BUFF并且血量《80%的数量》5,使用【镇魂引】。
local n2,zhy = BeeGroupCountScript('BeeUnitAffectingCombat(unit) and BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<80 and and BeeUnitBuff("复苏之雾",unit,0,1)>0 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit)",grouptype)
if BeeUnitAffectingCombat() and n2>5 and UnitPower("player", 12)>=2 then BeeRun("/cast 振魂引");return;end

--6.自己真气》2 ,自己有【雷光聚神茶】BUFF,使用【镇魂引】。
if BeePlayerBuffTime("雷光聚神茶")>0 and UnitPower("player", 12)>=2 then BeeRun("/cast 振魂引");return;end

--7.自己真气》1,自己【孰能生巧】BUFF不存在,对当前目标使用【贯日击】。
if BeeUnitCanAttack("target") and UnitPower("player", 12)>1 and BeePlayerBuffTime("熟能生巧")==-1 and BeeIsRun("贯日击","target") then BeeRun("贯日击","target");return;end

--8.自己【青龙之忱】BUFF不存在,真气》2.使用【幻灭踢】。
if BeeUnitCanAttack("target") and UnitPower("player", 12)>2 and BeePlayerBuffTime("青龙之忱")==-1 and BeeIsRun("幻灭踢","target") then BeeRun("幻灭踢","target");return;end

--9自己真气》1 ,自己【猛虎之力】BUFF不存在,【熟能生巧】BUFF存在,使用【猛虎掌】。
if BeeUnitCanAttack("target") and UnitPower("player", 12)>1 and BeePlayerBuffTime("猛虎之力")==-1 and BeeIsRun("猛虎掌","target") then BeeRun("猛虎掌","target");return;end

--10.自己真气《2,战斗状态,使用【碎玉闪电】,不要打断施法。
if BeeUnitAffectingCombat() and BeeUnitCanAttack("target") and UnitPower("player", 12)<2 and BeeIsRun("碎玉闪电","target") then BeeRun("碎玉闪电","target");return;end

--11.真气》2,【孰能生巧】BUFF存在,使用【幻灭踢】。
if BeeUnitCanAttack("target") and UnitPower("player", 12)>2 and BeePlayerBuffTime("熟能生巧")>0 and BeeIsRun("幻灭踢","target") then BeeRun("幻灭踢","target");return;end

李二萌 发表于 2013-10-17 12:34:48

打木桩测试了下,非常NICE~~感谢大神
页: [1]
查看完整版本: 闪电奶文字版(已完成)