Does anyone have an example of how to track a group of enemies/friendlies and their buffs/debuffs to be able to dispell them and actually dispell them?
Such as track who is enemy and has avanging wrath and use dispell magic on them to remove it.
Or a friendly who got stun by pally stun or mages sheep and remove it.
I can do the rest myself 
PS: funny i am considered lazy leecher, having provided free of charge code over the years such as custom classes and reloggers, I would have thought it wouldnt make me a leecher, oh well.
PS2: i poke around abit and I think i understand a bit better how this works, heres some code i made to try out my idea, it is very crude, anyone have suggestions?
Code:
-- Author : Silent
-- Create Date : 9/17/2011 9:58:31 PM
function hasDispellableBuff(name)
if name ~= nil then
a=b=c=d=e=f=g=h=i=j=k=l=m=n=o=p=q=nil
-- stolen from builtin priest dispeller thing
-- put "--" in front of what spells u dont want dispelled remove it otherwise
a = UnitBuffID(name, 54428) --Plea
--b = UnitBuffID(name, 6346) --Fear Ward
--c = UnitBuffID(name, 17) --PWD:S
d = UnitBuffID(name, 89485) --Inner Focus
e = UnitBuffID(name, 10060) --Power Infusion
f = UnitBuffID(name, 16188) --NS
g = UnitBuffID(name, 29166) --Innervate
h = UnitBuffID(name, 16689) --Nature's Grasp
i = UnitBuffID(name, 16974) --PredSwift
j = UnitBuffID(name, 17116) --NSDruid
k = UnitBuffID(name, 1022) --BoP
--l = UnitBuffID(name, 1044) --Freedom
m = UnitBuffID(name, 31884) --Avenging Wrath
n = UnitBuffID(name, 12472) --Icy Veins
--o = UnitBuffID(name, 11426) --IceBarrier
--p = UnitBuffID(name, 543) --MageWard
--q = UnitBuffID(name, 1463) --ManaShield
if a ~= nil or b ~= nil or c ~= nil or d ~= nil or e ~= nil or f ~= nil or g ~= nil or h ~= nil or i ~= nil or j ~= nil or k ~= nil or l ~= nil or m ~= nil or n ~= nil or o ~= nil or p ~= nil or q ~= nil then
return true -- cast only 1 time
else
return false -- we want out
end
end
end
function checkArenaEnemies()
-- method stolen from Gladius
local groupSize = max(GetRealNumPartyMembers()+1, GetRealNumRaidMembers())
for x=1, groupSize do
-- stolen from The Protecter addon
name = UnitName('arena'..x)
if hasDispellableBuff(name) then
-- stolen from builtin priest dispeller thing
CastSpellByID(527,name)
return true
else
return false
end
end
end
function checkTarget()
name = UnitName('target')
if hasDispellableBuff(name) then
return true
else
return false
end
end
if PQR_IsMoving(1) then
if checkTarget() then
return true
else
checkArenaEnemies()
end
return false
end
Was getting some lua errors earlier, dont know if it was fixed, need someone to test with...
PS3: not working, any suggestions?
PS4: was getting constant lua errors, disabled all addons, stop giving errors, any idea on how to prevent this errors without disabling the addons?