What is wrong with this code? Purify Spirit doesn´t trigger using spellid 77130.
if not CheckMagics then
function CheckMagics(t)
for n=1,40 do
local buff,_,_,count,bufftype,duration = UnitDebuff(t, n)
if buff then
if bufftype == "Magic" then return true end
else
break
end
end
end
end
for i=1,#members do
if not BadEffects(members[i].Unit)
and CheckMagics(members[i].Unit)
then
PQR_CustomTarget = members[i].Unit
return true
end
end
@Luckycharm: Try this. Simply replace the last part:
Also, if you didn't already. Make sure that the ability is set to use Custom Target rather than a target.Code:for i=1,#members do if not BadEffects(members[i].Unit) and CheckMagics(members[i].Unit) then PQR_CustomTarget = members[i].Unit CastSpellByName(GetSpellInfo(77130),PQR_CustomTarget) return true end end
Great but solved it already, ty for replying and congratz to your birthday. ^^
Keep up the good work!
Glad you got it to work even without my help, Lucky!
Sooo, this is my "Autopilot Arena Icy Touch Dispel", and I want to ask if it will, in theory, work as intended, as I cannot test it anytime soon. What I want it to do is check arena1-(Max Number of players in the bracket) for the buffs in the table, and if there is a buff i want to dispel on some of them, it will dispel it.
Code:numOpponents = GetNumArenaOpponents() BuffsTable = {116849, 1044, 54428, 2916} -- Life Cocoon, Hand of Freedom, Divine Plea, Innervate if GlyphCheck(43546) then for k=1 , numOpponents do checkThis = ("arena"..k) for i=1, #BuffsTable do if UnitBuffID(checkThis, BuffsTable[i]) and UnitCanAttack("player", checkThis) then CastSpellByName("Icy Touch", checkThis) end end end else return false end
Happy Birthday Mentally!!!
Hope you feel better soon!
I didn't receive a pm yet
edit:
Some new updates to ret soon, also been working on a prot profile, been having trouble though.
For some reason it won't cast shield of the righteous or avenger's shield, the spell ids are right and everything.
53600-shield of the righteous
31935-avenger's shieldPHP Code:
if UnitPower("player", 9) >= 3 then
return true
end
^ just test code to see if it will work, it won't even work with just, return true.PHP Code:
if PQR_SpellAvailable(31935) or (UnitBuffID("player", 85416) and UnitPower("player", 9) < 5) then
return true
end
Anyone know why? I made a new profile and it still won't work, re-downloaded pqr, updated again. Still won't work. =/ Out of ideas.
My Svn - https://subversion.assembla.com/svn/averykeys-svn/
I have a quick question about spell ID
On druid when Im in human form for Skull Bash show spell ID = 106839 , in bear form spell ID=82365, however interrupt work only with spell ID=106839 and I didn't understand why. It should work with spell ID=82365 with bear form.
Thx in advance
@D1sc1pl1n3: Remove the parentheses around checkThis and that should work
@averykey: Lemme look up the document and I'll send you the PM again. Also, try using CastSpellByName(GetSpellInfo(spellID),"target") return true instead of Return true. It's probably being affected by the morphing bug.
@lolomo2003: See explanation above. Use CastSpellByName. It's being morphed and is affected by the morphing bug.
Ahhh thx for explicationI will +rep again but need to spread some around
![]()
Last edited by lolomo2003; 12-13-2012 at 07:59 AM.
Looking for pointers to get me in the right direction for a Symbiosis useage.
Im not looking to automate buffing symbiosis, just looking to utilize the ability granted from it.
For instance.
Druids do not normally have Death Coil, is it possible to literally make a ability for Deathcoil using that spellid, and to code it for a range check. Only using it if target is X yards away?
If so then this would be possible for every spell granted from Symbiosis yes?
thanks in advance!
-GB
Hello there again everyone, for the most part my rogue profiles are 100% done at the moment... I'm releasing them as completed. Please inform me of anything that might need adjustments. I've implemented a spec check, so you can actually load any of them, for instance Subtlety and if you're in Combat it'll go to combat... or if you already have Subtlety loaded and you switch to mutilate then it'll switch to that profile. No need to alt tab!
Please give feedback as to what might need to be changed.