找回密码
 立即注册
服务器名版本类型版本介绍玩家QQ群号星级
查看: 460|回复: 0

[潜行者] 335战斗贼优化输出

[复制链接]

38

主题

0

回帖

122

积分

超级版主

积分
122
发表于 2023-12-14 19:22:38 | 显示全部楼层 |阅读模式
138wow.com
335战斗贼优化.jpg

本人对贼不太精通,会玩的可以自行再度优化!~

  1. if UnitIsDeadOrGhost("player") then BeeRun("/目标 灵魂医者");RepopMe()RetrieveCorpse()AcceptResurrect()AcceptXPLoss()return;end
  2. if IsSpellInRange("刺骨")~=1 and BeeUnitCanAttack("target")==1 then ClearTarget()end
  3. BeeRun("/targetenemy [noharm][dead]")
  4. BeeRun("/startattack")
  5. ----------------------------------------------全局变量----------------------------------------
  6. local a = "target"
  7. local b = "player"
  8. local Tbl = BeeUnitBuffList(a)
  9. local buff = BeeUnitBuffList(b)
  10. local d = (IsShiftKeyDown() or IsAltKeyDown() or IsControlKeyDown())
  11. local jineng= "灼热烈焰,低沉咆哮,暗影烈焰,沉默,恢复,治疗结界,强效治疗结界,野性回复,恐吓尖啸,双生相协,女王之吻,治疗之环,卡兹洛加印记,地狱火,死亡凋零,暗影新星,睡眠术,低沉咆哮,暴风雪,火焰之雨,圣光术,恐惧术,生命吸取,恐惧,快速治疗,强效治疗术,治疗之触,愈合,地狱烈焰,飓风,滋养,次级治疗波,苦修,变形术,烈焰风暴"--------此为需要打断的技能
  12. local i = BeeStringFind(jineng,BeeUnitCastSpellName(a))
  13. local time , Castingtime= BeeUnitCastSpellTime(a)
  14. local t = "致盲,凿击,昏迷,变形术,闷棍,致盲,圣盾术,保护之手"-----此为判定目标身上BUFF停手
  15. local joylau = "寒冰之握,寒冰陷阱,邪恶毒气,烈焰波,低沉咆哮,上古绝望,恐慌,恐吓咆哮,蛛网喷射,蛛网爆炸,困惑,死亡缠绕,恐惧,心灵尖啸,昏迷,肾击,震荡射击,陷地,制裁之锤,深度冻结,突袭,暗影之怒,冲击波,胁迫,挤压,战争践踏,火焰冲撞,震荡波,震荡猛击,疲劳诅咒,冰冻陷阱,冰霜陷阱,冰霜新星,地缚术,断筋,蛛网,残废术,寒冰屏障,减速"---解控
  16. local c = "猛踢,假死,机械路霸,X-53型观光火箭,奥的灰烬,点心,进食,喝水"-----坐骑和自身有BUFF停手
  17. local f = UnitCreatureType(a)
  18. local e = BeeStringFind(f,"亡灵,恶魔,人型生物")
  19. local n = "多彩混乱"--宁神
  20. local j = "钓鱼,学习,乱射,暴风雪,炉石,潜行,偷窃,开启,打开,开锁,枯萎凋零,凛风冲击,寒冬号角"-----读条停手
  21. local h = BeeUnitCastSpellName(b)==j
  22. local g = UnitExists(a)==1 and not UnitIsDeadOrGhost(a) ------------单位存在且不是尸体

  23. ------------------------------------------------脚本正文-----------------------------------
  24. --运行前提
  25. if BeeStringFind(t,Tbl) or BeeStringFind(c,buff) or h then
  26.     return
  27. end

  28. --打断
  29. if i and Castingtime - time >1 and time >1 then
  30.     if BeeIsRun("/cast 脚踢",a) and BeeSpellCD("脚踢")==0 and IsSpellInRange("脚踢",a)==1 then
  31.         BeeRun("脚踢",a)
  32.         return
  33.     end
  34.     if BeeIsRun("/cast 致盲",a) and BeeSpellCD("致盲")==0 and IsSpellInRange("致盲",a)==1 and BeeSpellCD("脚踢")>0 then
  35.         BeeRun("致盲",a)
  36.         return
  37.     end
  38. end

  39. --潜行
  40. --if not BeeUnitAffectingCombat(b) and not BeeStringFind("潜行",buff) and BeeIsRun("/cast 潜行") and BeeSpellCD("潜行")==0 then BeeRun("潜行")return;end

  41. --解控
  42. if BeeStringFind(joylau,buff) then
  43.     if BeeIsRun("/cast 自利") and BeeSpellCD("自利")==0 then
  44.         BeeRun("自利")
  45.         return
  46.     end
  47.     if BeeIsRun("/cast 疾跑") and BeeSpellCD("疾跑")==0 and BeeSpellCD("自利")>1 then
  48.         BeeRun("疾跑")
  49.         return
  50.     end
  51. end

  52. --保命加血
  53. if BeeUnitAffectingCombat(b) then
  54.     if BeeUnitHealth(b,"%")<=50 and BeeIsRun("/cast 闪避") and BeeSpellCD("闪避")==0 then
  55.         BeeRun("闪避")
  56.         return
  57.     end
  58. end

  59. --爆发菊花茶
  60. if BeeUnitAffectingCombat(a) and IsSpellInRange("影袭")==1 and UnitHealthMax(a)>50000 and BeeUnitHealth(a,"%")<=90 then
  61.     if BeeIsRun("/cast 冲动") and BeeSpellCD("冲动")==0 then
  62.         BeeRun("冲动")
  63.     end
  64.     if BeeIsRun("/cast 冷血") and BeeStringFind("冲动",buff) and BeeSpellCD("冷血")==0 then
  65.         BeeRun("冷血")
  66.     end
  67.     if BeeIsRun("/cast 剑刃乱舞") and BeeStringFind("冲动",buff) and BeeSpellCD("剑刃乱舞")==0 then
  68.         BeeRun("剑刃乱舞")
  69.     end
  70.     if BeePlayerBuffTime("冲动")<3 and BeeUnitMana(b)<=20 and BeeIsRun("/use 菊花茶") and GetItemCooldown("菊花茶")==0 then
  71.         BeeRun("/use 菊花茶")
  72.     end
  73. end

  74. --Ctrl闷棍
  75. if g and not BeeUnitAffectingCombat(a) and BeeStringFind("潜行",buff) and IsControlKeyDown() and IsSpellInRange("闷棍")==1 and BeeIsRun("/cast 闷棍",a) and BeeUnitMana(b)>=65 and BeeSpellCD("闷棍")==0 and e then
  76.     BeeRun("闷棍",a)
  77.     return
  78. end

  79. --Shift刀扇
  80. if IsShiftKeyDown() and BeeUnitMana(b)>=50 and BeeIsRun("/cast 刀扇") then BeeRun("刀扇")return;end

  81. --Ctrl消失
  82. if IsControlKeyDown() and BeeSpellCD("潜行")==0 and BeeIsRun("/cast 潜行") then BeeRun("潜行")return;end

  83. --ALT缴械
  84. if g and BeeUnitAffectingCombat(a) and IsAltKeyDown() and IsSpellInRange("拆卸")==1 and BeeIsRun("/cast 拆卸",a) and BeeSpellCD("拆卸")==0 and BeeUnitMana(b)>=25 and e then
  85.     BeeRun("拆卸",a)
  86.     return
  87. end


  88. ---自动偷袭
  89. if g and BeeIsRun("/cast 偷袭",a) and BeeSpellCD("偷袭")==0 and BeeUnitCanAttack and IsSpellInRange("偷袭")==1 and BeeStringFind("潜行",buff) and BeeUnitMana(b)>=60 and not e then
  90.     BeeRun("/cast 偷袭\n/cast 背刺",a)
  91.     return
  92. end

  93. --偷窃
  94. if g and BeeIsRun("/cast 偷窃",a) and BeeSpellCD("偷窃")==0 and e and BeeUnitCanAttack and IsSpellInRange("偷窃")==1 and BeeStringFind("潜行",buff) and not BeeUnitAffectingCombat(a) then
  95.     BeeRun("偷窃")
  96.     BeeUnitCastSpellDelay("偷窃",3,a)
  97.     return
  98. end



  99. --起手
  100. if g and BeeUnitCanAttack(a) and IsSpellInRange("伏击")==1 and BeeIsRun("/cast 伏击",a) and BeeUnitMana(b)>=60 and BeeStringFind("潜行",buff) then
  101.     if UnitHealthMax(a)<50000 then
  102.         BeeRun("/cast 伏击\n/cast 背刺",a) ---小怪
  103.     end
  104.     if UnitHealthMax(a)>50000 then
  105.         if BeeIsRun("/cast 锁喉",a) and BeeUnitMana(b)>=50 and BeeSpellCD("锁喉")==0 then
  106.             BeeRun("/cast 锁喉\n/cast 背刺",a)
  107.             return
  108.         end
  109.     end
  110. end

  111. --还击
  112. if g and IsSpellInRange("还击")==1 and BeeIsRun("/cast 还击",a) and BeeSpellCD("还击")==0 and BeeUnitMana(b)>=10 and not BeeStringFind("还击",Tbl) then
  113.     BeeRun("还击",a)
  114. end

  115. --输出循环
  116. if g and BeeUnitAffectingCombat(a) and IsSpellInRange("影袭")==1 then
  117.     -----------小怪
  118.     if UnitHealthMax(a)<=50000 then
  119.         if BeePlayerBuffTime("切割")<=3 and BeeIsRun("/cast 切割",a) and BeeGetComboPoints()==2 and BeeUnitMana(b)>=25 and BeeSpellCD("切割")==0 then
  120.             BeeRun("切割",a)
  121.         end
  122.         if BeeIsRun("/cast 影袭",a) and BeeGetComboPoints()<3 and BeeUnitMana(b)>=45 and BeeSpellCD("影袭")==0 then
  123.             BeeRun("影袭",a)
  124.             BeeUnitCastSpellDelay("影袭",1,a)
  125.         end
  126.         if BeeGetComboPoints()>=3 and BeeStringFind("切割",buff) and BeeUnitMana(b)>=35 and BeeIsRun("/cast 刺骨") and BeeSpellCD("刺骨")==0 then
  127.             BeeRun("刺骨",a)
  128.         end
  129.     end
  130.     --------BOSS
  131.     if UnitHealthMax(a)>=50000 then
  132.         if BeePlayerBuffTime("切割")<=3 and BeeIsRun("/cast 切割",a) and BeeGetComboPoints()==5 and BeeUnitMana(b)>=25 and BeeSpellCD("切割")==0 then
  133.             BeeRun("切割",a)
  134.         end
  135.         if BeeGetComboPoints()<5 and BeeUnitMana(b)>=45 and BeeIsRun("/cast 影袭",a) and BeeSpellCD("影袭")==0 then
  136.             BeeRun("影袭",a)
  137.             BeeUnitCastSpellDelay("影袭",1,a)
  138.         end
  139.         if BeeTargetDeBuffTime("破甲")<=3 and BeePlayerBuffTime("切割")>3 and BeeGetComboPoints()==5 and BeeUnitMana(b)>=15 and BeeIsRun("/cast 破甲",a) and BeeSpellCD("破甲")==0 then
  140.             BeeRun("破甲",a)
  141.         end
  142.         if BeeTargetDeBuffTime("破甲")>=3 and BeePlayerBuffTime("切割")>3 and BeeTargetDeBuffTime("割裂")<=3 and BeeGetComboPoints()==5 and BeeUnitMana(b)>=25 and BeeIsRun("/cast 割裂",a) and BeeSpellCD("割裂")==0 then
  143.             BeeRun("割裂",a)
  144.         end
  145.         if BeeTargetDeBuffTime("破甲")>=3 and BeePlayerBuffTime("切割")>3 and BeeTargetDeBuffTime("割裂")>=3 and BeeGetComboPoints()==5 and BeeUnitMana(b)>=35 and BeeIsRun("/cast 刺骨",a) and BeeSpellCD("刺骨")==0 then
  146.             BeeRun("刺骨",a)
  147.         end
  148.     end
  149. end
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|138wow魔兽私服论坛

GMT+8, 2024-11-24 23:39 , Processed in 0.045319 second(s), 23 queries .

Powered by Discuz! X3.5 Designed by 138wow.com © 魔兽世界私服,魔兽世界私服论坛

© 2001-2024 Discuz! Team.

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