LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 2043|回复: 2

[求助] 闪电奶文字版(已完成)

 关闭 [复制链接]
发表于 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存在,使用【幻灭踢】。







评分

参与人数 2伸手费 +150 收起 理由
Bin + 50 很给力!
老血 + 100

查看全部评分

回复

使用道具 举报

发表于 2013-10-16 23:16:06 | 显示全部楼层
本帖最后由 提款机 于 2013-10-16 23:18 编辑

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


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

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

  24. --5.团队有我的【复苏之雾】BUFF 并且血量<95%的数量>5,使用【雷光聚神茶】。
  25. 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)
  26. if BeeUnitAffectingCombat("player") and n1>=5 and UnitPower("player", 12)>=1 and BeeIsRun("雷光聚神茶",lgjsc) then BeeRun("雷光聚神茶",lgjsc);return;end   

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

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

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

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

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

  38. --11.自己在战斗状态,团队有人血量<95%,并且身上没有我的【复苏之雾】BUFF,对他使用【复苏之雾】。
  39. 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)
  40. if FSZW and IsSpellInRange("复苏之雾",FSZW) and BeeIsRun("复苏之雾",FSZW) and not UnitCastingInfo("player") then BeeRun("复苏之雾",FSZW);return;end   

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

复制代码
  1. --省蓝循环(第二优先级)
  2. if IsInRaid() then grouptype = "raid" else grouptype = "party" end
  3. if BeeUnitCastSpellName("player")=="碎玉闪电" or BeeUnitCastSpellName("player")=="禅悟冥想" then return  end
  4. --1.自己蓝量<45%,并且真气<1,自身【清澈】BUFF存在,【熟能生巧】不存在,对当前目标使用【贯日击】。
  5. 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

  6. --2.自己蓝量<45%,并且真气>1,自身【清澈】BUFF存在 ,【熟能生巧】存在 ,对当前目标使用【猛虎掌】。
  7. 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

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

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

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

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

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

  6. --2.真气》3,自身BUFF【生死簿】存在,对当前目标使用【轮回之触】。
  7. 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

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

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

  13. --5.自己真气》2,团队有我的【复苏之雾】BUFF并且血量《80%的数量》5,使用【镇魂引】。
  14. 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)
  15. if BeeUnitAffectingCombat() and n2>5 and UnitPower("player", 12)>=2 then BeeRun("/cast 振魂引");return;end

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

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

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

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

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

  26. --11.真气》2,【孰能生巧】BUFF存在,使用【幻灭踢】。
  27. 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~~感谢大神
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 07:31 AM , Processed in 0.058571 second(s), 22 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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