Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?><ROGUE><Ability><Name>--Calcs/Functions--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Player Info
- PlayerEnergy = UnitPower(&quot;player&quot;)
- PlayerHP = 100 * UnitHealth(&quot;player&quot;) / UnitHealthMax(&quot;player&quot;)
- PlayerCombat = UnitAffectingCombat(&quot;player&quot;)
- PlayerThreat = UnitThreatSituation(&quot;player&quot;, &quot;target&quot;)
- PlayerLevel = UnitLevel(&quot;player&quot;)
- --PQR Functions
- isMoving = PQR_IsMoving()
- --Key Mods
- lShift = IsLeftShiftKeyDown()
- lCtrl = IsLeftControlKeyDown()
- lAlt = IsLeftAltKeyDown()
- rShift = IsRightShiftKeyDown()
- rCtrl = IsRightControlKeyDown()
- rAlt = IsRightAltKeyDown()
- local hasTarget = UnitExists(&quot;target&quot;)
- if hasTarget then
- --Target Info
- EnemyHP = 100 * UnitHealth(&quot;target&quot;) / UnitHealthMax(&quot;target&quot;)
- EnemyLevel = UnitLevel(&quot;target&quot;)
- EnemyExists = UnitExists(&quot;target&quot;)
- InteractRange = CheckInteractDistance(&quot;target&quot;, 3)
- EnemyID = tonumber(UnitGUID(&quot;target&quot;):sub(-13, -9), 16)
- EnemyCP = GetComboPoints( &quot;player&quot;, &quot;target&quot; )
- SnDTimer = select(7, UnitBuffID( &quot;player&quot;, 5171 ) )
- if EnemyLevel &gt;= (PlayerLevel + 2) or EnemyLevel == -1 then
- IsBossLVL = 1
- else
- IsBossLVL = nil
- end
- end
- if ctInit == nil then
- ctInit = true
- -- Code provided by Sheuron
- function HaveBuff(UnitID,SpellID,TimeLeft,Filter)
- if not TimeLeft then TimeLeft = 0 end
- if type(SpellID) == &quot;number&quot; then SpellID = { SpellID } end
- for i=1,#SpellID do
- local spell, rank = GetSpellInfo(SpellID[i])
- if spell then
- local buff = select(7,UnitBuff(UnitID,spell,rank,Filter))
- if buff and ( buff == 0 or buff - GetTime() &gt; TimeLeft ) then return true end
- end
- end
- end
- function HaveDebuff(UnitID,SpellID,TimeLeft,Filter)
- if not TimeLeft then TimeLeft = 0 end
- if type(SpellID) == &quot;number&quot; then SpellID = { SpellID } end
- for i=1,#SpellID do
- local spell, rank = GetSpellInfo(SpellID[i])
- if spell then
- local debuff = select(7,UnitDebuff(UnitID,spell,rank,Filter))
- if debuff and ( debuff == 0 or debuff - GetTime() &gt; TimeLeft ) then return true end
- end
- end
- end
- --end code by sheuron
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>--Poisons--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Code by Sheuron
- if not PlayerCombat and ( not applypoison or GetTime() - applypoison &gt; 3 ) then
- applypoison = GetTime()
- local _,poisonMH,_,_,poisonOH,_,_,poisonTR = GetWeaponEnchantInfo()
- if not poisonMH then
- UseItemByName(tostring(GetItemInfo(6947)))
- if SpellIsTargeting() then PickupInventoryItem(16) end
- elseif not poisonOH then
- UseItemByName(tostring(GetItemInfo(2892)))
- if SpellIsTargeting() then PickupInventoryItem(17) end
- elseif not poisonTR then
- UseItemByName(tostring(GetItemInfo(10918)))
- if SpellIsTargeting() then PickupInventoryItem(18) end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Buff - Stealth</Name><Default>false</Default><SpellID>1784</SpellID><Actions></Actions><Lua>if not PlayerCombat and not IsMounted() then
- if not HaveBuff(&quot;player&quot;, 1784) and PQR_SpellAvailable(1784) and AutoStealth then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Player</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Item - Gloves</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if GetInventoryItemCooldown(&quot;player&quot;,10) == 0 and not HaveBuff(&quot;player&quot;, 1784) then
- UseInventoryItem(10)
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>--Racial--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if PlayerCombat and EnemyExists then
- -- Arcane Torrent (Blood Elf)(Rogue)
- if IsSpellKnown(25046) and GetSpellCooldown(25046) == 0
- and PlayerEnergy &lt; 35
- then CastSpellByID(25046) return true end
- -- Berserking (Troll)(All Classes)
- if IsSpellKnown(26297) and GetSpellCooldown(26297) == 0
- then CastSpellByID(26297) return true end
- -- Blood Fury (Orc) (Warrior, Hunter, Rogue, Death Knight )
- if IsSpellKnown(20572) and GetSpellCooldown(20572) == 0
- then CastSpellByID(20572) return true end
- -- Will of the Forsaken (Undead)
- if not GotFear then
- function GotFear(t)
- local debuff = { 10326, 8122, 2094, 5782, 5484, 6358, 5246 }
- for i=1, #debuff do if UnitDebuffID(t,debuff[i]) then return true end end
- end
- end
- if IsSpellKnown(7744) and GetSpellCooldown(7744) == 0 and GotFear(&quot;player&quot;)
- then CastSpellByID(7744) return true end
- -- Rocket Barrage (Goblin)
- if IsSpellKnown(69041) and GetSpellCooldown(69041) == 0
- and IsSpellInRange(GetSpellInfo(69041),&quot;target&quot;) == 1 and UnitCanAttack(&quot;player&quot;,&quot;target&quot;)
- then CastSpellByID(69041) return true end
- -- Stoneform (Dwarf)
- if not GotPoison then
- function GotPoison(t)
- local i, debuff = 1, select(5,UnitDebuff(t, 1))
- while debuff do
- if debuff == &quot;Poison&quot; or debuff == &quot;Disease&quot; then return true end
- i = i + 1 debuff = select(5,UnitDebuff(t, i))
- end
- end
- end
- if IsSpellKnown(20594) and GetSpellCooldown(20594) == 0 and GotPoison(&quot;player&quot;)
- then CastSpellByID(20594) return true end
- -- Escape Artist (Gnome)
- if not CantMove then
- function CantMove(t)
- local debuff = { 122, 53754, 1715, 12323, 3775, 339, 48483, 8056, 2974, 45524 }
- for i=1, #debuff do if UnitDebuffID(t,debuff[i]) then return true end end
- end
- end
- if IsSpellKnown(20589) and GetSpellCooldown(20589) == 0 and CantMove(&quot;player&quot;)
- then CastSpellByID(20589) return true end
- -- Every Man for Himself (Human)
- if not LostControl then
- function LostControl(t)
- local debuff = { 122, 10326, 8122, 2094, 5782, 5484, 6358, 5246, 408 }
- for i=1, #debuff do if UnitDebuffID(t,debuff[i]) then return true end end
- end
- end
- if IsSpellKnown(59752) and GetSpellCooldown(59752) == 0 and LostControl(&quot;player&quot;)
- then CastSpellByID(59752) return true end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CD - Tricks of the Trade</Name><Default>false</Default><SpellID>57934</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if UnitExists(&quot;focus&quot;) and PQR_SpellAvailable(57934) and not HaveBuff(&quot;player&quot;, 1784) then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Focus</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Opener - Garrote</Name><Default>false</Default><SpellID>703</SpellID><Actions></Actions><Lua>if EnemyExists and not isBehind then
- if HaveBuff(&quot;player&quot;, 1784) and InteractRange then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CPS - Slice and Dice</Name><Default>false</Default><SpellID>5171</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if not HaveBuff(&quot;player&quot;, 5171, 2) then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CPS - Rupture</Name><Default>false</Default><SpellID>1943</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if not HaveDebuff(&quot;target&quot;, 1943, 2, &quot;PLAYER&quot;) and (SnDTimer - GetTime()) &gt; 6 then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Spec - Vendetta</Name><Default>false</Default><SpellID>79140</SpellID><Actions>/cast Potion of the Tol&apos;vir</Actions><Lua>if EnemyExists and PlayerCombat then
- if IsBossLVL and PQR_SpellAvailable(79140) then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Spec - Cold Blood</Name><Default>false</Default><SpellID>14177</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if HaveBuff(&quot;player&quot;, 5171) and HaveDebuff(&quot;target&quot;, 1943) then
- if EnemyCP &gt;= 4 and PQR_SpellAvailable(14177) then
- return true
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CPS - Envenom</Name><Default>false</Default><SpellID>32645</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if EnemyCP &gt;= 4 and not HaveBuff(&quot;player&quot;, 32645) then
- return true
- elseif EnemyCP &gt;= 4 and PlayerEnergy &gt; 90 then
- return true
- elseif EnemyCP &gt;= 2 and SnDTimer &lt; 3 then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CPG - Backstab</Name><Default>false</Default><SpellID>53</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if EnemyCP &lt; 5 and EnemyHP &lt; 35 then
- if not isBehind and InteractRange then
- return true
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CPG - Mutilate</Name><Default>false</Default><SpellID>1329</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if EnemyHP &lt; 35 then
- if EnemyCP &lt; 5 then
- return true
- end
- elseif EnemyHP &gt; 35 then
- if EnemyCP &lt; 4 then
- return true
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CD - Vanish</Name><Default>false</Default><SpellID>1856</SpellID><Actions>/cleartarget|/stopattack</Actions><Lua>if PlayerCombat then
- if lCtrl then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CPG - Shiv</Name><Default>false</Default><SpellID>5938</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if HaveBuff(&quot;target&quot;, { 49016, 93099, 5229, 52610, 48393, 84840, 84839, 18499, 56611, 13046, 12292, 29594, 93098, 80158 }) then
- if EnemyCP &lt;= 4 and InteractRange then
- return true
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>AoE - Fan of Knifes</Name><Default>false</Default><SpellID>51723</SpellID><Actions></Actions><Lua>if PlayerCombat then
- if lShift then
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>--Set Focus--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if rShift then
- FocusUnit(&quot;mouseover&quot;)
- end</Lua><RecastDelay>0</RecastDelay><Target>Mouseover</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>--Pause--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if lAlt
- or IsMounted()
- or SpellIsTargeting()
- or UnitBuffID(&quot;player&quot;,80169)
- or UnitBuffID(&quot;player&quot;,77769)
- or UnitBuffID(&quot;player&quot;,5384)
- or UnitInVehicle(&quot;player&quot;)
- or UnitIsDead(&quot;target&quot;)
- or UnitIsDead(&quot;player&quot;)
- or not PlayerCombat
- or PlayerStealth then
- return true
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>--Lightwell--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Code provided by Xelper
- local LightwellName = &quot;Lightwell&quot;
- local sLightwell = UnitBuffID(&quot;player&quot;, 7001)
- local sDeepCorruption = UnitDebuffID(&quot;player&quot;, 108220)
- if PQR_LightwellTimeout == nil then
- PQR_LightwellTimeout = 0
- end
- if PlayerHP &lt; 70 and sLightwell == nil then
- if PQR_LightwellTimeout &lt; GetTime() then
- if sDeepCorruption == nil then
- PQR_LightwellTimeout = GetTime() + 1
- InteractUnit(LightwellName)
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>--Extra Action--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>-- Code provided by Sheuron
- -- Avoid sudden death on Ultraxion
- local fadingtime = select(7,UnitDebuffID(&quot;player&quot;,110070))
- if fadingtime and fadingtime - GetTime() &lt; 1.3 then RunMacroText(&quot;/click ExtraActionButton1&quot;) end
- -- Code provided by Kickmydog
- -- Avoid Hour of Twilight on Ultraxion, deterrence to cancel use.
- if not UnitBuffID(&quot;player&quot;,31224) then
- local HourOfTwilight,_,_,_,_,endTime = UnitCastingInfo(&quot;boss1&quot;)
- if HourOfTwilight == GetSpellInfo(109417) and endTime/1000 - GetTime() &lt;= 1.3 then
- RunMacroText(&quot;/click ExtraActionButton1&quot;)
- end
- end
- -- Code provided by Kickmydog
- -- Avoid Fragmentation on Madness
- local tentacledeath = select(7,UnitDebuffID(&quot;player&quot;,109597))
- if tentacledeath and tentacledeath - GetTime() &lt; 0.7 then RunMacroText(&quot;/click ExtraActionButton1&quot;) end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Item - Trinket 1</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>-- Code provided by Sheuron
- if EnemyExists and PlayerCombat then
- if GetInventoryItemCooldown(&quot;player&quot;,13) == 0 and InteractRange and not HaveBuff(&quot;player&quot;, 1784) then
- UseInventoryItem(13)
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Item - Trinket 2</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>-- Code provided by Sheuron
- local _,cd,havecd = GetInventoryItemCooldown(&quot;player&quot;,14)
- if EnemyExists and PlayerCombat then
- if cd == 0 and havecd == 1 and not UnitChannelInfo(&quot;player&quot;) and InteractRange and not HaveBuff(&quot;player&quot;, 1784) then
- UseInventoryItem(14)
- return true
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>CPS - Recuperate</Name><Default>false</Default><SpellID>73651</SpellID><Actions></Actions><Lua>if EnemyExists and PlayerCombat then
- if EnemyCP &gt; 2 and PlayerHP &lt; 60 then
- if not HaveBuff(&quot;player&quot;, 73651) then
- return true
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>--Toggle Key--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if modtime == nil then
- modtime = 0
- end
- if rCtrl and GetTime() - modtime &gt; 1 then
- modtime = GetTime()
- if AutoStealth then
- AutoStealth = nil
- print(&quot;Auto Stealth: \124cFFE61515Disabled&quot;)
- else
- AutoStealth = 1
- print(&quot;Auto Stealth: \124cFF15E615Enabled&quot;)
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability></ROGUE>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement