Advertisement
Guest User

Untitled

a guest
Nov 25th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 29.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?><WARRIOR><Ability><Name>--InitializePvE--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if PQR_RotationStarted == true then
  2.   PQR_RotationStarted = false
  3.   if PQR_LoadLua ~= nil
  4.   then
  5.         if PQR_LoadLua(&amp;quot;PQR_failroadPvEdata.lua&amp;quot;) == false
  6.         then
  7.                 PQR_WriteToChat(&amp;quot;Put PQR_failroadPvEdata.lua in the data folder.&amp;quot;, &amp;quot;Error&amp;quot;)
  8.                 PQR_StopRotation()
  9.                 return true
  10.         end
  11.   end
  12. end
  13.  
  14. --Options--
  15. useDR           = true  --use dragon roar automatically
  16. autoStance      = false  --auto force stances
  17. gagOrder        = false --use heroic throw to interrupt
  18. autoBloodBath   = true  --automatic use bloodbath
  19. autoReck        = false  --automatic use Recklessness
  20. chargeInterrupt = true  --Use charge to interrupt if not popping offensive cooldowns
  21. intPctDelay     = 10    --Percentage of cast to let happen until interrupt.
  22.  
  23. --EndOptions--
  24.  
  25. ------------
  26. --Keybinds--
  27. ------------
  28. mockingBannerKey    = IsRightShiftKeyDown()
  29. heroicLeapKey       = IsLeftAltKeyDown()
  30. demoBannerKey       = IsLeftShiftKeyDown()
  31. --                  = IsRightShiftKeyDown()
  32. --                  = IsRightControlKeyDown()
  33. pauseKey            = IsRightAltKeyDown()
  34. --                  = IsMouseButtonDown(3)
  35. shockWaveKey        = IsMouseButtonDown(4)
  36. --                  = IsMouseButtonDown(5)
  37. ---------------
  38. --EndKeybinds--
  39. ---------------
  40.  
  41. --FixLag
  42. local ping = tonumber((select(3,GetNetStats()) + select(4,GetNetStats())) / 2000) + .025
  43.  
  44. if ping &amp;lt; .05
  45. then
  46. ping = .05
  47. elseif ping &amp;gt; .3
  48. then
  49. ping = .3
  50. end
  51. PQR_SpellAvailableTime = ping
  52.  
  53.  
  54. if autoStance == true
  55. then
  56.     --Arms
  57.     if GetSpecialization() == 1
  58.     then
  59.         if GetShapeshiftForm() ~= 1
  60.         then
  61.             CastShapeshiftForm(1)
  62.         end
  63.    
  64.         if IsEquippedItemType(&amp;quot;shields&amp;quot;) == true
  65.         then
  66.             if UseEquipmentSet(&amp;quot;2HSet&amp;quot;) ~= nil
  67.             then
  68.                 return true
  69.             end
  70.         end
  71.     end
  72.    
  73.     --Fury
  74.     if GetSpecialization() == 2
  75.     and GetShapeshiftForm() ~= 1
  76.         then
  77.         CastShapeshiftForm(1)
  78.     end
  79.    
  80.     --Prot
  81.     if GetSpecialization() == 3
  82.     and GetShapeshiftForm() ~= 2
  83.         then
  84.         CastShapeshiftForm(2)
  85.     end
  86.  
  87. end
  88.  
  89. --PauseKey
  90. if pauseKey ~= nil
  91. or UnitIsDeadOrGhost(&amp;quot;player&amp;quot;) == 1
  92. then return true end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>
  93.  
  94.  
  95. --Interrupts--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>local castingTarget = nil
  96.  
  97. for i=1, #custTars do
  98.     if ( select(9,UnitCastingInfo(custTars[i]))==false
  99.         or select(8,UnitChannelInfo(custTars[i]))==false )
  100.     then
  101.             castingTarget = custTars[i]
  102.     end
  103. end
  104.  
  105. if castingTarget ~= nil
  106. then
  107.     local cName, _, _, _, cStart,cEnd = UnitCastingInfo(castingTarget)
  108.     local chName, _, _, _, chStart,chEnd = UnitChannelInfo(castingTarget)
  109.     if chName ~= nil then
  110.         cName = chName
  111.         cStart = chStart
  112.         cEnd = chEnd
  113.     end
  114.     local timeSinceStart = (GetTime() * 1000 - cStart) / 1000
  115.     local timeLeft = ((GetTime() * 1000 - cEnd) * -1) / 1000
  116.     local castTime = cEnd - cStart
  117.     local currentPercent = timeSinceStart / castTime * 100000
  118.  
  119.    
  120. --Pum--
  121.     if cdRemains(6552) == 0
  122.         and rangeCheck(6552,castingTarget) == true
  123.         and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
  124.         and currentPercent &amp;gt;= intPctDelay
  125.             then
  126.             _castSpell(6552,castingTarget)
  127.             PQR_DelayRotation(.5)
  128.         end
  129. --DS--
  130.     if (cdRemains(6552) &amp;gt; 0 or rangeCheck(6552,castingTarget) == nil)
  131.     and cdRemains(102060) == 0
  132.     and CheckInteractDistance(castingTarget,3) ~= nil
  133.     and UnitIsEnemy(&amp;quot;player&amp;quot;,castingTarget) ~= nil
  134.     and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
  135.     and currentPercent &amp;gt; intPctDelay
  136.             then
  137.             _castSpell(102060)
  138.             PQR_DelayRotation(.5)
  139.         end
  140.        
  141. --ChargeInterrupt--
  142.     if chargeInterrupt == true
  143.     and (cdRemains(6552) &amp;gt; 0 or rangeCheck(6552,castingTarget) == nil)
  144.     and (cdRemains(102060) &amp;gt; 0 or CheckInteractDistance(castingTarget,3) == nil)
  145.     and cdRemains(100) == 0
  146.     and rangeCheck(100,castingTarget) == true
  147.     and poppedCDs(&amp;quot;player&amp;quot;) == nil
  148.     and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
  149.     and currentPercent &amp;gt; intPctDelay
  150.         then
  151.             _castSpell(100,castingTarget)
  152.             PQR_DelayRotation(1) --Delay while charging
  153.         end
  154.            
  155.        
  156. --HT--
  157.     if gagOrder == true
  158.     and (cdRemains(6552) &amp;gt; 0 or rangeCheck(6552,castingTarget) == nil)
  159.     and (cdRemains(102060) &amp;gt; 0 or CheckInteractDistance(castingTarget,3) == nil)
  160.     and (cdRemains(100) &amp;gt; 0 or rangeCheck(100,castingTarget) == nil or poppedCDs(&amp;quot;player&amp;quot;) == true or chargeInterrupt == false)
  161.     and cdRemains(57755) == 0
  162.     and rangeCheck(57755,castingTarget) == true
  163.     and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
  164.     and currentPercent &amp;gt; intPctDelay
  165.         then
  166.             _castSpell(57755,castingTarget)
  167.     end
  168.    
  169.    
  170.  
  171.    
  172. --SB--
  173.     if (cdRemains(6552) &amp;gt; 0 or rangeCheck(6552,castingTarget) == nil)
  174.     and (cdRemains(102060) &amp;gt; 0 or CheckInteractDistance(castingTarget,3) == nil)
  175.     and (cdRemains(100) &amp;gt; 0 or rangeCheck(100,castingTarget) == nil or poppedCDs(&amp;quot;player&amp;quot;) == true)
  176.     and (cdRemains(57755) &amp;gt; 0)
  177.     and IsPlayerSpell(107570) == true
  178.     and cdRemains(107570) == 0
  179.     and rangeCheck(107570,castingTarget) == true
  180.     and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
  181.     and currentPercent &amp;gt; intPctDelay
  182.         then
  183.             sb  = true
  184.             _castSpell(107570,castingTarget)
  185.     end
  186. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Fury_2-3Rotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--DemoBanner Throw--
  187. if cdRemains(114203) == 0
  188. and demoBannerKey ~= nil
  189. and GetCurrentKeyBoardFocus() == nil
  190. then
  191.     CastSpellByName(GetSpellInfo(114203))
  192.         if SpellIsTargeting() ~= nil
  193.         then
  194.             CameraOrSelectOrMoveStart()
  195.             CameraOrSelectOrMoveStop()
  196.         end
  197.         _castSpell(114203)
  198. end
  199.  
  200.  
  201. --Heroic Leap--
  202. if cdRemains(6544) == 0
  203. and heroicLeapKey ~= nil
  204. and GetCurrentKeyBoardFocus() == nil
  205. then
  206.     CastSpellByName(GetSpellInfo(6544))
  207.     if SpellIsTargeting() ~= nil
  208.     then
  209.         CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop()
  210.         end
  211.         _castSpell(6544)
  212. end
  213.  
  214.  
  215. if inMelee() == true
  216. then
  217.    
  218.     --autoRecklessness--
  219.     if autoReck == true
  220.     and ( ( UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)
  221.         and select(7,UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)) - GetTime() &amp;gt;= 5)
  222.     or cdRemains(86346) &amp;lt;= 4
  223.     or cdRemains(12292) &amp;lt;= 3 )
  224.         then
  225.             _castSpell(1719)
  226.         end
  227.        
  228.      
  229.     --BloodBath--
  230.     if autoBloodBath == true
  231.     and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)
  232.     and select(7,UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)) - GetTime() &amp;gt;= 5
  233.     and ( UnitBuffID(&amp;quot;player&amp;quot;,1719) or cdRemains(1719) &amp;gt; 60 or autoReck == false )
  234.     then   
  235.     _castSpell(12292)
  236.     end
  237.    
  238.     --BerserkRage--
  239.     if UnitBuffID(&amp;quot;player&amp;quot;,12880) == nil
  240.     and UnitBuffID(&amp;quot;player&amp;quot;,131116) == nil
  241.     then
  242.     _castSpell(18499)
  243.     end
  244.    
  245.     --Dcalm--
  246.     if ( IsPlayerSpell(12292) == false
  247.         and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40 )
  248.     or ( IsPlayerSpell(12292) == true
  249.         and UnitBuffID(&amp;quot;player&amp;quot;,12292) ~= nil
  250.         and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40 )
  251.     then
  252.     _castSpell(85730)
  253.     end
  254.    
  255.     --HeroicStrike--
  256.     if (
  257.          getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  258.          and ( UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  259.                and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40 )
  260.          or ( UnitBuffID(&amp;quot;player&amp;quot;,85730) ~= nil
  261.                and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 30 )
  262.         )
  263.      or UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 110
  264.         then
  265.         _castSpell(845)
  266.         end
  267.     --EndHeroicStrikes--
  268.    
  269.     --BT--
  270.     if ( getHp(&amp;quot;target&amp;quot;) &amp;lt; 20
  271.        and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  272.        and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 30
  273.        ) == false
  274.         then
  275.         _castSpell(23881)
  276.     end
  277.    
  278.     --WS--
  279.     if UnitBuffID(&amp;quot;player&amp;quot;,46916) ~= nil
  280.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  281.     and ( cdRemains(23881) &amp;gt; 0 and cdRemains(23881) &amp;lt;= 1 )
  282.     then
  283.     _castSpell(100130)
  284.     end
  285.    
  286.     --Wait--
  287.     if ( getHp(&amp;quot;target&amp;quot;) &amp;lt; 20
  288.           and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  289.           and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 30
  290.            ) == false
  291.     and ( cdRemains(23881) &amp;gt; 0 and cdRemains(23881) &amp;lt;= 1 )
  292.     then
  293.         return true
  294.     end
  295.  
  296.     --CS--
  297.     _castSpell(86346)
  298.    
  299.    
  300.     --DrHighPrio--
  301.     if useDR == true
  302.     and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) == nil
  303.     and UnitBuffID(&amp;quot;player&amp;quot;,12292) ~= nil
  304.     then
  305.         _castSpell(118000)
  306.     end
  307.    
  308.     --Execute--
  309.     _castSpell(5308)
  310.    
  311.    
  312.     --RB--
  313.     if ( UnitBuffID(&amp;quot;player&amp;quot;,131116) ~= nil and select(4,UnitBuffID(&amp;quot;player&amp;quot;,131116)) == 2 )
  314.     or ( UnitBuffID(&amp;quot;player&amp;quot;,131116) ~= nil
  315.          and ( getHp(&amp;quot;target&amp;quot;) &amp;lt;= 20
  316.                 or UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  317.                 or UnitBuffID(&amp;quot;player&amp;quot;,12292) ~= nil
  318.                 or UnitBuffID(&amp;quot;player&amp;quot;,1719) ~= nil
  319.                 or cdRemains(86346) &amp;gt;= 6
  320.                 or ( cdRemains(23881) &amp;gt;= 1
  321.                       and select(7,UnitBuffID(&amp;quot;player&amp;quot;,131116)) - GetTime() &amp;lt;= 6 )))
  322.     then
  323.     _castSpell(85288)
  324.     end
  325.  
  326.  
  327.     --WS--
  328.     if UnitBuffID(&amp;quot;player&amp;quot;,46916) ~= nil
  329.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  330.     then
  331.     _castSpell(100130)
  332.     end
  333.    
  334.    
  335.     --SW--
  336.     if shockWaveKey == 1
  337.     then
  338.     _castSpell(46968)
  339.     end
  340.    
  341.     --DR--
  342.     if useDR == true
  343.     then
  344.     _castSpell(118000)
  345.     end
  346.    
  347.     --HT--
  348.     if gagOrder == false
  349.     then
  350.     _castSpell(57755)
  351.     end
  352.    
  353.     --BS--
  354.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  355.     and UnitDebuffID(&amp;quot;target&amp;quot;,86346) == nil
  356.     then
  357.         if hasApBuff() == nil
  358.         then
  359.         _castSpell(6673)
  360.         elseif hasApBuff() ~= nil
  361.         then
  362.             if select(2,GetSpellCooldown(469)) == 0
  363.             then
  364.                 CastSpellByName(GetSpellInfo(469))
  365.             end
  366.         end
  367.     end
  368.    
  369.     --WS--
  370.     if UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  371.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  372.     then
  373.     _castSpell(100130)
  374.     end
  375.    
  376.     --IV--
  377.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  378.     then
  379.     _castSpell(103840)
  380.     end
  381.    
  382.     --WS--
  383.     if cdRemains(86346) &amp;gt;= 1
  384.     and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 80
  385.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  386.     then
  387.     _castSpell(100130)
  388.     end
  389.    
  390.     --BS--
  391.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  392.     then
  393.         if hasApBuff() == nil
  394.         then
  395.         _castSpell(6673)
  396.         elseif hasApBuff() ~= nil
  397.         then
  398.             if select(2,GetSpellCooldown(469)) == 0
  399.             then
  400.                 CastSpellByName(GetSpellInfo(469))
  401.             end
  402.         end
  403.     end
  404. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Fury_Aoe(4+)Rotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if cdRemains(114203) == 0
  405. and demoBannerKey ~= nil
  406. and GetCurrentKeyBoardFocus() == nil
  407. then
  408.     CastSpellByName(GetSpellInfo(114203))
  409.         if SpellIsTargeting() ~= nil
  410.         then
  411.             CameraOrSelectOrMoveStart()
  412.             CameraOrSelectOrMoveStop()
  413.         end
  414.         _castSpell(114203)
  415. end
  416.  
  417.  
  418. if cdRemains(6544) == 0
  419. and heroicLeapKey ~= nil
  420. and GetCurrentKeyBoardFocus() == nil
  421. then
  422.     CastSpellByName(GetSpellInfo(6544))
  423.         if SpellIsTargeting() ~= nil
  424.         then
  425.             CameraOrSelectOrMoveStart()
  426.             CameraOrSelectOrMoveStop()
  427.         end
  428.         _castSpell(6544)
  429. end
  430.  
  431.  
  432. if inMelee() == true
  433. then
  434.  
  435.     --BloodBath--
  436.     if autoBloodBath == true
  437.     then
  438.     _castSpell(12292)
  439.     end
  440.    
  441.    
  442.     if UnitBuffID(&amp;quot;player&amp;quot;,12880) == nil
  443.     then
  444.     _castSpell(18499)
  445.     end
  446.    
  447.     if shockWaveKey == 1
  448.     then
  449.     _castSpell(46968)
  450.     end
  451.    
  452.    
  453.     if useDR == true
  454.     then
  455.     _castSpell(118000)
  456.     end
  457.    
  458.     if gagOrder == false
  459.     and inMelee() == true
  460.     then
  461.     _castSpell(57755)
  462.     end
  463.  
  464.    
  465.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  466.     and UnitPower(&amp;quot;player&amp;quot;) &amp;lt;= 80
  467.         then _castSpell(23881)
  468.     end
  469.  
  470.     _castSpell(86346)
  471.    
  472.     if UnitBuffID(&amp;quot;player&amp;quot;,85739) ~= nil
  473.     and select(4, UnitBuffID(&amp;quot;player&amp;quot;,85739)) == 3
  474.     then
  475.     _castSpell(85288)
  476.     end
  477.    
  478.     _castSpell(1680)
  479.    
  480.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  481.     then
  482.         if hasApBuff() == nil
  483.         then
  484.         _castSpell(6673)
  485.         elseif hasApBuff() ~= nil
  486.         then
  487.             if select(2,GetSpellCooldown(469)) == 0
  488.             then
  489.                 CastSpellByName(GetSpellInfo(469))
  490.             end
  491.         end
  492.     end
  493. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Arms_BasicRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Vars
  494. local tfb, _, _, tfbCount, _, _, tfbExp = UnitBuffID(&amp;quot;player&amp;quot;, 56638)
  495. local cs,_,_,_,_,_,csExp = UnitDebuffID(&amp;quot;target&amp;quot;, 86346, &amp;quot;player&amp;quot;)
  496.  
  497.  
  498. if cdRemains(114203) == 0
  499. and demoBannerKey ~= nil
  500. and GetCurrentKeyBoardFocus() == nil
  501. then
  502.     CastSpellByName(GetSpellInfo(114203))
  503.         if SpellIsTargeting() ~= nil
  504.         then
  505.             CameraOrSelectOrMoveStart()
  506.             CameraOrSelectOrMoveStop()
  507.         end
  508.         _castSpell(114203)
  509. end
  510.  
  511.  
  512. if cdRemains(6544) == 0
  513. and heroicLeapKey ~= nil
  514. and GetCurrentKeyBoardFocus() == nil
  515. then
  516.     CastSpellByName(GetSpellInfo(6544))
  517.     if SpellIsTargeting() ~= nil
  518.     then
  519.         CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop()
  520.         end
  521.         _castSpell(6544)
  522. end
  523.  
  524.  
  525. if inMelee() == true
  526. then
  527.    
  528.     if UnitBuffID(&amp;quot;player&amp;quot;,12880) == nil
  529.     then
  530.         _castSpell(18499)
  531.     end
  532.  
  533.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 80
  534.     and IsUsableSpell(34428) ~= nil
  535.     then
  536.         _castSpell(34428)
  537.     end
  538.  
  539.     if UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40
  540.     then
  541.         _castSpell(85730)
  542.     end
  543.    
  544.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  545.     and UnitDebuffID(&amp;quot;target&amp;quot;, 86346, &amp;quot;player&amp;quot;) ~= nil
  546.         then
  547.             if tfb
  548.                 and ( tfbExp - GetTime() &amp;lt;= 2 )
  549.                 or ( tfbCount == 5 and IsUsableSpell(7384) ~= nil )
  550.                 or (( cs ~= nil and csExp - GetTime() &amp;lt;= 2 ) and cdRemains(86346) &amp;gt; 0)
  551.                 then _castSpell(78)
  552.             elseif UnitBuffID(&amp;quot;player&amp;quot;,85730) ~= nil
  553.             or UnitPower(&amp;quot;player&amp;quot;) &amp;gt; 110
  554.             then CastSpellByName(GetSpellInfo(78))
  555.          end
  556.     end
  557.  
  558.     _castSpell(12294)
  559.  
  560.     if ( cs == nil or csExp - GetTime() &amp;lt;= 1.5 )
  561.     then
  562.     _castSpell(86346)
  563.     end
  564.  
  565.     if getHp(&amp;quot;target&amp;quot;) &amp;lt; 20
  566.     then
  567.     _castSpell(5308)
  568.     end
  569.  
  570.  
  571.     if IsUsableSpell(7384) ~= nil
  572.     then
  573.         _castSpell(7384)
  574.     end
  575.    
  576.     if shockWaveKey == 1
  577.     then
  578.     _castSpell(46968)
  579.     end
  580.    
  581.     if useDR == true
  582.     then
  583.     _castSpell(118000)
  584.     end
  585.  
  586.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  587.     and ( UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 70 or cs ~= nil )
  588.     then
  589.         _castSpell(1464)
  590.     end
  591. end
  592.    
  593.  
  594. if inCombat()
  595.     and gagOrder == false
  596.     and inMelee() == true
  597.     then
  598.     _castSpell(57755)
  599.     end
  600.  
  601. if inMelee() == true
  602. then
  603.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  604.     and cs == nil
  605.     then
  606.         if hasApBuff() == nil
  607.         then
  608.         _castSpell(6673)
  609.         elseif hasApBuff() ~= nil
  610.         then
  611.         _castSpell(469)
  612.         end
  613.     end
  614.  
  615.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  616.     then
  617.         _castSpell(1464)
  618.     end
  619.  
  620.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  621.     then
  622.     _castSpell(103840)
  623.     end
  624.  
  625.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  626.     then
  627.         if hasApBuff() == nil
  628.         then
  629.         _castSpell(6673)
  630.         elseif hasApBuff() ~= nil
  631.         then
  632.         _castSpell(469)
  633.         end
  634.     end
  635. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Arms_AoeRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Vars
  636. local tfb, _, _, tfbCount, _, _, tfbExp = UnitBuffID(&amp;quot;player&amp;quot;, 56638)
  637. local cs,_,_,_,_,_,csExp = UnitDebuffID(&amp;quot;target&amp;quot;, 86346, &amp;quot;player&amp;quot;)
  638.  
  639.  
  640. if cdRemains(114203) == 0
  641. and demoBannerKey ~= nil
  642. and GetCurrentKeyBoardFocus() == nil
  643. then
  644.     CastSpellByName(GetSpellInfo(114203))
  645.         if SpellIsTargeting() ~= nil
  646.         then
  647.             CameraOrSelectOrMoveStart()
  648.             CameraOrSelectOrMoveStop()
  649.         end
  650.         _castSpell(114203)
  651. end
  652.  
  653. if cdRemains(6544) == 0
  654. and heroicLeapKey ~= nil
  655. and GetCurrentKeyBoardFocus() == nil
  656. then
  657.     CastSpellByName(GetSpellInfo(6544))
  658.     if SpellIsTargeting() ~= nil
  659.     then
  660.         CameraOrSelectOrMoveStart()
  661.         CameraOrSelectOrMoveStop()
  662.         end
  663.         _castSpell(6544)
  664. end
  665.  
  666.  
  667.  
  668. if inMelee() == true
  669. then
  670.  
  671.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 80
  672.     and IsUsableSpell(34428) ~= nil
  673.     then
  674.         _castSpell(34428,&amp;quot;target&amp;quot;)
  675.     end
  676.  
  677.     if UnitBuffID(&amp;quot;player&amp;quot;,12880) == nil
  678.     then
  679.         _castSpell(18499)
  680.     end
  681.  
  682.     if UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40
  683.     then
  684.         _castSpell(85730)
  685.     end
  686.    
  687.     if shockWaveKey == 1
  688.     then
  689.     _castSpell(46968)
  690.     end
  691.    
  692.    
  693.     if useDR == true
  694.     then
  695.     _castSpell(118000)
  696.     end
  697.    
  698.     if gagOrder == false
  699.     and inMelee()
  700.     then
  701.     _castSpell(57755)
  702.     end
  703.    
  704.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  705.     and cs ~= nil
  706.     then
  707.         if tfb
  708.             and ( tfbExp - GetTime() &amp;lt;= 2 )
  709.             or ( tfbCount == 5 and IsUsableSpell(7384) ~= nil )
  710.             or (( cs ~= nil and csExp - GetTime() &amp;lt;= 2 ) and cdRemains(86346) &amp;gt; 0)
  711.             then _castSpell(78,&amp;quot;target&amp;quot;)
  712.         elseif UnitBuffID(&amp;quot;player&amp;quot;,85730) ~= nil
  713.         or UnitPower(&amp;quot;player&amp;quot;) &amp;gt; 110
  714.         then
  715.             if UnitBuffID(&amp;quot;player&amp;quot;,12328) ~= nil
  716.                 then
  717.                 CastSpellByName(GetSpellInfo(78))
  718.             elseif UnitBuffID(&amp;quot;player&amp;quot;,12328) == nil
  719.                 then
  720.                 CastSpellByName(GetSpellInfo(845))
  721.             end
  722.         end
  723.     end
  724. end
  725.  
  726. if inCombat() == true
  727. and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 60
  728. then _castSpell(12328)
  729. end
  730.  
  731. if inMelee() == true
  732. then
  733.     _castSpell(12294,&amp;quot;target&amp;quot;)
  734.  
  735.     if ( cs == nil or csExp - GetTime() &amp;lt;= 1.5 )
  736.     then
  737.     _castSpell(86346)
  738.     end
  739.    
  740.     _castSpell(6343)
  741.    
  742.     if IsUsableSpell(7384) ~= nil
  743.     then
  744.     _castSpell(7384,&amp;quot;target&amp;quot;)
  745.     end
  746.    
  747.     _castSpell(1680)
  748.    
  749.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  750.     then
  751.         if hasApBuff() == nil
  752.         then
  753.         _castSpell(6673)
  754.         elseif hasApBuff() ~= nil
  755.         then
  756.         _castSpell(469)
  757.         end
  758.     end
  759. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Fury_BasicRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--DemoBanner Throw--
  760. if cdRemains(114203) == 0
  761. and demoBannerKey ~= nil
  762. and GetCurrentKeyBoardFocus() == nil
  763. then
  764.     CastSpellByName(GetSpellInfo(114203))
  765.         if SpellIsTargeting() ~= nil
  766.         then
  767.             CameraOrSelectOrMoveStart()
  768.             CameraOrSelectOrMoveStop()
  769.         end
  770.         _castSpell(114203)
  771. end
  772.  
  773.  
  774. --Heroic Leap--
  775. if cdRemains(6544) == 0
  776. and heroicLeapKey ~= nil
  777. and GetCurrentKeyBoardFocus() == nil
  778. then
  779.     CastSpellByName(GetSpellInfo(6544))
  780.     if SpellIsTargeting() ~= nil
  781.     then
  782.         CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop()
  783.         end
  784.         _castSpell(6544)
  785. end
  786.  
  787.  
  788. if inMelee() == true
  789. then
  790.    
  791.     --autoRecklessness--
  792.     if autoReck == true
  793.     and ( ( UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)
  794.         and select(7,UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)) - GetTime() &amp;gt;= 5)
  795.     or cdRemains(86346) &amp;lt;= 4
  796.     or cdRemains(12292) &amp;lt;= 3 )
  797.         then
  798.             _castSpell(1719)
  799.         end
  800.        
  801.      
  802.     --BloodBath--
  803.     if autoBloodBath == true
  804.     and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)
  805.     and select(7,UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;)) - GetTime() &amp;gt;= 5
  806.     and ( UnitBuffID(&amp;quot;player&amp;quot;,1719) or cdRemains(1719) &amp;gt; 60 or autoReck == false )
  807.     then   
  808.     _castSpell(12292)
  809.     end
  810.    
  811.     --BerserkRage--
  812.     if UnitBuffID(&amp;quot;player&amp;quot;,12880) == nil
  813.     and UnitBuffID(&amp;quot;player&amp;quot;,131116) == nil
  814.     then
  815.     _castSpell(18499)
  816.     end
  817.    
  818.     --Dcalm--
  819.     if ( IsPlayerSpell(12292) == false
  820.         and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40 )
  821.     or ( IsPlayerSpell(12292) == true
  822.         and UnitBuffID(&amp;quot;player&amp;quot;,12292) ~= nil
  823.         and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40 )
  824.     then
  825.     _castSpell(85730)
  826.     end
  827.    
  828.     --HeroicStrike--
  829.     if (
  830.          getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  831.          and ( UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  832.                and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40 )
  833.          or ( UnitBuffID(&amp;quot;player&amp;quot;,85730) ~= nil
  834.                and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 30 )
  835.         )
  836.      or UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 110
  837.         then
  838.         _castSpell(78)
  839.         end
  840.     --EndHeroicStrikes--
  841.    
  842.     --BT--
  843.     if ( getHp(&amp;quot;target&amp;quot;) &amp;lt; 20
  844.        and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  845.        and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 30
  846.        ) == false
  847.         then
  848.         _castSpell(23881)
  849.     end
  850.    
  851.     --WS--
  852.     if UnitBuffID(&amp;quot;player&amp;quot;,46916) ~= nil
  853.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  854.     and ( cdRemains(23881) &amp;gt; 0 and cdRemains(23881) &amp;lt;= 1 )
  855.     then
  856.     _castSpell(100130)
  857.     end
  858.    
  859.     --Wait--
  860.     if ( getHp(&amp;quot;target&amp;quot;) &amp;lt; 20
  861.           and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  862.           and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 30
  863.            ) == false
  864.     and ( cdRemains(23881) &amp;gt; 0 and cdRemains(23881) &amp;lt;= 1 )
  865.     then
  866.         return true
  867.     end
  868.  
  869.     --CS--
  870.     _castSpell(86346)
  871.    
  872.    
  873.     --DrHighPrio--
  874.     if useDR == true
  875.     and UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) == nil
  876.     and UnitBuffID(&amp;quot;player&amp;quot;,12292) ~= nil
  877.     then
  878.         _castSpell(118000)
  879.     end
  880.    
  881.     --Execute--
  882.     _castSpell(5308)
  883.    
  884.    
  885.     --RB--
  886.     if ( UnitBuffID(&amp;quot;player&amp;quot;,131116) ~= nil and select(4,UnitBuffID(&amp;quot;player&amp;quot;,131116)) == 2 )
  887.     or ( UnitBuffID(&amp;quot;player&amp;quot;,131116) ~= nil
  888.          and ( getHp(&amp;quot;target&amp;quot;) &amp;lt;= 20
  889.                 or UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  890.                 or UnitBuffID(&amp;quot;player&amp;quot;,12292) ~= nil
  891.                 or UnitBuffID(&amp;quot;player&amp;quot;,1719) ~= nil
  892.                 or cdRemains(86346) &amp;gt;= 6
  893.                 or ( cdRemains(23881) &amp;gt;= 1
  894.                       and select(7,UnitBuffID(&amp;quot;player&amp;quot;,131116)) - GetTime() &amp;lt;= 6 )))
  895.     then
  896.     _castSpell(85288)
  897.     end
  898.  
  899.  
  900.     --WS--
  901.     if UnitBuffID(&amp;quot;player&amp;quot;,46916) ~= nil
  902.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  903.     then
  904.     _castSpell(100130)
  905.     end
  906.    
  907.    
  908.     --SW--
  909.     if shockWaveKey == 1
  910.     then
  911.     _castSpell(46968)
  912.     end
  913.    
  914.     --DR--
  915.     if useDR == true
  916.     then
  917.     _castSpell(118000)
  918.     end
  919.    
  920.     --HT--
  921.     if gagOrder == false
  922.     then
  923.     _castSpell(57755)
  924.     end
  925.    
  926.     --BS--
  927.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  928.     and UnitDebuffID(&amp;quot;target&amp;quot;,86346) == nil
  929.     then
  930.         if hasApBuff() == nil
  931.         then
  932.         _castSpell(6673)
  933.         elseif hasApBuff() ~= nil
  934.         then
  935.             if select(2,GetSpellCooldown(469)) == 0
  936.             then
  937.                 CastSpellByName(GetSpellInfo(469))
  938.             end
  939.         end
  940.     end
  941.    
  942.     --WS--
  943.     if UnitDebuffID(&amp;quot;target&amp;quot;,86346,&amp;quot;player&amp;quot;) ~= nil
  944.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  945.     then
  946.     _castSpell(100130)
  947.     end
  948.    
  949.     --IV--
  950.     if getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  951.     then
  952.     _castSpell(103840)
  953.     end
  954.    
  955.     --WS--
  956.     if cdRemains(86346) &amp;gt;= 1
  957.     and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 80
  958.     and getHp(&amp;quot;target&amp;quot;) &amp;gt;= 20
  959.     then
  960.     _castSpell(100130)
  961.     end
  962.    
  963.     --BS--
  964.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  965.     then
  966.         if hasApBuff() == nil
  967.         then
  968.         _castSpell(6673)
  969.         elseif hasApBuff() ~= nil
  970.         then
  971.             if select(2,GetSpellCooldown(469)) == 0
  972.             then
  973.                 CastSpellByName(GetSpellInfo(469))
  974.             end
  975.         end
  976.     end
  977. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Prot_BasicRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Defensives--
  978. if inCombat()
  979. then
  980.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 35
  981.     then
  982.     _castSpell(871)
  983.     end
  984.    
  985.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 95
  986.     and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 60
  987.     then
  988.         _castSpell(112048)
  989.     end
  990.    
  991.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 25
  992.     then
  993.     _castSpell(97462)
  994.     end
  995.    
  996.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 15
  997.     then
  998.     _castSpell(12975)
  999.     end
  1000. end
  1001.  
  1002. if inMelee()
  1003. then
  1004.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 50
  1005.     then _castSpell(1160)
  1006.     end
  1007.    
  1008.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 80
  1009.     and IsUsableSpell(34428)
  1010.     then
  1011.     _castSpell(34428)
  1012.     end
  1013. end
  1014.  
  1015. if select(2,GetSpellCooldown(114203)) == 0
  1016. and demoBannerKey == 1
  1017. and GetCurrentKeyBoardFocus() == nil
  1018. then
  1019.     CastSpellByName(GetSpellInfo(114203))
  1020.         if SpellIsTargeting() ~= nil
  1021.         then
  1022.             CameraOrSelectOrMoveStart()
  1023.             CameraOrSelectOrMoveStop()
  1024.         end
  1025.     _castSpell(114203)
  1026. end
  1027.  
  1028.  
  1029.  
  1030.  
  1031. --OffensiveRotation--
  1032. if select(2,GetSpellCooldown(6544)) == 0
  1033. and heroicLeapKey == 1
  1034. and GetCurrentKeyBoardFocus() == nil
  1035. then
  1036.     CastSpellByName(GetSpellInfo(6544))
  1037.         if SpellIsTargeting() ~= nil
  1038.         then
  1039.             CameraOrSelectOrMoveStart()
  1040.             CameraOrSelectOrMoveStop()
  1041.         end
  1042.         _castSpell(6544)
  1043. end
  1044.  
  1045. if shockWaveKey == 1
  1046. then
  1047.     _castSpell(46968)
  1048. end
  1049.  
  1050. if inMelee()
  1051. then
  1052.     if UnitBuffID(&amp;quot;player&amp;quot;,12880) == nil
  1053.     then
  1054.     _castSpell(18499)
  1055.     end
  1056.    
  1057.     if ( UnitBuffID(&amp;quot;player&amp;quot;,122510) or UnitPower(&amp;quot;player&amp;quot;) &amp;gt; 90 )
  1058.     then
  1059.         _castSpell(78)
  1060.     end
  1061.    
  1062.     if UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40
  1063.     then
  1064.     _castSpell(85730)
  1065.     end
  1066.    
  1067.     if UnitDebuffID(&amp;quot;target&amp;quot;,115798) == nil
  1068.     then
  1069.     _castSpell(6343)
  1070.     end
  1071.    
  1072.     _castSpell(23922)
  1073.    
  1074.     _castSpell(6572)
  1075.    
  1076.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  1077.     then
  1078.         if hasApBuff() == nil
  1079.         then
  1080.             _castSpell(6673)
  1081.         elseif hasApBuff() == true
  1082.         then
  1083.             _castSpell(469)
  1084.         end
  1085.     end
  1086.    
  1087.     _castSpell(20243)
  1088.    
  1089. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Prot_AoeRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Defensives--
  1090. if inCombat()
  1091. then
  1092.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 35
  1093.     then
  1094.     _castSpell(871)
  1095.     end
  1096.    
  1097.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 95
  1098.     and UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 60
  1099.     then
  1100.         _castSpell(2565)
  1101.     end
  1102.    
  1103.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 25
  1104.     then
  1105.     _castSpell(97462)
  1106.     end
  1107.    
  1108.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 15
  1109.     then
  1110.     _castSpell(12975)
  1111.     end
  1112. end
  1113.  
  1114. if inMelee()
  1115. then
  1116.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 50
  1117.     then _castSpell(1160)
  1118.     end
  1119.    
  1120.     if getHp(&amp;quot;player&amp;quot;) &amp;lt;= 80
  1121.     and IsUsableSpell(34428)
  1122.     then
  1123.     _castSpell(34428)
  1124.     end
  1125. end
  1126.  
  1127. if select(2,GetSpellCooldown(114203)) == 0
  1128. and demoBannerKey == 1
  1129. and GetCurrentKeyBoardFocus() == nil
  1130. then
  1131.     CastSpellByName(GetSpellInfo(114203))
  1132.         if SpellIsTargeting() ~= nil
  1133.         then
  1134.             CameraOrSelectOrMoveStart()
  1135.             CameraOrSelectOrMoveStop()
  1136.         end
  1137.     _castSpell(114203)
  1138. end
  1139.  
  1140.  
  1141.  
  1142.  
  1143. --OffensiveRotation--
  1144. if select(2,GetSpellCooldown(6544)) == 0
  1145. and heroicLeapKey == 1
  1146. and GetCurrentKeyBoardFocus() == nil
  1147. then
  1148.     CastSpellByName(GetSpellInfo(6544))
  1149.         if SpellIsTargeting() ~= nil
  1150.         then
  1151.             CameraOrSelectOrMoveStart()
  1152.             CameraOrSelectOrMoveStop()
  1153.         end
  1154.         _castSpell(6544)
  1155. end
  1156.  
  1157. if shockWaveKey == 1
  1158. then
  1159.     _castSpell(46968)
  1160. end
  1161.  
  1162. if inMelee()
  1163. then
  1164.     if UnitBuffID(&amp;quot;player&amp;quot;,12880) == nil
  1165.     then
  1166.     _castSpell(18499)
  1167.     end
  1168.    
  1169.     if ( UnitBuffID(&amp;quot;player&amp;quot;,122510) or UnitPower(&amp;quot;player&amp;quot;) &amp;gt; 90 )
  1170.     then
  1171.         _castSpell(845)
  1172.     end
  1173.    
  1174.     if UnitPower(&amp;quot;player&amp;quot;) &amp;gt;= 40
  1175.     then
  1176.     _castSpell(85730)
  1177.     end
  1178.    
  1179.     _castSpell(6343)
  1180.    
  1181.     _castSpell(23922)
  1182.    
  1183.     _castSpell(6572)
  1184.    
  1185.     if UnitPower(&amp;quot;player&amp;quot;) &amp;lt; 70
  1186.     then
  1187.         if hasApBuff() == nil
  1188.         then
  1189.             _castSpell(6673)
  1190.         elseif hasApBuff() == true
  1191.         then
  1192.             _castSpell(469)
  1193.         end
  1194.     end
  1195.    
  1196.     _castSpell(20243)
  1197.    
  1198. end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability></WARRIOR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement