@valma same as the guy up there. It is just not working for me
EDIT: The profile have no abilities on it
@valma same as the guy up there. It is just not working for me
EDIT: The profile have no abilities on it
Last edited by pepe2c; 02-20-2012 at 03:38 PM.
Sheuron anyway of boosting the dps on boss fights or is rotation perfected? Trying to squeeze more dps out of the gear I thought was pretty good.
*Haven't been pve specced or glyphed in awhile maybe I have forgotten what kinda loss I had.
Last edited by Meatglue; 02-20-2012 at 01:50 PM.
UnitDebuffID( "target", 89775 ) should be the DoT of glyphed Hemorrhage but it returns the duration of the normal Hemorrhage Debuff, any ideas?
Same namesBut i figured something out
Code:function CheckDebuff(ID, p_Target, p_Owner) local found = nil for i=1,40 do if select(11, UnitDebuff( p_Target, i ) ) == ID and select(8, UnitDebuff( p_Target, i ) ) == p_Owner then found = select(7, UnitDebuff( p_Target, i ) ) end end return found end
touche
yea was going to say a month or two back some1 ran into an issue where a debuff of the same name was screwing up their rotation, because pretty much UnitDebuffID and UnitBuffID do is a tostring(GetSpellInfo(SpellID)) so if it reads there's a buff of the same name it wont check for more than one of the same name
your way works quite well if i do say so myself
ignore that code, i just wanted to see if i could try and simplify it..... actually made it longer, but i removed the unnecessary checks on debuffs that don't exist, while in the process probably breaking itCode:function CheckDebuff(target, sID) i = 1 found = nil local debuff, _, _, _, _, _, _, caster, _, _, spellID = UnitDebuff(target, i) while debuff do if caster == "player" and spellID = sID then found = select(7, UnitDebuff(target, i) ) else i = i +1 local debuff, _, _, _, _, _, _, caster, _, _, spellID = UnitDebuff(target, i) end end return found endalso added one more input for the function, you chose which target you can change the target you are looking at... for any reason you can think of (like if using on a different class
)
me like this tho
Ok ty bubba
ipass
hey sheuron is there code i can add to make it so gouge does not cast when the target is kidney shot?
I haven't looked into anyone's issue... but just so people know the spell ID is converted to the spell name and then the lookup occurs. So as long as you use any spell ID with the name of the debuff it should work. If there are multiple debuffs with the same name, you will need to either use a filter so it only looks at the player's debuffs (Ex: UnitDebuffID("target", SpellID, "PLAYER")) or loop through all buffs/debuffs on the target to find what you are looking for.
[QUOTE=Valma;2197478]Hi Valma! Thanks for the code, but Im stupid and dont know what to do with it!Code:if GetNumRaidMembers() > 0 then local members = GetNumRaidMembers() for i = 1, members, 1 do local member = 'raid' .. tostring(i) if UnitIsDeadOrGhost(member) and UnitGroupRolesAssigned(member) == 'TANK' or UnitGroupRolesAssigned(member) == 'HEALER' then PQR_CustomTarget = member return true end end end
How would I edit it for my death knight (raise ally)? And where should I put it in the rotation in the rotation-editor in PQR to make it work?
You could really dumb it down when you explain it
+rep to you, codemagician! I really appreciate your work, all of you!
Cheers!
well that is really dumbed down lol but ill go one step further....
Name: Raise Ally
SpellID: (Google it yourself i'm lazy)
Target: Custom
LUA Code:
that should do it. Then just put that in the rotation somewhere near the top >.>Code:if GetNumRaidMembers() > 0 then local members = GetNumRaidMembers() for i = 1, members, 1 do local member = "raid" .. tostring(i) if UnitIsDeadOrGhost(member) and UnitGroupRolesAssigned(member) == "TANK" or UnitGroupRolesAssigned(member) == "HEALER" then if IsSpellInRange("Raise Ally", member) == 1 then PQR_CustomTarget = member return true end end end end