Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.28 KB | None | 0 0
  1. local _, Rubim = ...
  2.  
  3. local exeOnLoad = function()
  4. -- NePCR.Splash()
  5. Rubim.meeleSpell = 49998
  6. -- print("Meele Spell: ".. GetSpellInfo(Rubim.meeleSpell) .. "(" .. Rubim.meeleSpell .. ")")
  7. print("|cffFFFF00 ----------------------------------------------------------------------|r")
  8. print("|cffFFFF00 --- |rCLASS NAME: |cffC41F3BUnholy |r")
  9. print("|cffFFFF00 --- |rRecommended Talents: 1/1 - 2/2 - 3/2 - 4/1 - 5/Any - 6/2 - 7/3")
  10. print("|cffFFFF00 --- |rRead the Readme avaiable at github.")
  11. print("|cffFFFF00 ----------------------------------------------------------------------|r")
  12.  
  13. NeP.Interface:AddToggle({
  14. key = 'useDS',
  15. icon = 'Interface\\Icons\\spell_deathknight_butcher2.png',
  16. name = 'Use Dark Succor',
  17. text = 'Using Dark Scuccor ot heal.'
  18. })
  19. end
  20.  
  21. local Shared = {
  22. --SUMMON PET
  23. { '46584' , '!pet.exists' },
  24.  
  25. --RACIALS
  26. {{
  27. {'Berserking'},
  28. {'Blood Fury'},
  29. }, 'player.area(7).enemies >= 1' },
  30. }
  31.  
  32. local Util = {
  33. --AUTOTARGET
  34. { '@Rubim.Targeting()' , '!target.alive' },
  35.  
  36. --BOSS
  37. { '%pause' , 'player.debuff(200904)' },
  38. { '%pause' , 'player.debuff(Soul Saped)' },
  39. }
  40.  
  41. local Healing = {
  42. { 'Death Strike' , { 'player.buff(101568)' , 'player.health <= 80' }},
  43. { 'Death Strike', { 'player.buff(101568)' , 'player.buff(101568).duration < 2' }},
  44. }
  45.  
  46. local Interrupts = {
  47. --Mind Freeze
  48. {'47528'},
  49. --Asphyxiate
  50. {'221562'},
  51. }
  52.  
  53. local AoE = {
  54. --actions.aoe=death_and_decay,if=spell_targets.death_and_decay>=2
  55. --actions.aoe+=/epidemic,if=spell_targets.epidemic>4
  56. {'Epidemic', 'player.area(8).enemies > 4'},
  57. --actions.aoe+=/scourge_strike,if=spell_targets.scourge_strike>=2&(dot.death_and_decay.ticking|dot.defile.ticking)
  58. {'Scourge Strike', 'player.buff(Death and Decay)'},
  59. --actions.aoe+=/clawing_shadows,if=spell_targets.clawing_shadows>=2&(dot.death_and_decay.ticking|dot.defile.ticking)
  60. {'Scourge Strike', 'player.buff(Death and Decay)'},
  61. --actions.aoe+=/epidemic,if=spell_targets.epidemic>2
  62. {'Epidemic'},
  63. }
  64.  
  65. -- Winnerwinnington annotations are made with *- appended to the Simcraft notes
  66.  
  67. local Valkyr = {
  68. --actions.valkyr=death_coil
  69. { 'Death Coil' },
  70. --actions.valkyr+=/apocalypse,if=debuff.festering_wound.stack=8
  71. { 'Apocalypse' , 'target.debuff(Festering Wound).count = 8' },
  72. --actions.valkyr+=/festering_strike,if=debuff.festering_wound.stack<8&cooldown.apocalypse.remains<5
  73. { 'Festering Strike' , { 'target.debuff(Festering Wound).count < 8' , 'player.spell(Apocalypse).cooldown < 5' }},
  74. --actions.valkyr+=/call_action_list,name=aoe,if=active_enemies>=2
  75. { AoE , { 'player.area(7).enemies >= 2' , 'toggle.aoe'}},
  76. --actions.valkyr+=/festering_strike,if=debuff.festering_wound.stack<=3
  77. {'Festering Strike', 'target.debuff(Festering Wound).count <= 3'},
  78. --actions.valkyr+=/scourge_strike,if=debuff.festering_wound.up
  79. -- {'Scourge Strike', {'target.debuff(Festering Wound).count >= 1', 'player.spell(Apocalypse).cooldown >= 3'}},
  80. {'Scourge Strike', 'target.debuff(Festering Wound).count >= 1'},
  81. --actions.valkyr+=/clawing_shadows,if=debuff.festering_wound.up
  82. {'Clawing Shadows', {'target.debuff(Festering Wound).count >= 1', 'player.spell(Apocalypse).cooldown >= 3'}},
  83. {"@Rubim.SetText('valkyr')" },
  84. }
  85.  
  86. local Standard = {
  87. --actions.standard=festering_strike,if=debuff.festering_wound.stack<=4&runic_power.deficit>23
  88. {'Festering Strike', {'target.debuff(Festering Wound).count <= 4', 'player.rpdeficit > 23'}},
  89. --actions.standard+=/death_coil,if=!buff.necrosis.up&talent.necrosis.enabled&rune<=3
  90. {'Death Coil', {'!player.buff(Necrosis)', 'talent(6, 2)', 'player.runes <= 3'}},
  91. --actions.standard+=/scourge_strike,if=buff.necrosis.react&debuff.festering_wound.stack>=1&runic_power.deficit>15
  92. {'Scourge Strike', {'player.buff(Necrosis)', 'target.debuff(Festering Wound).count >= 1', 'player.rpdeficit > 15'}},
  93. --actions.standard+=/clawing_shadows,if=buff.necrosis.react&debuff.festering_wound.stack>=1&runic_power.deficit>15
  94. {'Clawing Shadows', {'player.buff(Necrosis)', 'target.debuff(Festering Wound).count >= 1', 'player.rpdeficit > 15'}},
  95. --actions.standard+=/scourge_strike,if=buff.unholy_strength.react&debuff.festering_wound.stack>=1&runic_power.deficit>15
  96. {'Scourge Strike', {'player.buff(Unholy Strength)', 'target.debuff(Festering Wound).count >= 1', 'player.rpdeficit > 15'}},
  97. --actions.standard+=/clawing_shadows,if=buff.unholy_strength.react&debuff.festering_wound.stack>=1&runic_power.deficit>15
  98. {'Clawing Shadows', {'player.buff(Unholy Strength)', 'target.debuff(Festering Wound).count >= 1', 'player.rpdeficit > 15'}},
  99. --actions.standard+=/scourge_strike,if=rune>=2&debuff.festering_wound.stack>=1&runic_power.deficit>15
  100. {'Scourge Strike', {'player.runes >= 2' , 'target.debuff(Festering Wound).count >= 1', 'player.rpdeficit > 15'}},
  101. --actions.standard+=/clawing_shadows,if=rune>=2&debuff.festering_wound.stack>=1&runic_power.deficit>15
  102. {'Clawing Shadows', {'player.runes >= 2' , 'target.debuff(Festering Wound).count >= 1', 'player.rpdeficit > 15'}},
  103. --actions.standard+=/death_coil,if=talent.shadow_infusion.enabled&talent.dark_arbiter.enabled&!buff.dark_transformation.up&cooldown.dark_arbiter.remains>15
  104. {'Death Coil', {'talent(6,1)', 'talent(7,1)', 'pet.buff(Dark Transformation)', 'player.spell(Dark Arbiter).cooldown > 15' }},
  105. --actions.standard+=/death_coil,if=talent.shadow_infusion.enabled&!talent.dark_arbiter.enabled&!buff.dark_transformation.up
  106. {'Death Coil', {'talent(6,1)', '!talent(7,1)', '!pet.buff(Dark Transformation)' }},
  107. --actions.standard+=/death_coil,if=talent.dark_arbiter.enabled&cooldown.dark_arbiter.remains>15
  108. {'Death Coil', {'talent(7,1)', 'player.spell(Dark Arbiter).cooldown > 15' }},
  109. --actions.standard+=/death_coil,if=!talent.shadow_infusion.enabled&!talent.dark_arbiter.enabled
  110. {'Death Coil', {'!talent(6,1)', '!talent(7,1)', }},
  111. {"@Rubim.SetText('standard')" },
  112. }
  113.  
  114. local Instructors = {
  115. --actions.instructors=festering_strike,if=debuff.festering_wound.stack<=4&runic_power.deficit>23
  116. {'Festering Strike', {'target.debuff(Festering Wound).count <= 4', 'player.rpdeficit > 23'}},
  117. --actions.instructors+=/death_coil,if=!buff.necrosis.up&talent.necrosis.enabled&rune<=3
  118. {'Death Coil', {'!player.buff(Necrosis)', 'talent(6,2)', 'player.runes <= 3'}},
  119. --actions.instructors+=/scourge_strike,if=buff.necrosis.react&debuff.festering_wound.stack>=5&runic_power.deficit>29
  120. {'Scourge Strike', {'player.buff(Necrosis)', 'target.debuff(Festering Wound).count >= 5', 'player.rpdeficit > 29'}},
  121. --actions.instructors+=/clawing_shadows,if=buff.necrosis.react&debuff.festering_wound.stack>=5&runic_power.deficit>29
  122. {'Clawing Shadows', {'player.buff(Necrosis)', 'target.debuff(Festering Wound).count >= 5', 'player.rpdeficit > 29'}},
  123. --actions.instructors+=/scourge_strike,if=buff.unholy_strength.react&debuff.festering_wound.stack>=5&runic_power.deficit>29
  124. {'Scourge Strike', {'player.buff(Unholy Strength)', 'target.debuff(Festering Wound).count >= 5', 'player.rpdeficit > 29'}},
  125. --actions.instructors+=/clawing_shadows,if=buff.unholy_strength.react&debuff.festering_wound.stack>=5&runic_power.deficit>29
  126. {'Clawing Shadows', {'player.buff(Unholy Strength)', 'target.debuff(Festering Wound).count >= 5', 'player.rpdeficit > 29'}},
  127. --actions.instructors+=/scourge_strike,if=rune>=2&debuff.festering_wound.stack>=5&runic_power.deficit>29
  128. {'Scourge Strike', {'player.runes >= 2', 'target.debuff(Festering Wound).count >= 5', 'player.rpdeficit > 29'}},
  129. --actions.instructors+=/clawing_shadows,if=rune>=2&debuff.festering_wound.stack>=5&runic_power.deficit>29
  130. {'Clawing Shadows', {'player.runes >= 2', 'target.debuff(Festering Wound).count >= 5', 'player.rpdeficit > 29'}},
  131. --actions.instructors+=/death_coil,if=talent.shadow_infusion.enabled&talent.dark_arbiter.enabled&!buff.dark_transformation.up&cooldown.dark_arbiter.remains>15
  132. {'Death Coil', {'talent(6,1)', 'talent(7,1)', '!pet.Buff(Dark Transformation)', 'player.spell(Dark Arbiter).cooldown > 15' }},
  133. --actions.instructors+=/death_coil,if=talent.shadow_infusion.enabled&!talent.dark_arbiter.enabled&!buff.dark_transformation.up
  134. {'Death Coil', {'talent(6,1)', '!talent(7,1)', '!pet.Buff(Dark Transformation)'}},
  135. --actions.instructors+=/death_coil,if=talent.dark_arbiter.enabled&cooldown.dark_arbiter.remains>15
  136. {'Death Coil', {'talent(7,1)', 'player.spell(Dark Arbiter).cooldown > 15' }},
  137. --actions.instructors+=/death_coil,if=!talent.shadow_infusion.enabled&!talent.dark_arbiter.enabled
  138. {'Death Coil', {'!talent(6,1)', '!talent(7,1)'}},
  139. {"@Rubim.SetText('instructors')" },
  140. }
  141.  
  142. local Castigator = {
  143. --actions.castigator=festering_strike,if=debuff.festering_wound.stack<=4&runic_power.deficit>23
  144. {'Festering Strike', {'target.debuff(Festering Wound).count <= 4', 'player.rpdeficit > 23'}},
  145. --actions.castigator+=/death_coil,if=!buff.necrosis.up&talent.necrosis.enabled&rune<=3
  146. {'Death Coil', {'!player.buff(Necrosis)', 'talent(6, 2)', 'player.runes <= 3'}},
  147. --actions.castigator+=/scourge_strike,if=buff.necrosis.react&debuff.festering_wound.stack>=3&runic_power.deficit>23
  148. {'Scourge Strike', {'player.buff(Necrosis)', 'target.debuff(Festering Wound).count >= 3', 'player.rpdeficit > 23'}},
  149. --actions.castigator+=/scourge_strike,if=buff.unholy_strength.react&debuff.festering_wound.stack>=3&runic_power.deficit>23
  150. {'Scourge Strike', {'player.buff(Unholy Strength)', 'target.debuff(Festering Wound).count >= 3', 'player.rpdeficit > 23'}},
  151. --actions.castigator+=/scourge_strike,if=rune>=2&debuff.festering_wound.stack>=3&runic_power.deficit>23
  152. {'Scourge Strike', {'player.runes >= 2', 'target.debuff(Festering Wound).count >= 5', 'player.rpdeficit > 23'}},
  153. --actions.castigator+=/death_coil,if=talent.shadow_infusion.enabled&talent.dark_arbiter.enabled&!buff.dark_transformation.up&cooldown.dark_arbiter.remains>15
  154. {'Death Coil', {'talent(6,1)', 'talent(7,1)', '!pet.Buff(Dark Transformation)', 'player.spell(Dark Arbiter).cooldown > 15' }},
  155. --actions.castigator+=/death_coil,if=talent.shadow_infusion.enabled&!talent.dark_arbiter.enabled&!buff.dark_transformation.up
  156. {'Death Coil', {'talent(6,1)', '!talent(7,1)', '!pet.Buff(Dark Transformation)'}},
  157. --actions.castigator+=/death_coil,if=talent.dark_arbiter.enabled&cooldown.dark_arbiter.remains>15
  158. {'Death Coil', {'talent(7,1)', 'player.spell(Dark Arbiter).cooldown > 15' }},
  159. --actions.castigator+=/death_coil,if=!talent.shadow_infusion.enabled&!talent.dark_arbiter.enabled
  160. {'Death Coil', {'!talent(6,1)', '!talent(7,1)'}},
  161. {"@Rubim.SetText('castigator')" },
  162. }
  163.  
  164. local Generic = {
  165. --Summon Pet
  166. {'46584', '!pet.exists'},
  167. --actions.generic=dark_arbiter,if=!equipped.137075&runic_power.deficit<30
  168. { 'Dark Arbiter', {'!player.equipped(137075)', 'player.rpdeficit < 30'}},
  169. --actions.generic+=/dark_arbiter,if=equipped.137075&runic_power.deficit<30&cooldown.dark_transformation.remains<2
  170. { 'Dark Arbiter', {'player.equipped(137075)', 'player.rpdeficit < 30', 'player.spell(Dark Transformation).cooldown < 2'}},
  171. --actions.generic+=/summon_gargoyle,if=!equipped.137075,if=rune<=3
  172. {'Summon Gargoyle', {'!player.equipped(137075)', 'player.runes <= 3'}},
  173. --actions.generic+=/summon_gargoyle,if=equipped.137075&cooldown.dark_transformation.remains<10&rune<=3
  174. {'Summon Gargoyle', {'player.equipped(137075)', 'player.spell(Dark Transformation).cooldown < 10', 'player.runes <= 3'}},
  175. --actions.generic+=/soul_reaper,if=debuff.festering_wound.stack>=7&cooldown.apocalypse.remains<2
  176. {'130736', {'target.debuff(Festering Wound).count >= 7', 'player.spell(Apocalypse).cooldown < 2'}},
  177. --actions.generic+=/apocalypse,if=debuff.festering_wound.stack>=7
  178. {'Apocalypse', 'target.debuff(Festering Wound).count >= 7' },
  179. --actions.generic+=/death_coil,if=runic_power.deficit<30
  180. {'Death Coil', 'player.rpdeficit < 30' },
  181. --actions.generic+=/death_coil,if=!talent.dark_arbiter.enabled&buff.sudden_doom.up&!buff.necrosis.up&rune<=3
  182. {'Death Coil', {'!talent(7,1)', 'player.buff(Sudden Doom)', '!player.buff(Necrosis)', 'player.run <= 3'}},
  183. --actions.generic+=/death_coil,if=talent.dark_arbiter.enabled&buff.sudden_doom.up&cooldown.dark_arbiter.remains>5&rune<=3
  184. {'Death Coil', {'player.talent (7,1)', 'player.buff(Sudden Doom)', 'player.spell(Dark Arbiter).cooldown > 5', 'player.runes <= 3'}},
  185. --actions.generic+=/festering_strike,if=debuff.festering_wound.stack<7&cooldown.apocalypse.remains<5
  186. {'Festering Strike', {'target.debuff(Festering Wound).count < 7', 'player.spell(Apocalypse).cooldown < 5'}},
  187. --actions.generic+=/wait,sec=cooldown.apocalypse.remains,if=cooldown.apocalypse.remains<=1&cooldown.apocalypse.remains
  188. -- TESTING WITHOUT THIS
  189. --actions.generic+=/soul_reaper,if=debuff.festering_wound.stack>=3
  190. {'130736', 'target.debuff(Festering Wound).count >= 3'},
  191. --actions.generic+=/festering_strike,if=debuff.soul_reaper.up&!debuff.festering_wound.up
  192. {'Festering Strike', {'!target.debuff(Festering Wound)', '!target.debuff(Soul Reaper)'}},
  193. --actions.generic+=/scourge_strike,if=debuff.soul_reaper.up&debuff.festering_wound.stack>=1
  194. {'Scourge Strike', {'target.debuff(Festering Wound).count >= 1', 'target.debuff(Soul Reaper)'}},
  195. --actions.generic+=/clawing_shadows,if=debuff.soul_reaper.up&debuff.festering_wound.stack>=1 *-The SimC rotation never uses clawing shadows
  196. {'Clawing Shadows', {'target.debuff(Festering Wound).count >= 1', 'target.debuff(Soul Reaper)'}},
  197. --actions.generic+=/defile
  198. {'Defile'},
  199. --actions.generic+=/call_action_list,name=aoe,if=active_enemies>=2
  200. { AoE , { 'player.area(7).enemies >= 2' , 'toggle(aoe)'}},
  201. --actions.generic+=/call_action_list,name=instructors,if=equipped.132448 *-Need the equipped function
  202. { Instructors , 'player.equipped(132448)'},
  203. --actions.generic+=/call_action_list,name=standard,if=!talent.castigator.enabled&!equipped.132448
  204. { Standard, {'!talent(3,2)' , '!player.equipped(132448)' }},
  205. --actions.generic+=/call_action_list,name=castigator,if=talent.castigator.enabled&!equipped.132448
  206. { Castigator, {'talent(3,2)' , '!player.equipped(132448)' }},
  207. {"@Rubim.SetText('generic')" },
  208. }
  209.  
  210. local inCombat = {
  211. { Healing , 'toggle(useDS)' },
  212. { 'Outbreak', '!target.debuff(Virulent Plague)' },
  213. { 'Dark Transformation' , 'player.runes <= 3' },
  214. { Valkyr , 'player.spell(Dark Arbiter).cooldown > 165' },
  215. { Generic , 'player.spell(Dark Arbiter).cooldown <= 165' },
  216. }
  217.  
  218. local outCombat = {
  219. {Shared}
  220. }
  221.  
  222. NeP.CR:Add(252, 'WinnerRubim (WIP) Deathknight - Unholy', {
  223. {'%pause', 'player.channeling'},
  224. {Interrupts, 'target.interruptAt(15)'},
  225. {Shared},
  226. {AoE, {'toggle(AoE)', 'player.area(8).enemies >= 3'}},
  227. {inCombat}
  228. }, outCombat, exeOnLoad)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement