i moved his PQI code in a data file.. all you need to do is remove the [Table] ability from his rotation. you can download the data file from here Soapbox data file
hello all i am looking to add some code to a profile for the fight Dark Animus to stop spell casting when Dark Animus - NPC - World of Warcraft casts the spell Interrupting Jolt - Spell - World of Warcraft
what i have done so far is to alter the [Boss Special] code from one of the profiles i currently have...however have no way to test it at the moment...could someone take a look at it to see if it makes sense
**edit** it workedCode:--Implement PQR_resumeAttack.. this is used to prevent --abilities lower in the rotation from being cast. if PQR_resumeAttack == nil then PQR_resumeAttack = 0 elseif PQR_resumeAttack > GetTime() then return true else PQR_resumeAttack = 0 end --IMPORTANT: Change this if you have any cleaves that would do damage to a secondary target --as part of your single target rotation. Better to be safe than sorry! --Used for : Spirit Kings local cleaveClass = false local isAOE = strmatch(strupper(PQR_RotationName), "AOE") --checks if we are in AOE mode. for i=1,4 do local bossCheck = "boss"..i if UnitExists(bossCheck) then local npcID = tonumber(UnitGUID(bossCheck):sub(6,10), 16) local bossCasting,_,_,_,_,castEnd = UnitCastingInfo(bossCheck) elseif npcID == 69427 then --Dark Animus. (Interrupting Jolt) --Stop all attacks until 0.2 seconds after cast time ends. --only continue checking if we are targetting the boss or have no target. if (not UnitExists("target")) or (UnitIsUnit("target", bossCheck)) or (cleaveClass or isAOE) then local joltName = GetSpellInfo(138763) if (bossCasting and bossCasting == joltName) then StopAttack() SpellStopCasting() local delayAdd = (castEnd/1000) - GetTime() --the number of seconds remaining on the cast. PQR_resumeAttack = GetTime() + delayAdd + 0.2 return true end end
Last edited by Timekill; 04-01-2013 at 11:42 PM.
Does anyone have a handy code snippet to check if trinket is available and use it ? I can activate it ok but im not sure how to check whether or not its ready ?
I checked through all the profiles I use and couldnt find anything
Thats a function I use for it, you can remove the spell ID thing, thats just to make sure I'm in melee range, and of course 13 would be trinket 1 and 14 would be trinket 2Code:UseItem = nil function UseItem(slot) local _, Cooldown, Ready = GetInventoryItemCooldown("player", slot) if Cooldown == 0 and Ready == 1 and UnitChannelInfo("player") == nil and UnitAffectingCombat("player") ~= nil and IsSpellInRange(GetSpellInfo(78), "target") == 1 then UseInventoryItem(slot) return true end end
thankyou !
Any reason PQR is using so much cpu?
My profile only has 5 abilities and they are fairly simple
please test code for council of elders hard mode or give me something better
Code:if UnitDebuffID("player", 137641) ~= nil then -- Soul Fragment check local _, _, _, SScount = UnitDebuffID("player", 137650) -- Shadowed Soul stacks on player if SScount > 6 then local mSSs = 6 while UnitDebuffID("player", 137641) ~= nil do -- while debuff looking for valid raid member members = { { Unit = "player" } } group = "raid" for i = 1, GetNumGroupMembers() do table.insert( members,{ Unit = group..i } ) end for i=1, #members do local ShadowedSoul, _, _, membersSScount = UnitDebuffID(members[i].Unit, 137650) local SoulFragment = UnitDebuffID(members[i].Unit, 137641) local role = UnitGroupRolesAssigned(members[i].Unit) if SoulFragment == nil and ShadowedSoul == nil and role ~= "TANK" or SoulFragment == nil and ShadowedSoul ~= nil and membersSScount <= mSSs and role ~= "TANK" then TargetUnit(members[i].Unit) RunMacroText("/click ExtraActionButton1") -- spent debuff TargetLastTarget() end end mSSs = mSSs + 1 -- when all raid members got 6 more stacks end end end
Last edited by WWF; 04-01-2013 at 02:07 PM.
Could anyone guess why this code freezes on Jin'Rokh the breaker in ToT ? it works when you are stood in a conductive water pool, but when you aren't it just hangs
Code:if IsLeftShiftKeyDown() then CastSpellByName(GetSpellInfo(5740)) if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end end
Code:local RoF = UnitBuffID("player", 5740) local DarkSoul = UnitBuffID("player", 113858) local Playermana = 100 * UnitPower("player") / UnitPowerMax("player") if AoE then if not RoF then if Playermana >= 40 then CastSpellByName(GetSpellInfo(5740)) if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end end end end
Is there anything extra that you have coded for that fight specifically? and as far as the two different codes, I'm assuming its only the second one thats causing issues?
So I'm trying this on my lock, and I noticed that I do not recieve a buff, not sure if that would cause something but trying to rule out what I can... I mean those work for me no matter what
Last edited by Nerder; 04-01-2013 at 03:57 PM.
dont think anything extra is coded its Blaythes destro profile.
The code works perfectly if Im not stood in conductive waters, but outside of it it wont cast
Both auto and manual so both code snippets dont work